I'm trying to implement a child window so I can put buttons and such in it, though things aren't going to plan. This is what I've got:
The problem is, hChild is always 0 (because it failed). I'm guessing the problem is that I don't have a WNDCLASSEX in there, but I want it to be empty. So what's wrong? Or am I going about this the complete wrong way?Code:hChild = CreateWindowEx( NULL, "", NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hMainWindow, (HMENU)ID_CHILD, GetInstance(), NULL );
EDIT: Sorry, I should've explained the situation more. What I'm trying to do is implement pages in my Tab Controls. I've got the tabs appearing and running fine, but I'm thinking I will add a child window for each page. When the user clicks on a tab, I'll use ShowWindow() to hide the old child window and display the new one. I've figured this would be a pretty good way of doing it (or is it?). So, more or less, how do you implement a child window into a tab, so that I can put in my other controls on the page?