L luyear Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-04 #1 我試用下面的代碼:有時可以,有時不行,還有沒有其他的辦法??<br>ShowWindow(Application.Handle, SW_HIDE);<br>SetWindowLong(handle,GWL_ExStyle,WS_EX_toolWindow);
我試用下面的代碼:有時可以,有時不行,還有沒有其他的辦法??<br>ShowWindow(Application.Handle, SW_HIDE);<br>SetWindowLong(handle,GWL_ExStyle,WS_EX_toolWindow);
T testnet Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-04 #2 <br>Application.showMainForm:=false不知行不行<br>加到。DPR中
O omvm Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-04 #3 我的程序中<br>ShowWindow(Application.Handle, SW_HIDE);<br>不行,<br>SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);<br>可以。<br>怎么回事,第一句我在很多书上见过,可我的程序中却不行,第二句应该可以呀。
我的程序中<br>ShowWindow(Application.Handle, SW_HIDE);<br>不行,<br>SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);<br>可以。<br>怎么回事,第一句我在很多书上见过,可我的程序中却不行,第二句应该可以呀。
R redsky.l Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-04 #4 procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> SetLastError(0);<br> SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);<br>end;<br><br>
procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> SetLastError(0);<br> SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);<br>end;<br><br>
R redsky.l Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-04 #5 还有一方法:<br><br> SetWindowLong( Application.Handle, GWL_EXSTYLE,<br> GetWindowLong(Application.Handle, GWL_EXSTYLE) or<br> WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);<br><br>
还有一方法:<br><br> SetWindowLong( Application.Handle, GWL_EXSTYLE,<br> GetWindowLong(Application.Handle, GWL_EXSTYLE) or<br> WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);<br><br>