Is is possible to get the device context of a command button or something else like that (i know you can do it with the form)? It's my understanding that with the API you can skin an image to anything if you have it's device context.
jmiller
Printable View
Is is possible to get the device context of a command button or something else like that (i know you can do it with the form)? It's my understanding that with the API you can skin an image to anything if you have it's device context.
jmiller
hdc = GetDC(hwnd)
Make sure you include the declaration:
Public Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Long) As Long