Click to See Complete Forum and Search --> : Tabbed Dialogs locks up


andygeers
March 16th, 2006, 09:01 AM
Hi there, I've got a Dialog resource created with the CreateDialog function, which contains a tab control (from the common controls set). I use CreateDialog to create further child dialogs, one for each tab, which have the tab control as their parent.

Here's the weird part: whilst radio buttons and lists, etc. on one of the tabs work fine, a command button on the SAME tab causes the whole thing to lock up when you press it - the button doesn't even get redrawn in the 'pressed' state, it just totally freezes after getting a WM_ACTIVATE message.

Any thoughts?

kirants
March 16th, 2006, 03:13 PM
Why not use a Property Sheets (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/propsheet/propsheet.asp) instead ?

andygeers
March 16th, 2006, 05:50 PM
Why not use a Property Sheets (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/propsheet/propsheet.asp) instead ?

The impression give is that with Property Sheets the parent window can't have any additional controls - you're limited to "Apply", "OK" and "Cancel" - correct? I wanted to be able to have other controls (including a menu, etc.) that belong to the parent window and are thus common to all of the tabs.

JohnCz
March 19th, 2006, 07:47 AM
The impression give is that with Property Sheets the parent window can't have any additional controls - you're limited to "Apply", "OK" and "Cancel" - correct?
Depends what you mean by parent window.
Anyway in property sheet or any other window that hosts property sheet you can have any buttons you want.