W wz_hzb Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-11 #1 如何在程序中用API函数锁定第三方程序的窗口大小,不让其变化.我用过SetWindowPos(hwnd1,HWND_BOTTOM,0,0,800,600,SWP_SHOWWINDOW|SWP_NOSIZE)也没用,哪位大侠请指导一二.
如何在程序中用API函数锁定第三方程序的窗口大小,不让其变化.我用过SetWindowPos(hwnd1,HWND_BOTTOM,0,0,800,600,SWP_SHOWWINDOW|SWP_NOSIZE)也没用,哪位大侠请指导一二.
C Corn3 Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-11 #3 在FORM私有声明部分加上如下一行: <br>procedure WMNCHitTest( var Message:TWMNCHitTest); message WM_NCHITTEST; <br><br>procedure TForm1.WMNCHitTest( var Message :TWMNCHitTest); <br>begin <br> inherited;<br> Msg.Result := HTCLIENT;<br>end;
在FORM私有声明部分加上如下一行: <br>procedure WMNCHitTest( var Message:TWMNCHitTest); message WM_NCHITTEST; <br><br>procedure TForm1.WMNCHitTest( var Message :TWMNCHitTest); <br>begin <br> inherited;<br> Msg.Result := HTCLIENT;<br>end;
W weiliu Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-11 #5 我试了程序可以:<br>var<br> h:thandle;<br>begin<br> h:=findwindow(nil,'calculator');<br> SetWindowPos(h, HWND_NOTOPMOST, 0, 0, 352, 288, SWP_NOSENDCHANGING);<br>end;
我试了程序可以:<br>var<br> h:thandle;<br>begin<br> h:=findwindow(nil,'calculator');<br> SetWindowPos(h, HWND_NOTOPMOST, 0, 0, 352, 288, SWP_NOSENDCHANGING);<br>end;
W wz_hzb Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-13 #8 weiliu的方法我试用,还是不行,真的只能是拦截消息了