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