?? ewin_main.c
字號:
/*
******************************************************************************
******************************************************************************
**
** epcw_init.h: Imagine PC Windows API include file.
**
** This header file sets up and intializes an application written for
** the PC platform to interpret both Imagine and Windows OS's
** correctly.
**
** Author: Mark Beers
**
******************************************************************************
******************************************************************************
**
*/
#include <esmg.h>
#include <windows.h>
extern void main(int, char **);
//BOOL CALLBACK
//enumProc(hWnd, lParam)
//HWND hWnd;
//LPARAM lParam;
//{
// if (hWnd) {
// DestroyWindow(hWnd);
// return EMSC_TRUE;
// }
//
// return EMSC_FALSE;
//}
int APIENTRY
WinMain(hInstance, hPrevInstance, lpszCmdLine, nCmdShow)
HINSTANCE hInstance;
HINSTANCE hPrevInstance;
LPSTR lpszCmdLine;
int nCmdShow;
{
int argc = 0;
int i;
char **argv = NULL;
// HWND hAppWnd = NULL;
// HICON hAppMainIcon = NULL;
// DWORD ret;
if (esmg_OSVersionCheck()){
esmg_ApplicationInit((Emsc_Pointer) hInstance);
esmg_ComLineArgsGet(lpszCmdLine, &argc, &argv);
// hAppWnd = esmg_GetAppMainWindowHandle();
// hAppMainIcon = LoadIcon(hInstance, MAKEINTRESOURCE(101));
// if (hAppWnd && hAppMainIcon){
// ret = SetClassLong(hAppWnd, GCL_HICON, (LONG)hAppMainIcon);
// }
/*
** Call your main function
*/
esmg_ProcessInit(argc, argv);
main(argc, argv);
/*
** Close all open windows
*/
// EnumThreadWindows(GetCurrentThreadId(), enumProc, 0);
}
esmg_ProcessExit(0);
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -