PDA

Click to See Complete Forum and Search --> : getting hdc's


jmiller
Sep 18th, 2002, 09:35 AM
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

CyberCarsten
Sep 18th, 2002, 11:01 AM
hdc = GetDC(hwnd)

Machaira
Sep 18th, 2002, 12:04 PM
Make sure you include the declaration:

Public Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Long) As Long