⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ewin_main.c

📁 可调节自适应滤波器-代码-ERDAS版本
💻 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 + -