📄 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 + -