Хочу менять фон формы.
Private Declare Function SetBkColor Lib "gdi32" (ByVal hdc As Long, ByVal crColor As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Command1_Click()
Dim hdc As Long
hdc = GetDC(Me.hwnd)
SetBkColor hdc, 255
End Sub
Не работает. Что не так?