WINMAIN.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- #ifndef WINMAIN_H
- #define WINMAIN_H
- /*
- **-----------------------------------------------------------------------------
- ** File: WinMain.h
- ** Purpose: Sample Window code
- ** Notes:
- **
- ** Copyright (c) 1995 - 1997 by Microsoft, all rights reserved
- **-----------------------------------------------------------------------------
- */
- /*
- **-----------------------------------------------------------------------------
- ** Include files
- **-----------------------------------------------------------------------------
- */
- #include "Common.h"
- /*
- **-----------------------------------------------------------------------------
- ** Defines
- **-----------------------------------------------------------------------------
- */
- #define MIN_WIN_SIZE_X 128
- #define MIN_WIN_SIZE_Y 128
- #define DEF_WIN_SIZE_X 256
- #define DEF_WIN_SIZE_Y 256
- /*
- **-----------------------------------------------------------------------------
- ** Global Variables
- **-----------------------------------------------------------------------------
- */
- extern HINSTANCE g_hMainInstance;
- extern HWND g_hMainWindow;
- extern HACCEL g_hMainAccel;
- extern HCURSOR g_hMainCursor;
- extern LPCTSTR g_szMainName;
- extern LPCTSTR g_szMainClass;
- extern LPCTSTR g_szMainTitle;
- extern LPCTSTR g_szPaused;
- extern INT g_nExitCode;
- extern BOOL g_fActive;
- extern INT g_nPaused;
- extern INT g_nWinWidth;
- extern INT g_nWinHeight;
- /*
- **-----------------------------------------------------------------------------
- ** Function Prototypes
- **-----------------------------------------------------------------------------
- */
- // Windows routines
- BOOL InitMain (void);
- void FiniMain (void);
- BOOL CheckPreviousApp (void);
- void RunMain (void);
- INT WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
- LPSTR lpCmdLine, INT nShowCmd);
- BOOL InitMainWindow (void);
- /*
- **-----------------------------------------------------------------------------
- ** End of File
- **-----------------------------------------------------------------------------
- */
- #endif // End WINMAIN_H