Bobbysl
February 11th, 2009, 11:32 AM
I've been doing some basic win32 programming. Just a simple window and a couple of buttons. Now i want to add a child window to my main window
SaveButton = CreateWindow("BUTTON","Save", WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,10, 10,80,20,m_hWnd,(HMENU)102,m_hInstance,NULL);
This is how i added a button. I should be able to add a window in the same way if i have defined the window in another file right???
Thanks
P.S. Hope the code tags work, haven't used it before
SaveButton = CreateWindow("BUTTON","Save", WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,10, 10,80,20,m_hWnd,(HMENU)102,m_hInstance,NULL);
This is how i added a button. I should be able to add a window in the same way if i have defined the window in another file right???
Thanks
P.S. Hope the code tags work, haven't used it before