发新话题
打印

请问MFC下如何实现按钮的拖动!!!!

::OnMouseMove(UINT nFlags, CPoint point)
nFlags里有按键的信息,看MSDN中关于nFlags的说明
nFlags
Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
MK_CONTROL   Set if the CTRL key is down.
MK_LBUTTON   Set if the left mouse button is down.
MK_MBUTTON   Set if the middle mouse button is down.
MK_RBUTTON   Set if the right mouse button is down.
MK_SHIFT   Set if the SHIFT key is down.
换个头像,看见广告就眼红,直接封ID。

TOP

发新话题