diploma/diploma.cpp
//
//  FUNCTION: MyRegisterClass()
//
//  PURPOSE: Registers the window class.
//
//  COMMENTS:
//
//    This function and its usage are only necessary if you want this code
//    to be compatible with Win32 systems prior to the 'RegisterClassEx'
//    function that was added to Windows 95. It is important to call this function
//    so that the application will get 'well formed' small icons associated
//    with it.
//
MyRegisterClass()
PURPOSE: Registers the window class.



This function and its usage are only necessary if you want this code
to be compatible with Win32 systems prior to the 'RegisterClassEx'
function that was added to Windows 95. It is important to call this function
so that the application will get 'well formed' small icons associated
with it.
MyRegisterClass () PURPOSE : Registers the window class . This function and its usage are only necessary if you want this code to be compatible with Win32 systems prior to the ' RegisterClassEx ' function that was added to Windows 95 . It is important to call this function so that the application will get ' well formed ' small icons associated with it .
ATOM MyRegisterClass(HINSTANCE hInstance)
{
	WNDCLASSEX wcex;
	wcex.cbSize = sizeof(WNDCLASSEX);
	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, MAKEINTRESOURCE(IDI_DIPLOMA));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= MAKEINTRESOURCE(IDC_DIPLOMA);
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
	return RegisterClassEx(&wcex);
}
ATOM MyRegisterClass ( HINSTANCE hInstance ) { WNDCLASSEX wcex ; wcex . cbSize = sizeof ( WNDCLASSEX ) ; wcex . style = CS_HREDRAW | CS_VREDRAW ; wcex . lpfnWndProc = WndProc ; wcex . cbClsExtra = 0 ; wcex . cbWndExtra = 0 ; wcex . hInstance = hInstance ; wcex . hIcon = LoadIcon ( hInstance , MAKEINTRESOURCE ( IDI_DIPLOMA ) ) ; wcex . hCursor = LoadCursor ( NULL , IDC_ARROW ) ; wcex . hbrBackground = ( HBRUSH ) ( COLOR_WINDOW + 1 ) ; wcex . lpszMenuName = MAKEINTRESOURCE ( IDC_DIPLOMA ) ; wcex . lpszClassName = szWindowClass ; wcex . hIconSm = LoadIcon ( wcex . hInstance , MAKEINTRESOURCE ( IDI_SMALL ) ) ; return RegisterClassEx ( & wcex ) ; }
FUNCTION: MyRegisterClass()
PURPOSE: Registers the window class.
FUNCTION : MyRegisterClass () PURPOSE : Registers the window class .