Click to See Complete Forum and Search --> : Help, problems with CPropertySheet Locking up!


James Dunning
September 20th, 1999, 04:23 AM
Has anyone ever had any problems when Creating a modal Dialog box from a Page within a PropertySheet? the modal dialog can be a dialog created using the dialog template, or simply an MessageBox using AfxMessageBox(), which ever you use, the same problem always occurs!

For some reason the newly created dialog(s) are never displayed and it seems that the application is stuck within a message loop...

if you have had this problem before please reply,

thanks in advance
James.

Anthony Mai
September 20th, 1999, 06:34 PM
I can not believe that something as simple as AfxMessageBox() would fail to show up on the screen. A better explaination is it does show up but it was hidden behind one of the windows, probably one of the propertypages. The reason is probably you messed up with the window styles of the propertypages. Or you pop up the "invisible" messagebox right at the moment when you switch pages.



I hate fat programs as much as I hate being fat myself. I am lean and mean and so is my program.

November 7th, 1999, 09:46 PM
Hi,I had the same trouble. It is caused by CPropertySheet class.
Perhaps, it will be good that you add next codes to your app.

// CMySheet is derived from CPropertySheer
BOOL CMySheet::OnInitDialog()

ModifyStyleEx(0, WS_EX_CONTROLPARENT);

return CPropertySheet::OnInitDialog();
}