Autor Tema: Typo in ClsSnapWebSite.cls  (Leído 1775 veces)

0 Usuarios y 1 Visitante están viendo este tema.

TheWatcher

  • Bytes
  • *
  • Mensajes: 16
  • Reputación: +2/-0
    • Ver Perfil
Typo in ClsSnapWebSite.cls
« en: Mayo 08, 2013, 06:40:54 am »
Hola Leandro,

Private Sub DrawRectangle() seems to have a typo:

Código: (VB) [Seleccionar]
Private Sub DrawRectangle(hdc As Long, X As Long, Y As Long, Width As Long, Height As Long, oColor As OLE_COLOR)
    Dim hPen As Long, OldhPen As Long
    Dim OldBrush As Long
    hPen = CreatePen(0, 1, oColor)
    OldhPen = SelectObject(hdc, hPen)
    OldBrush = SelectObject(hdc, GetStockObject(NULL_BRUSH))
    Rectangle hdc, 0, 0, Width, Height
    DeleteObject SelectObject(hdc, Height) ' MUST BE A TYPO. SHOULD BE DeleteObject SelectObject(hdc, OldhPen)?
    Call SelectObject(hdc, OldBrush)
End Sub

Saludos,

TheWatcher

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:Typo in ClsSnapWebSite.cls
« Respuesta #1 en: Mayo 08, 2013, 02:40:00 pm »
Hi TheWatcher, thanks for the tip, an error of copy and paste

then I edit the module.

Saludos.