Click to See Complete Forum and Search --> : AfxRegisterClass


vmirage
May 12th, 1999, 12:56 AM
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.

May 12th, 1999, 04:37 PM
(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