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

    Check if window class is registered?

    How do I check if my class is registered already?

    Mike B

  2. #2
    Join Date
    Nov 2003
    Posts
    13
    //
    // Register the window class if not already registered.
    //


    WNDCLASS wc;
    HINSTANCE hinst = AfxGetInstanceHandle();
    if (GetClassInfo(hinst, g_classname, &wc))
    return TRUE;

  3. #3
    Join Date
    Nov 2003
    Posts
    13
    //
    // Register the window class if not already registered.
    //
    WNDCLASS wc;
    HINSTANCE hinst = AfxGetInstanceHandle();
    if (GetClassInfo(hinst, g_classname, &wc))
    return TRUE;
    // here you carry on to register the window class

    Hope this helps.

    csheng

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