ewin_main.c
来自「可调节自适应滤波器-代码-ERDAS版本」· C语言 代码 · 共 73 行
C
73 行
/*
******************************************************************************
******************************************************************************
**
** 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 + =
减小字号Ctrl + -
显示快捷键?