T touip Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #1 一任务栏程序,点击图标,loadlibrary,生成一个FORM,当此FORM不是当前窗口时,<br>我如何使它成为当前活动窗口,比如当我点击图标时或弹出菜单时?
T touip Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #3 to netfool:<br> if CheckIdDll=0 then<br> begin<br> CheckIdDll:=LoadLibrary('***.dll');<br> ...<br> end<br> else<br> showwindow(checkIDDLL, SW_SHOW);<br> <br>无效?
to netfool:<br> if CheckIdDll=0 then<br> begin<br> CheckIdDll:=LoadLibrary('***.dll');<br> ...<br> end<br> else<br> showwindow(checkIDDLL, SW_SHOW);<br> <br>无效?
N netfool Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #4 哦,奇怪!<br>你的CheckIdDll对不对啊?怎样得到的啊?
T touip Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #5 CheckIdDll:=LoadLibrary('***.dll');<br>如果关闭此出口,freelibrary后,CHECKIDDLL:=0;<br>你说对不对?
N netfool Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #6 请详细看看ShowWindows这个函数,你搞错了!<br><br> 代码: <br>var<br> Handle: THandle;<br>begin<br> Handle = FindWindow(...);<br> ShowWindow(Handle,...)<br>end;<br>
请详细看看ShowWindows这个函数,你搞错了!<br><br> 代码: <br>var<br> Handle: THandle;<br>begin<br> Handle = FindWindow(...);<br> ShowWindow(Handle,...)<br>end;<br>
T touip Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-11 #7 VAR CHECKIDDLL: THANDLE;<br>我也试过:<br> var check: thandle;<br> check := findwindow(窗口类名,窗口名);<br> showWindow(check, SW_SHOW);<br>但是还是达不到效果?
VAR CHECKIDDLL: THANDLE;<br>我也试过:<br> var check: thandle;<br> check := findwindow(窗口类名,窗口名);<br> showWindow(check, SW_SHOW);<br>但是还是达不到效果?
T touip Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-12 #8 System: win2000<br><br>showWindow(check, SW_SHOWMAXIMIZED); //It's Max,but the form is not Active.<br><br>why?!
System: win2000<br><br>showWindow(check, SW_SHOWMAXIMIZED); //It's Max,but the form is not Active.<br><br>why?!