1 ///////////////////////////////////////
\r
5 #include "resource.h"
\r
6 #include "FrameApp.h"
\r
9 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
\r
12 ::LoadString(hInstance, IDW_MAIN, szBuf, 100);
\r
13 HWND hWnd = FindWindow(szBuf, NULL);
\r
15 // If application is already running, restore it and quit
\r
18 SetForegroundWindow ((HWND)(((DWORD)hWnd) | 0x01));
\r
19 TRACE(_T("Application Already running"));
\r
23 //Start the framework
\r
26 //Process the window messages
\r