CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    32

    Help, problems with CPropertySheet Locking up!

    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.


  2. #2
    Join Date
    Jun 1999
    Location
    San Diego, CA
    Posts
    600

    Re: Help, problems with CPropertySheet Locking up!

    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.

  3. #3
    Guest

    Re: Help, problems with CPropertySheet Locking up!

    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();
    }





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured