home *** CD-ROM | disk | FTP | other *** search
/ CICA 1992 November / CICA_MS_Windows_CD-ROM_Walnut_Creek_November_1992.iso / win3 / programr / listings / blx12 / winapp.cpp < prev    next >
Text File  |  1991-05-02  |  421b  |  21 lines

  1. // winapp.cpp
  2. #include<windows.h>
  3. #include"winapp.h"
  4.  
  5. HANDLE WinApp::hInstance;
  6. HANDLE WinApp::hPrevInstance;
  7. LPSTR WinApp::lpszCmdLine;
  8. int WinApp::nCmdShow;
  9.  
  10. int WinApp::MessageLoop(void)    // default message loop processing
  11.     {
  12.     MSG msg;
  13.  
  14.     while(GetMessage(&msg, NULL, 0, 0))
  15.         {
  16.         TranslateMessage(&msg);
  17.         DispatchMessage(&msg);
  18.         }
  19.     return msg.wParam;
  20.     }
  21.