Thanks for the information, also is it possible to load controls from another C++ file:
e.g. I would want to load a button:
Code:
//Example
void LoadButton()
{
HWND hButton = CreateWindow("BUTTON", "Click Me", WS_CHILD | WS_VISIBLE, 10, 10, 120, 27, hwnd, NULL, (HINSTANCE) GetWindowLong(hButton, GWL_HINSTANCE), NULL);
}
And here it would be used:
Code:
//Example
#include "OtherFile.cpp"
extern void LoadButton();
.............
WM_CREATE:
{
LoadButton();
} break;
The program executes but it does not load the button, do the controls code have to be implemented within the WM_CREATE case or can they be loaded form other sources like my example?
Thanks,
RJK
Bookmarks