Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CComboBox selection state before CBN_SELCHANGE Pin
David Crow3-Jun-05 5:28
David Crow3-Jun-05 5:28 
GeneralMonitoring opened files Pin
0908869039@seznam.cz3-Jun-05 3:37
0908869039@seznam.cz3-Jun-05 3:37 
GeneralRe: Monitoring opened files Pin
David Crow3-Jun-05 4:03
David Crow3-Jun-05 4:03 
Generalplatform Win32 title bar Pin
camoguard3-Jun-05 2:51
camoguard3-Jun-05 2:51 
GeneralFlickering Pin
Dennis L3-Jun-05 2:29
Dennis L3-Jun-05 2:29 
GeneralRe: Flickering Pin
David Crow3-Jun-05 2:43
David Crow3-Jun-05 2:43 
GeneralRe: Flickering Pin
Dennis L3-Jun-05 2:47
Dennis L3-Jun-05 2:47 
GeneralCPropertySheet, WS_CHILD and hidden dialogs Pin
LucanFahr3-Jun-05 1:45
LucanFahr3-Jun-05 1:45 
Hello people,

I'm having a very weird problem at the moment and I can't figure it out. Here's the situation;
- I have a normal dialog (CDialog class) with a groupbox on it.
- Inside the groupbox, I create a CPropertySheet like this:

CWnd* pWnd = GetDlgItem(IDC_ST_TAB);
m_propSheet.Create(pWnd, WS_CHILD | WS_VISIBLE);
m_propSheet.SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);

where IDC_ST_TAB is the ID of the groupbox and m_propSheet is a CPropertySheet object.

- Before I call create, I add several pages. All pages show fine.
- On one of the pages contains a custom listbox, this listbox has a popup menu on right click. The popup menu shows fine.
- When an item in the popup menu is clicked, it SHOULD pop up another dialog (again a CDialog class). It does seem to load the dialog, but never shows it! It hangs on DoModal().

Now here's the weird thing; when I change the m_propSheet.Create to say WS_POPUP or just nothing instead of WS_CHILD, I get a floating property sheet and then the dialogs DO pop up properly...
What am I missing here? All property sheets are also set as child in the resource (but I don't think it matters).
GeneralForms 2.0 ActiveX control Pin
avs43-Jun-05 1:44
avs43-Jun-05 1:44 
GeneralRe: Forms 2.0 ActiveX control Pin
Cedric Moonen3-Jun-05 2:16
Cedric Moonen3-Jun-05 2:16 
GeneralRe: Forms 2.0 ActiveX control Pin
avs43-Jun-05 3:53
avs43-Jun-05 3:53 
GeneralRe: Forms 2.0 ActiveX control Pin
Cedric Moonen3-Jun-05 3:59
Cedric Moonen3-Jun-05 3:59 
GeneralRe: Forms 2.0 ActiveX control Pin
avs43-Jun-05 4:37
avs43-Jun-05 4:37 
GeneralRe: Forms 2.0 ActiveX control Pin
Nat2423-Jan-06 14:46
Nat2423-Jan-06 14:46 
General3D triangulation Pin
Tender_Nail3-Jun-05 1:38
Tender_Nail3-Jun-05 1:38 
GeneralRe: 3D triangulation Pin
toxcct3-Jun-05 2:06
toxcct3-Jun-05 2:06 
GeneralRe: 3D triangulation Pin
Cedric Moonen3-Jun-05 4:20
Cedric Moonen3-Jun-05 4:20 
GeneralRe: 3D triangulation Pin
toxcct10-Jun-05 9:32
toxcct10-Jun-05 9:32 
GeneralRe: 3D triangulation Pin
Cedric Moonen10-Jun-05 11:07
Cedric Moonen10-Jun-05 11:07 
GeneralRe: 3D triangulation Pin
toxcct11-Jun-05 2:37
toxcct11-Jun-05 2:37 
GeneralRe: 3D triangulation Pin
El Corazon3-Jun-05 4:45
El Corazon3-Jun-05 4:45 
GeneralRe: 3D triangulation Pin
eli150219793-Jun-05 5:24
eli150219793-Jun-05 5:24 
GeneralRe: 3D triangulation Pin
toxcct3-Jun-05 6:23
toxcct3-Jun-05 6:23 
GeneralCode example!! Pin
Hachaso3-Jun-05 1:34
Hachaso3-Jun-05 1:34 
GeneralRe: Code example!! Pin
David Crow3-Jun-05 2:22
David Crow3-Jun-05 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.