home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / boids / winmain.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-15  |  2.2 KB  |  87 lines

  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. **-----------------------------------------------------------------------------
  15. **  Include files
  16. **-----------------------------------------------------------------------------
  17. */
  18.  
  19. #include "Common.h"
  20.  
  21.  
  22.  
  23. /*
  24. **-----------------------------------------------------------------------------
  25. **  Defines
  26. **-----------------------------------------------------------------------------
  27. */
  28.  
  29. #define MIN_WIN_SIZE_X    128
  30. #define MIN_WIN_SIZE_Y  128
  31. #define DEF_WIN_SIZE_X    256
  32. #define DEF_WIN_SIZE_Y  256
  33.  
  34.  
  35.  
  36. /*
  37. **-----------------------------------------------------------------------------
  38. **  Global Variables
  39. **-----------------------------------------------------------------------------
  40. */
  41.  
  42. extern HINSTANCE    g_hMainInstance;
  43. extern HWND         g_hMainWindow;
  44. extern HACCEL       g_hMainAccel;
  45. extern HCURSOR      g_hMainCursor;
  46.  
  47. extern LPCTSTR      g_szMainName;
  48. extern LPCTSTR      g_szMainClass;
  49. extern LPCTSTR      g_szMainTitle;
  50. extern LPCTSTR      g_szPaused;
  51.  
  52. extern INT          g_nExitCode;
  53.  
  54. extern BOOL         g_fActive;
  55. extern INT          g_nPaused;
  56.  
  57. extern INT          g_nWinWidth;
  58. extern INT          g_nWinHeight;
  59.  
  60.  
  61.  
  62. /*
  63. **-----------------------------------------------------------------------------
  64. **  Function Prototypes
  65. **-----------------------------------------------------------------------------
  66. */
  67.  
  68. // Windows routines
  69. BOOL InitMain (void);
  70. void FiniMain (void);
  71.  
  72. BOOL CheckPreviousApp (void);
  73. void RunMain (void);
  74. INT  WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  75.                      LPSTR lpCmdLine, INT nShowCmd);
  76. BOOL InitMainWindow (void);
  77.  
  78.  
  79. /*
  80. **-----------------------------------------------------------------------------
  81. **  End of File
  82. **-----------------------------------------------------------------------------
  83. */
  84. #endif // End WINMAIN_H
  85.  
  86.  
  87.