T tnndusa Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #1 我不知道要用GetWindowLong取得什么信息,是GWL_STYLE还是GWL_EXSTYLE,取出后又要判断什么标志位?同样,怎么判断是否是MDI主窗体?
L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #2 r:=GetWindowLong(YourHandle, GWL_EXSTYLE);<br>if (r and WS_EX_MDICHILD)>0 then<br> ShowMessage('MDIChild')
r:=GetWindowLong(YourHandle, GWL_EXSTYLE);<br>if (r and WS_EX_MDICHILD)>0 then<br> ShowMessage('MDIChild')
T tnndusa Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #3 谢谢,可以了,MSDN上也找到了~<br>怎么判断是否是MDI主窗体?这个找不到资料
Q quejian Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #4 r:=GetWindowLong(YourHandle, GWL_EXSTYLE);<br>if (r and WS_EX_CONTROLPARENT)>0 then<br> ShowMessage('主窗体')
r:=GetWindowLong(YourHandle, GWL_EXSTYLE);<br>if (r and WS_EX_CONTROLPARENT)>0 then<br> ShowMessage('主窗体')
T tnndusa Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #5 问题还是没解决,先放分<br>问题在:<br>http://www.delphibbs.com/delphibbs/dispq.asp?lid=1927891
L lightstar Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-05 #6 if Application.MainForm.Handle = YourHandle then ShowMessage('主窗体');