#include "StdSDK.h" // Standard application includes #include "Init.h" #include "Frame.h" #include "resource.h" // For resource identifiers #include "mdi.h" L_INT WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, L_INT nCmdShow) { MSG msg ; // Application initialization UNLOCKSUPPORT ( ) ; // Note: hPrevInstance is always NULL for Win32 applications // Instance initialization if (! InitInstance ( hInstance, IDR_MAINFRAME, nCmdShow ) ) { return FALSE ; } // Main message loop: while ( GetMessage ( &msg, NULL, 0, 0 ) ) { if ( ! TranslateMDISysAccel ( g_MDIClientWnd, &msg ) ) { if ( ! TranslateAccelerator ( msg.hwnd, g_hAccel, &msg ) ) { TranslateMessage ( &msg ) ; DispatchMessage ( &msg ) ; } } } return ExitInstance ( &msg ) ; // These prevent 'unused formal parameter' warnings hPrevInstance ; lpCmdLine ; }