LRESULT的问题

琥珀 2010-11-30 03:31:33
LRESULT nHitTest = CDialog::OnNcHitTest(pt);这句话的意思,那个大哥帮我解释一下
...全文
231 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
向立天 2010-12-21
  • 打赏
  • 举报
回复
您好
我是本版版主
此帖已多日无人关注
请您及时结帖
如您认为问题没有解决可按无满意结帖处理
另外本版设置了疑难问题汇总帖
并已在版面置顶
相关规定其帖子中有说明
您可以根据规定提交您帖子的链接
如您目前不想结帖只需回帖说明
我们会删除此结帖通知

见此回复三日内无回应
我们将强制结帖

相关规定详见界面界面版关于版主结帖工作的具体办法
ballsky 2010-11-30
  • 打赏
  • 举报
回复
看一下类型吧
Eleven 2010-11-30
  • 打赏
  • 举报
回复
Return Value
One of the mouse hit-test enumerated values listed below.
forzy 2010-11-30
  • 打赏
  • 举报
回复
用返回值告诉系统鼠标落在什么地方了,然后系统根据你返回的结果执行默认的一些操作,比如你直接返回HTCAPTION,那么你在窗口任意地方按下鼠标都可以拖动窗口
ouyh12345 2010-11-30
  • 打赏
  • 举报
回复
CWnd::OnNcHitTest
The framework calls this member function for the CWnd object that contains the cursor (or the CWnd object that used the SetCapture member function to capture the mouse input) every time the mouse is moved.

ouyh12345 2010-11-30
  • 打赏
  • 举报
回复
测试一下鼠标落在哪了

HTBORDER In the border of a window that does not have a sizing border.

HTBOTTOM In the lower horizontal border of the window.

HTBOTTOMLEFT In the lower-left corner of the window border.

HTBOTTOMRIGHT In the lower-right corner of the window border.

HTCAPTION In a title-bar area.

HTCLIENT In a client area.

HTERROR On the screen background or on a dividing line between windows (same as HTNOWHERE except that the DefWndProc Windows function produces a system beep to indicate an error).

HTGROWBOX In a size box.

HTHSCROLL In the horizontal scroll bar.

HTLEFT In the left border of the window.

HTMAXBUTTON In a Maximize button.

HTMENU In a menu area.

HTMINBUTTON In a Minimize button.

HTNOWHERE On the screen background or on a dividing line between windows.

HTREDUCE In a Minimize button.

HTRIGHT In the right border of the window.

HTSIZE In a size box (same as HTGROWBOX).

HTSYSMENU In a Control menu or in a Close button in a child window.

HTTOP In the upper horizontal border of the window.

HTTOPLEFT In the upper-left corner of the window border.

HTTOPRIGHT In the upper-right corner of the window border.

HTTRANSPARENT In a window currently covered by another window.

HTVSCROLL In the vertical scroll bar.

HTZOOM In a Maximize button.

15,976

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧