Anyone? I can't use the MFC examples provided, and there seems to be no where on the web that has an example for me to study. I am using Windows API + C++ with Microsoft Visual C++ 6.0. All I am after is a few simple tabs for my settings window.
I use tabs in my DS emulator. Get
http://dualis.1emu.net/files/dlsgui-14-src.zip, then take a look in tabs.h/cpp and dualis.cpp (around where it calls create_propsheet).
I'm not using a dialog box, but an actual window. So I can't use the resource method.
If you examine the *.rc file, you can see that it uses the method this web site has to create the things for the DialogBox, but it creates the DialogBox indirectly passing the data using a parameter. Can I use this method with CreateWindowEx? Perhaps I could use the final parameter to pass the info?
http://www.softintegration.com/chhtml/toolkit/demos/Windows/demos/dialogboxindirect.html
When you get WM_INITDIALOG in the DlgProc for a given tab, feel free to slap on as many code-generated controls as you wish.
But I'm not using a DialogBox. Can I use a normal window or not?
Sure, I'm also putting the tabs on a normal window.
It's just the content you put on each tab that are dialogs (create dialogs without border and caption).
Aaaahhhhhh...
Oooohhhhhh...
Nice one. But the whole program seems to just freeze up whenever I load the window with the DialogBoxIndirect in it. Any ideas why?
No idea without knowing what the relevant code looks like (i.e. your tab creation code, dialog callbacks etc).
Do I have to include IsDialogMessage into my main windows loop or anything else to the loop?
I don't use it. I use PeekMessage with hwnd set to NULL.