|
|
发表于 2012-12-27 11:18:03
|
显示全部楼层
回复 #1783 yidawpf 的帖子
复制进度窗口最前显示的参考:
将一个窗口显示到最前面的源代码
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);
} |
|