Ran Dolev
April 28th, 1999, 02:47 AM
I have a dialog-based app where I register my own unique class name in the InitInstance() function. Then I want to use this registered class rather than the default class. How do I do that?
In other apps I have, that are using the doc/view architecture, I override PreCreateWindow() in the CMainFrame object and supply my registered class name to the "lpszClass" member of CREATESTRUCT and it works just fine.
In this dialog-based app, where there is no CMainFrame object, I tried to do the same thing, override PreCreateWindow() in the MainDialog object, but this function never gets called.
Thanks, Ran.
In other apps I have, that are using the doc/view architecture, I override PreCreateWindow() in the CMainFrame object and supply my registered class name to the "lpszClass" member of CREATESTRUCT and it works just fine.
In this dialog-based app, where there is no CMainFrame object, I tried to do the same thing, override PreCreateWindow() in the MainDialog object, but this function never gets called.
Thanks, Ran.