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

    AfxRegisterClass

    How do i create my own class using AfxRegisterClass in CDialog? For CWnd, i can put the code inside the PreCreateWindow, but for CDialog, the PreCreateWindow function isn't called at all.


  2. #2
    Guest

    Re: AfxRegisterClass

    (No PreCreateWindow for Dialogs)

    Maybe it gets the message if you specify MessageFilter: "window" instead of "dialog".
    You can find that option in the last Tab of the class wizard window in VC++5 and 6.

    Bye Uli


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