May 18, 2005 #1 CaKiwi Programmer Joined Apr 8, 2001 Messages 1,294 Location 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
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
May 18, 2005 Thread starter #2 CaKiwi Programmer Joined Apr 8, 2001 Messages 1,294 Location US I passed it a NULL and it seemed happy with that CaKiwi Upvote 0 Downvote
May 20, 2005 #3 CodingNovice Programmer Joined Dec 30, 2003 Messages 108 Location GB You get your HWND from CreateWindow() or CreateWindowEx(). Get the parameter information from your helpfiles. Upvote 0 Downvote
You get your HWND from CreateWindow() or CreateWindowEx(). Get the parameter information from your helpfiles.