G
Guest
I need to use GetDC but I don't know how to find a parameter to pas to the
function. This is the GetDc from MSVC help:
**********
GetDC
The GetDC function retrieves a handle to a display device context for the
client area of a specified window or for the entire screen. You can use the
returned handle in subsequent GDI functions to draw in the device context.
The GetDCEx function is an extension to GetDC, which gives an application
more control over how and whether clipping occurs in the client area.
HDC GetDC(
HWND hWnd // handle to a window
);
Parameters
hWnd
Handle to the window whose device context is to be retrieved. If this value
is NULL, GetDC retrieves the device context for the entire screen.
***********
HWND hWnd // handle to a window -- THIS IS MY PROBLEM.
Where or how can I find it ?
I'm working in a global function and I havent any hWnd of any type.
function. This is the GetDc from MSVC help:
**********
GetDC
The GetDC function retrieves a handle to a display device context for the
client area of a specified window or for the entire screen. You can use the
returned handle in subsequent GDI functions to draw in the device context.
The GetDCEx function is an extension to GetDC, which gives an application
more control over how and whether clipping occurs in the client area.
HDC GetDC(
HWND hWnd // handle to a window
);
Parameters
hWnd
Handle to the window whose device context is to be retrieved. If this value
is NULL, GetDC retrieves the device context for the entire screen.
***********
HWND hWnd // handle to a window -- THIS IS MY PROBLEM.
Where or how can I find it ?
I'm working in a global function and I havent any hWnd of any type.