Activate window in Win2000
-
I want to maximise window from SystemTray. after calling DrawAnimatedRects for my window I tried to use SetActiveWindow(); SetForegroundWindow(); and even ModifyStyleEx(0,WS_EX_TOPMOST) and it works in WinNT but not Win2000 can anybody help me? Mike.:confused:
-
I want to maximise window from SystemTray. after calling DrawAnimatedRects for my window I tried to use SetActiveWindow(); SetForegroundWindow(); and even ModifyStyleEx(0,WS_EX_TOPMOST) and it works in WinNT but not Win2000 can anybody help me? Mike.:confused:
Does GetLastError() give any valueable information? Are you sure this is caused by DrawAnimatedRects()? Have you considered commenting out the DrawAnimatedRects-call and see what happens? From what function do you call DrawAnimatedRects()? -- Alex Marbus
-
I want to maximise window from SystemTray. after calling DrawAnimatedRects for my window I tried to use SetActiveWindow(); SetForegroundWindow(); and even ModifyStyleEx(0,WS_EX_TOPMOST) and it works in WinNT but not Win2000 can anybody help me? Mike.:confused:
Win 2K (and 98) restrict when SetForegroundWindow() can be used. Read the docs page for SetForegroundWindow() - it has all the details. --Mike-- http://home.inreach.com/mdunn/ Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?
-
Does GetLastError() give any valueable information? Are you sure this is caused by DrawAnimatedRects()? Have you considered commenting out the DrawAnimatedRects-call and see what happens? From what function do you call DrawAnimatedRects()? -- Alex Marbus
thank you for response. GetLastError() tell me that all OK. really problem doesn't caused by DrawAnimatedRects() I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)
-
Win 2K (and 98) restrict when SetForegroundWindow() can be used. Read the docs page for SetForegroundWindow() - it has all the details. --Mike-- http://home.inreach.com/mdunn/ Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?
thank you for response. I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)