In your window proc. function (WindowProcedure(...)) you need to call "CreateWindow(...)". In the "switch(message)" statement, add this code:
First, create 2 globals (ex. under the "char szClassName[...] ..." line). Make them like this:
Code:
/*Make sure you remove "HWND hwnd;" from "WinMain" function first*/
HWND hwnd; // Main window
HWND hButton; // Handle for button
Code:
case WM_CREATE:
hButton = CreateWindow("BUTTON", "MyText",
WS_CHILD | WS_VISIBLE,
100, // 'X' position
100, // 'Y' position
120, // Width
20, // Height
hwnd, // Parent window handle
NULL, // No menu
NULL, // Don't need it I don't think
NULL); // Don't need this
break;
That's all you need to do. I hope this helps.