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) 1996 by Microsoft
  10. **, all rights reserved
  11. **-----------------------------------------------------------------------------
  12. */
  13. /*
  14. **-----------------------------------------------------------------------------
  15. **  Include files
  16. **-----------------------------------------------------------------------------
  17. */
  18. #include "Common.h"
  19. /*
  20. **-----------------------------------------------------------------------------
  21. **  Defines
  22. **-----------------------------------------------------------------------------
  23. */
  24. #define MIN_WIN_SIZE_X 128
  25. #define MIN_WIN_SIZE_Y  128
  26. #define DEF_WIN_SIZE_X 256
  27. #define DEF_WIN_SIZE_Y  256
  28. /*
  29. **-----------------------------------------------------------------------------
  30. **  Global Variables
  31. **-----------------------------------------------------------------------------
  32. */
  33. extern HINSTANCE    g_hMainInstance;
  34. extern HWND         g_hMainWindow;
  35. extern HACCEL       g_hMainAccel;
  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. /*
  42. **-----------------------------------------------------------------------------
  43. **  Function Prototypes
  44. **-----------------------------------------------------------------------------
  45. */
  46. // Windows routines
  47. BOOL InitMain (void);
  48. void FiniMain (void);
  49. void RunMain (void);
  50. INT  WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  51.                      LPSTR lpCmdLine, INT nShowCmd);
  52. BOOL InitMainWindow (void);
  53. /*
  54. **-----------------------------------------------------------------------------
  55. **  End of File
  56. **-----------------------------------------------------------------------------
  57. */
  58. #endif // End WINMAIN_H