Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
878 B

  1. #include "pch.hxx"
  2. #include "globals.h"
  3. #include "resource.h"
  4. #include "util.h"
  5. #include "frame.h"
  6. LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
  7. HINSTANCE g_hInst=NULL;
  8. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  9. PSTR szCmdLine, int iCmdShow)
  10. {
  11. CMDIFrame *pFrame=0;
  12. MSG msg;
  13. g_hInst = hInstance;
  14. OleInitialize(NULL);
  15. pFrame = new CMDIFrame();
  16. if(pFrame)
  17. {
  18. pFrame->HrInit(szCmdLine);
  19. while(GetMessage(&msg, NULL, 0, 0))
  20. {
  21. if (pFrame->TranslateAcclerator(&msg)==S_OK)
  22. continue;
  23. TranslateMessage(&msg) ;
  24. DispatchMessage(&msg) ;
  25. }
  26. ReleaseObj(pFrame);
  27. OleUninitialize();
  28. return msg.wParam ;
  29. }
  30. OleUninitialize();
  31. return 0;
  32. }