typedef BOOL (WINAPI *AllowSetForegroundWindowFn_t)(DWORD dwProcessId);
HMODULE hModule = NULL; AllowSetForegroundWindowFn_t pProcAddress = NULL; hModule = GetModuleHandle("User32"); if(hModule != NULL) { pProcAddress = (AllowSetForegroundWindowFn_t)GetProcAddress(hModule, "AllowSetForegroundWindow"); } if (pProcAddress != NULL) { if(pProcAddress(-1)) { SetForegroundWindow(Hwnd); } } if(IsIconic(Hwnd)) { ShowWindow(Hwnd,SW_RESTORE); }
<script type="text/javascript">
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>