|
-
November 22nd, 2003, 07:51 PM
#1
Check if window class is registered?
How do I check if my class is registered already?
Mike B
-
November 22nd, 2003, 10:30 PM
#2
//
// Register the window class if not already registered.
//
WNDCLASS wc;
HINSTANCE hinst = AfxGetInstanceHandle();
if (GetClassInfo(hinst, g_classname, &wc))
return TRUE;
-
November 22nd, 2003, 10:33 PM
#3
//
// 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|