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
    1

    Q: How to use a registered class name in a dialog-based app

    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.


  2. #2
    Join Date
    Jan 2006
    Posts
    2

    Re: Q: How to use a registered class name in a dialog-based app


  3. #3
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: Q: How to use a registered class name in a dialog-based app

    Quote Originally Posted by rhuiskens
    The following is the English translation of the above (German) knowledge base article...

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