Class CSocketThreadManager::
RegisterClass()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: operator =Next page: RegisterTimeout    Show member index
Private Function Declared in:
SocketThreadManager.h

'Declaration' icon -- Shortcut to top of page. Declaration

BOOL RegisterClass(
    LPCSTR lpClassName);

'Description' icon -- Shortcut to top of page. Description

Register the wnd class

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.