Changing dialog properties programatically
-
Hello again, I have a bunch of dialogs that I use as modals but I want to now bunch them together as child windows in one big dialog. In the process of doing this (without even getting to the make my dialog a child window yet), I am trying to alter the properties of my dialog at run-time. My problem is that when I change the properties by
ModifyStyle()
andModifyStyleEx()
it behaves (when I click the mouse etc..) as though the properties have changed but it still has the border and title etc. What am I doing wrong? heres a snippet of the code thats causing the prob. I have tried all sorts of permutations and combinations of ModifyStyle(). It works if I change all the properties in the resource editor..m_pProjInfoDlg = new CProjInfoDlg(this,m_pDoc); m_pProjInfoDlg->Create(IDD_PROJINFO,this); m_pProjInfoDlg->ModifyStyle(WS_POPUP|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_THICKFRAME|WS_BORDER,0,SWP_NOACTIVATE); m_pProjInfoDlg->ShowWindow(SW_SHOW);
help!! Steadily going bananas. thanks! :) Adam. www.beachwizard.com/travelogue[^] "I spent a lot of my money on booze, birds and fast cars. The rest I just squandered" George Best.