gala_clients/integrator/msdev/integrator/integratorserver/serverwin.cpp
/****************************************************************************

        FUNCTION: InitApplication(HINSTANCE)

        PURPOSE: Initializes window data and registers window class

        COMMENTS:

                This function is called at initialization time only if no other
                instances of the application are running.  This function performs
                initialization tasks that can be done once for any number of running
                instances.

                In this case, we initialize a window class by filling out a data
                structure of type WNDCLASS and calling the Windows RegisterClass()
                function.  Since all instances of this application use the same window
                class, we only need to do this when the first instance is initialized.


****************************************************************************/
InitApplication(HINSTANCE)
PURPOSE: Initializes window data and registers window class



This function is called at initialization time only if no other
instances of the application are running.  This function performs
initialization tasks that can be done once for any number of running
instances.

In this case, we initialize a window class by filling out a data
structure of type WNDCLASS and calling the Windows RegisterClass()
function.  Since all instances of this application use the same window
class, we only need to do this when the first instance is initialized.
InitApplication ( HINSTANCE ) PURPOSE : Initializes window data and registers window class This function is called at initialization time only if no other instances of the application are running . This function performs initialization tasks that can be done once for any number of running instances . In this case we initialize a window class by filling out a data structure of type WNDCLASS and calling the Windows RegisterClass () function . Since all instances of this application use the same window class we only need to do this when the first instance is initialized .
BOOL InitApplication(HINSTANCE hInstance)
{
		if ( !DDEServerCheckInstance() )
			return FALSE;
    WNDCLASS  wc;
        wc.style         = CS_HREDRAW | CS_VREDRAW;
        wc.lpfnWndProc   = (WNDPROC)WndProc;       
        wc.cbClsExtra    = 0;                      
        wc.cbWndExtra    = 0;                      
        wc.hInstance     = hInstance;              
        wc.hIcon         = LoadIcon (hInstance, MAKEINTRESOURCE(IDI_SERVER)); 
        wc.hCursor       = LoadCursor(NULL, IDC_ARROW);	
        wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);	
        wc.lpszMenuName  = MAKEINTRESOURCE(IDM_SERVER); 
        wc.lpszClassName = gszTitle;					
        return (RegisterClass(&wc));
}
BOOL InitApplication ( HINSTANCE hInstance ) { if ( ! DDEServerCheckInstance ( ) ) return FALSE ; WNDCLASS wc ; wc . style = CS_HREDRAW | CS_VREDRAW ; wc . lpfnWndProc = ( WNDPROC ) WndProc ; wc . cbClsExtra = 0 ; wc . cbWndExtra = 0 ; wc . hInstance = hInstance ; wc . hIcon = LoadIcon ( hInstance , MAKEINTRESOURCE ( IDI_SERVER ) ) ; wc . hCursor = LoadCursor ( NULL , IDC_ARROW ) ; wc . hbrBackground = ( HBRUSH ) ( COLOR_WINDOW + 1 ) ; wc . lpszMenuName = MAKEINTRESOURCE ( IDM_SERVER ) ; wc . lpszClassName = gszTitle ; return ( RegisterClass ( & wc ) ) ; }
FUNCTION: InitApplication(HINSTANCE)
PURPOSE: Initializes window data and registers window class
FUNCTION : InitApplication ( HINSTANCE ) PURPOSE : Initializes window data and registers window class
// Fill in window class structure with parameters that describe the // main window. // Class style(s). // Window Procedure // No per-class extra data. // No per-window extra data. // Owner of this class // Icon name from .RC // Cursor // Default color // Menu from .RC // Name to register as // Register the window class and return success/failure code.