S shuszj Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #1 能告诉点击窗体标题事件,用什么消息可以来触发?<br>如点击窗体标题拖到某个地方,放开后会有什么事件触发?
Z zhukewen Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #2 点击窗体标题,触发WM_NCHITTEST事件<br>拖动放开,应该发生WM_NCPAINT事件
S sydan Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #4 就這兩事件,位置和其它都在事件的附再參數中,詳情請看Help<br>*************前面以提到*************<br>点击窗体标题,触发WM_NCHITTEST事件<br>拖动放开,应该发生WM_NCPAINT事件
就這兩事件,位置和其它都在事件的附再參數中,詳情請看Help<br>*************前面以提到*************<br>点击窗体标题,触发WM_NCHITTEST事件<br>拖动放开,应该发生WM_NCPAINT事件
H hamsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #5 点击窗体标题,触发WM_NCHITTEST事件<br>拖动放开,应该发生WM_NCPAINT事件
I icet Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #7 似乎不行耶。。。<br>而且help-WM_NCHITTEST-WM_NCPAINT也找不到什么东东。
S svw0506 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #8 这两个是Windwos的消息,要用消息捕获事件处理
S shuszj Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-10 #10 WM_NCHITTEST好像是窗体标题事件,但我怎么判断点击后鼠标放开的状态<br>如:<br>procedure TMainFrm.WMNCHITTEST(var Msg :TMessage);<br>begin<br> Inherited ;<br> if Msg.Result = ? then //这应该写什么,鼠标拖动后放开的结果<br> ... <br>end;<br>help me?
WM_NCHITTEST好像是窗体标题事件,但我怎么判断点击后鼠标放开的状态<br>如:<br>procedure TMainFrm.WMNCHITTEST(var Msg :TMessage);<br>begin<br> Inherited ;<br> if Msg.Result = ? then //这应该写什么,鼠标拖动后放开的结果<br> ... <br>end;<br>help me?
苍 苍浪 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-10 #11 前面已经提到 就是用WM_NCHITTEST和WM_NCPAINT这两个事件就可以了。