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

    URGENT: code in OnInitDialog() is not executing!

    I have SDI project, with CFormView as base class. My code in OnInitDialog() is not executing. I have tried AfxMessageBos() there, it does not show up!
    What could be the possible reason and remedy of this?


  2. #2
    Join Date
    May 1999
    Posts
    318

    Re: URGENT: code in OnInitDialog() is not executing!

    OnInitDialog is called on response to message WM_INITDIALOG.
    But this message is not sent to a CFormView but only to a CDialog based class when calling Create, CreateIndirect or DoModal



  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: URGENT: code in OnInitDialog() is not executing!

    For a Form use OnInitialUpdate()

    Sally


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