Modal vs Child CDialog style. BIG PROBLEM
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello all, I have a CDialog derived class that is set as Child, no border, no title bar, no menu. I am using this dialog as a child in another dialog. BUT, I would like to use this child dialog as a MODAL dialog. If I use this code : { CDlgEcu locDlgEcu; if( locDlgEcu.DoModal() == IDOK ){ // ADD DATA TO LIST } } then I can see only some controls from this dialog and dont see dialog backgroud, title bar, border ... if I try to use ModifyStyle so this function set some of flags but not all that I need .... this code dont work: ModifyStyle( (~0x00), WS_POPUP|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CAPTION|(WS_SYSMENU|WS_THICKFRAME) ); ModifyStyleEx( (~0x00), WS_EX_CONTROLPARENT|WS_EX_WINDOWEDGE); Does anybody have ANY advice, please? thnx. xSoptik