Files
2022-10-26 12:25:11 +08:00

59 lines
1.3 KiB
C++

/*-*-*-* *-*-*-*/
/*-*-*-* Base program *-*-*-*/
/*-*-*-* *-*-*-*/
//- WinMain.cpp
// WinMain part
// By SeongMin Hong ( 2000. 12. 13 - )
#include <windows.h>
#include "AppBase.h"
/*-+-+-+-+- Global Variables -+-+-+-+-*/
CAppBase *g_lpAppBase;
char g_lpszAppName[] = "UpdateListGenerator";
/*-+-+-+-+- Functions -+-+-+-+-*/
LRESULT CALLBACK WindowProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);
/*-+-+-+-+- Redeclarations of Functions -+-+-+-+-*/
/*-+-+-+-+- <><><> Window Procedure <><><> -+-+-+-+-*/
LRESULT CALLBACK WindowProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam)
{
if ( g_lpAppBase)
{
return ( g_lpAppBase->WindowProc( hWnd, iMessage, wParam, lParam));
}
return ( DefWindowProc( hWnd, iMessage, wParam, lParam));
}
/*-+-+-+-+- <><><> WinMain Function <><><> -+-+-+-+-*/
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPreInstance, LPSTR lpCmdLine, int nCmdShow)
{
CAppBase AppBase;
g_lpAppBase = &AppBase;
if ( !AppBase.Create( hInstance, g_lpszAppName, WindowProc, MAKEINTRESOURCE( IDI_APPLICATION), nCmdShow))
{
exit( FALSE);
}
int nResult = AppBase.Run();
return ( nResult);
}
/*-*-*-* End of Code *-*-*-*/