Mercurial > might-and-magic-trilogy
comparison OSAPI.cpp @ 87:c0cf9393af64
Слияние
author | Ritor1 |
---|---|
date | Mon, 29 Oct 2012 09:28:08 +0600 |
parents | fde5c5acb66e |
children | 918dca162239 |
comparison
equal
deleted
inserted
replaced
86:c83d06692295 | 87:c0cf9393af64 |
---|---|
7 | 7 |
8 //----- (00462C94) -------------------------------------------------------- | 8 //----- (00462C94) -------------------------------------------------------- |
9 int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE, wchar_t *lpCmdLine, int nShowCmd) | 9 int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE, wchar_t *lpCmdLine, int nShowCmd) |
10 { | 10 { |
11 Log::Initialize(); | 11 Log::Initialize(); |
12 | 12 |
13 if (HWND hMM7Window = FindWindowW(L"MM7", 0)) | 13 //if (HWND hMM7Window = FindWindowW(L"MM7", 0)) |
14 if (HWND hMM7Window = FindWindowW(L"M&MTrilogy", 0)) | |
14 { | 15 { |
15 if (IsIconic(hMM7Window)) | 16 if (IsIconic(hMM7Window)) |
16 ShowWindow(hMM7Window, SW_RESTORE); | 17 ShowWindow(hMM7Window, SW_RESTORE); |
17 SetForegroundWindow(GetLastActivePopup(hMM7Window)); | 18 SetForegroundWindow(GetLastActivePopup(hMM7Window)); |
18 return 0; | 19 return 0; |