U
Hallo,
ich habe ein PropertySheet Dialog Applikation, welche sich von ShowWindow(SW_HIDE) wieder auf den Desktop schieben soll. Mein Versuch
this == das CMyPropertySheet
DWORD dwForegroundThread = ::GetWindowThreadProcessId(::GetForegroundWindow(), NULL);
DWORD dwCurrentThread = ::GetCurrentThreadId();
if (dwForegroundThread != dwCurrentThread) {
if (AttachThreadInput(dwForegroundThread, dwCurrentThread, TRUE)) {
this->SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
this->SetWindowPos(&CWnd::wndNoTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
AttachThreadInput(dwForegroundThread, dwCurrentThread, FALSE);
}
}
obiges bringt mir die App zwar auf den Desktop, aber deaktiviert. Wie aktiviere ich diese programmtechnisch ?
Danke schon mal fürs lesen
-Uwe