I can write simple C++ applications and now with Win32 I can create a Window with a menu bar, scroll bars and such. What I don't know how to do is put my application program in my window. I have been looking for tutorials with no luck so far, but looking. I use the Dev C++ IDE. Any help will be greatly appreciated.
What exactly do you mean by Window? 'Cause to draw scrollbars and buttons you already use a Window, although I'd rather recommend to use a multiplatform, "generic" and higher level library such as QT or WxWidgets.
A window and an application program are not the same thing. Win32 programming is what you do to generate the window itself. A c++ application program does what you programmed it to do. I suppose I should have said how do you create a windows application program.
Compile this code and you get a simple window, however it is not a windows application program. I want to know how to put my application program in the window.
Thanks
// Step 2: Creating the Window
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);