WINMAIN.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #ifndef WINMAIN_H
  2. #define WINMAIN_H
  3. /*
  4. **-----------------------------------------------------------------------------
  5. **  File:       WinMain.h
  6. **  Purpose:    Sample Window code
  7. **  Notes:
  8. **
  9. **  Copyright (c) 1995 - 1997 by Microsoft, all rights reserved
  10. **-----------------------------------------------------------------------------
  11. */
  12. /*
  13. **-----------------------------------------------------------------------------
  14. **  Include files
  15. **-----------------------------------------------------------------------------
  16. */
  17. #include "Common.h"
  18. /*
  19. **-----------------------------------------------------------------------------
  20. **  Defines
  21. **-----------------------------------------------------------------------------
  22. */
  23. #define MIN_WIN_SIZE_X 128
  24. #define MIN_WIN_SIZE_Y  128
  25. #define DEF_WIN_SIZE_X 256
  26. #define DEF_WIN_SIZE_Y  256
  27. /*
  28. **-----------------------------------------------------------------------------
  29. **  Global Variables
  30. **-----------------------------------------------------------------------------
  31. */
  32. extern HINSTANCE    g_hMainInstance;
  33. extern HWND         g_hMainWindow;
  34. extern HACCEL       g_hMainAccel;
  35. extern HCURSOR      g_hMainCursor;
  36. extern LPCTSTR      g_szMainName;
  37. extern LPCTSTR      g_szMainClass;
  38. extern LPCTSTR      g_szMainTitle;
  39. extern LPCTSTR      g_szPaused;
  40. extern INT          g_nExitCode;
  41. extern BOOL         g_fActive;
  42. extern INT          g_nPaused;
  43. extern INT          g_nWinWidth;
  44. extern INT          g_nWinHeight;
  45. /*
  46. **-----------------------------------------------------------------------------
  47. **  Function Prototypes
  48. **-----------------------------------------------------------------------------
  49. */
  50. // Windows routines
  51. BOOL InitMain (void);
  52. void FiniMain (void);
  53. BOOL CheckPreviousApp (void);
  54. void RunMain (void);
  55. INT  WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  56.                      LPSTR lpCmdLine, INT nShowCmd);
  57. BOOL InitMainWindow (void);
  58. /*
  59. **-----------------------------------------------------------------------------
  60. **  End of File
  61. **-----------------------------------------------------------------------------
  62. */
  63. #endif // End WINMAIN_H