Re[2]: Bring window to front
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> May 21, 2001
- 346 views
> Your best bet is probably SetForeGroundWindow, in user32.dll. From > win32.hlp: > BOOL SetForegroundWindow( > HWND hwnd // handle of window to bring to foreground > ); > Remarks > The foreground window is the window at the top of the Z order. It is the > window that the user is working with. The system assigns a slightly higher > priority to the thread that created the foreground window than it does to > other threads. > SetForegroundWindow activates a window and forces the thread that created > the window into the foreground. > An application should call SetForegroundWindow if it wants to put itself > into the foreground. A good example is a debugger when it hits a breakpoint. > Unlike SetForegroundWindow, the SetActiveWindow function activates a window, > but it only brings the window to the foreground if the window is owned by > the thread making the SetActiveWindow call. > Matt Lewis That's exactly what I want to do, but it doesn't seem to work.... Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying