Empty child window...

This is a discussion on Empty child window... within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to implement a child window so I can put buttons and such in it, though things aren't going ...

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?

Cheers.

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?

Try the DialogBox instead, just declare a template for the window (not necessary the inside controls) and a procedure for that window. Something like that, first setup the template on the resource file:

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?