D dhch Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #1 当某个条件符合时,该窗口置前
Y yhaochuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #2 SetForegroundWindow(<br> HWND hWnd // handle of window to bring to foreground<br>
SetForegroundWindow(<br> HWND hWnd // handle of window to bring to foreground<br>
I iamfly Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #3 嗬嗬,看看我的这个贴子:<br>http://www.delphibbs.com/delphibbs/dispq.asp?lid=676583<br>“把窗口显示出来(包括最小化的窗口也能恢复最小化前大小) ”
嗬嗬,看看我的这个贴子:<br>http://www.delphibbs.com/delphibbs/dispq.asp?lid=676583<br>“把窗口显示出来(包括最小化的窗口也能恢复最小化前大小) ”
D dhch Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #4 我试了,好像不行的<br> 好像只能在同一个应用程序中,这个函数才可以用啊
Y yhaochuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #5 SetForegroundWindow(application.handle);<br> ShowWindow(application.handle, SW_RESTORE);<br>
SetForegroundWindow(application.handle);<br> ShowWindow(application.handle, SW_RESTORE);<br>
C coollifei Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #7 ShowWindow(application.handle, SW_RESTORE);<br> SetForegroundWindow(application.handle);<br>肯定行的。<br> <br><br> <br>
ShowWindow(application.handle, SW_RESTORE);<br> SetForegroundWindow(application.handle);<br>肯定行的。<br> <br><br> <br>
Y yhaochuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #8 procedure TForm1.Timer1Timer(Sender: TObject);<br>begin<br> ShowWindow(application.handle, SW_RESTORE);<br> SetForegroundWindow (application.handle);<br>end;<br><br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, SPIF_SENDWININICHANGE or SPIF_UPDATEINIFILE);<br>end;<br>这样可以。<br>
procedure TForm1.Timer1Timer(Sender: TObject);<br>begin<br> ShowWindow(application.handle, SW_RESTORE);<br> SetForegroundWindow (application.handle);<br>end;<br><br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, SPIF_SENDWININICHANGE or SPIF_UPDATEINIFILE);<br>end;<br>这样可以。<br>
W wyh919 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #9 这样就行:<br>[red]procedure TForm1.Button2Click(Sender: TObject);<br>var<br> hwnd1: HWND;<br>begin<br> hwnd1:= FindWindow(PChar('IEFrame'),PChar('大富翁论坛 delphibbs.com - Microsoft Internet Explorer'));<br> if hwnd1 <> 0 then<br> begin<br> ShowWindow(hwnd1,SW_RESTORE);<br> SetForegroundWindow(hwnd1);<br> end;<br>end;[/red]
这样就行:<br>[red]procedure TForm1.Button2Click(Sender: TObject);<br>var<br> hwnd1: HWND;<br>begin<br> hwnd1:= FindWindow(PChar('IEFrame'),PChar('大富翁论坛 delphibbs.com - Microsoft Internet Explorer'));<br> if hwnd1 <> 0 then<br> begin<br> ShowWindow(hwnd1,SW_RESTORE);<br> SetForegroundWindow(hwnd1);<br> end;<br>end;[/red]
N netke Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-23 #10 肯定行的:<br> Hwnd := FindWindow(nil,'应用程序的Title');<br> PostMessage(Hwnd, WM_USER, 0, 0);<br> ShowWindow(Hwnd, SW_RESTORE);<br> SetForegroundWindow(Hwnd);
肯定行的:<br> Hwnd := FindWindow(nil,'应用程序的Title');<br> PostMessage(Hwnd, WM_USER, 0, 0);<br> ShowWindow(Hwnd, SW_RESTORE);<br> SetForegroundWindow(Hwnd);
A ASCII Unregistered / Unconfirmed GUEST, unregistred user! 2002-02-06 #11 用这个:<br><br>BOOL BringWindowToTop(<br><br> HWND hWnd // handle to window<br>
用这个:<br><br>BOOL BringWindowToTop(<br><br> HWND hWnd // handle to window<br>