Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get the handle of my window

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
US
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HWND hwnd;

//What do I put here to get the handle of a window I can pass to the test1 routine

test1(hwnd);

return 0;
}


CaKiwi
 
I passed it a NULL and it seemed happy with that

CaKiwi
 
You get your HWND from CreateWindow() or CreateWindowEx(). Get the parameter information from your helpfiles.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top