![]() |
RegisterClass() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: SocketThreadManager.h |
Declaration
BOOL RegisterClass(
LPCSTR lpClassName);
DescriptionRegister the wnd class
Function Body
//Is the window registered
if (m_bRegisteredWindow)
return TRUE;
try
{
WNDCLASS wc;
/* Fill in window class structure with parameters that describe the */
/* main window. */
wc.style = 0; /* Class style(s). */
wc.lpfnWndProc = (WNDPROC)DefWindowProc; /* Function to retrieve messages for */
/* windows of this class. */
wc.cbClsExtra = 0; /* No per-class extra data. */
wc.cbWndExtra = 0; /* No per-window extra data. */
wc.hIcon = NULL; /* Icon name from .RC */
wc.hInstance = m_hInstance; /* Application that owns the class. */
wc.hCursor = NULL;
wc.hbrBackground = NULL;
wc.lpszMenuName = NULL; /* Name of menu resource in .RC file. */
wc.lpszClassName = lpClassName ; /* Name used in call to CreateWindow. */
/* Register the window class and return success/failure code. */
m_bRegisteredWindow=::RegisterClass(&wc)!=0;
//And return the value
return m_bRegisteredWindow;
}
ERROR_HANDLER_RETURN("RegisterClass",FALSE)
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |