?如何判断当前是否在拖动窗体的标题栏??
问题点数:20、回复次数:4Top
1 楼rh(花覆茅檐)回复于 2001-02-17 22:08:00 得分 0
捕获 MouseDownOnCaption
耶!昨天和今天的这个题目的帖子都是你发的吗?Top
2 楼Lin(林)回复于 2001-02-18 12:20:00 得分 20
2 rh:
MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:
xPos = LOWORD(lParam); // horizontal position of cursor
yPos = HIWORD(lParam); // vertical position of cursor
Parameters
xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
Return Values
The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot
HTCAPTION 就是你想要的。
Top
3 楼Lin(林)回复于 2001-02-18 12:21:00 得分 0
2 rh:
MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:
xPos = LOWORD(lParam); // horizontal position of cursor
yPos = HIWORD(lParam); // vertical position of cursor
Parameters
xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
Return Values
The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot
HTCAPTION 就是你想要的。
Top
4 楼Lin(林)回复于 2001-02-18 12:26:00 得分 0
2 rh:
MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:
xPos = LOWORD(lParam); // horizontal position of cursor
yPos = HIWORD(lParam); // vertical position of cursor
Parameters
xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
Return Values
The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot
HTCAPTION 就是你想要的。
Top




