I usually create them in WinMain after the main window's been successfully created, but you can put them in WM_CREATE (personal preference).
If you use WM_CREATE, the instance comes from:
(or is it GWL_HINSTANCE?)Code:HINSTANCE hInst = (HINSTANCE)GetWindowLong(hWnd, GWL_INSTANCE);




Reply With Quote