HTBORDER In the border of a window that does not have a sizing border. HTBOTTOM In the lower-horizontal border of a resizable window (the user can click the mouse to resize the window vertically). HTBOTTOMLEFT In the lower-left corner of a border of a resizable window (the user can click the mouse to resize the window diagonally). HTBOTTOMRIGHT In the lower-right corner of a border of a resizable window (the user can click the mouse to resize the window diagonally). HTCAPTION In a title bar. HTCLIENT In a client area. HTCLOSE In a Close button. HTERROR On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error). HTGROWBOX In a size box (same as HTSIZE). HTHELP In a Help button. HTHSCROLL In a horizontal scroll bar. HTLEFT In the left border of a resizable window (the user can click the mouse to resize the window horizontally). HTMENU In a menu. 不同返回值的含义 HTMAXBUTTON In a Maximize button. 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 a resizable window (the user can click the mouse to resize the window horizontally). HTSIZE In a size box (same as HTGROWBOX). HTSYSMENU In a window menu or in a Close button in a child window. HTTOP In the upper-horizontal border of a window. HTTOPLEFT In the upper-left corner of a window border. HTTOPRIGHT In the upper-right corner of a window border. HTTRANSPARENT In a window currently covered by another window in the same thread (the message will be sent to underlying windows in the same thread until one of them returns a code that is not HTTRANSPARENT). HTVSCROLL In the vertical scroll bar. HTZOOM In a Maximize button.
消息是系统在收到事件后产生的, 系统产生的(当然, 自己也可以用SendMessage, PostMessage 产生)
消息泵只负责消息的处理...
每个窗口都有消息处理函数,要去switch(message),不停的case,case,看是什么消息,mfc给我们简化了处理,我们直接用就行
鼠标点在一个地方,前后做了些什么,那个微软规定了的,我们只管响应菜单命令消息,按钮通知消息,等,
UINT CMyDialog::OnNcHitTest(CPoint pt){ CRect rc; GetClientRect(&rc); ClientToScreen(&rc); return rc.PtInRect(pt) ? HTCAPTION : CDialog::OnNcHitTest(pt);}
HTBOTTOM In the lower-horizontal border of a resizable window (the user can click the mouse to resize the window vertically).
HTBOTTOMLEFT In the lower-left corner of a border of a resizable window (the user can click the mouse to resize the window diagonally).
HTBOTTOMRIGHT In the lower-right corner of a border of a resizable window (the user can click the mouse to resize the window diagonally).
HTCAPTION In a title bar.
HTCLIENT In a client area.
HTCLOSE In a Close button.
HTERROR On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error).
HTGROWBOX In a size box (same as HTSIZE).
HTHELP In a Help button.
HTHSCROLL In a horizontal scroll bar.
HTLEFT In the left border of a resizable window (the user can click the mouse to resize the window horizontally).
HTMENU In a menu. 不同返回值的含义
HTMAXBUTTON In a Maximize button.
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 a resizable window (the user can click the mouse to resize the window horizontally).
HTSIZE In a size box (same as HTGROWBOX).
HTSYSMENU In a window menu or in a Close button in a child window.
HTTOP In the upper-horizontal border of a window.
HTTOPLEFT In the upper-left corner of a window border.
HTTOPRIGHT In the upper-right corner of a window border.
HTTRANSPARENT In a window currently covered by another window in the same thread (the message will be sent to underlying windows in the same thread until one of them returns a code that is not HTTRANSPARENT).
HTVSCROLL In the vertical scroll bar.
HTZOOM In a Maximize button.
我的问题不是很确切,我正是想知道系统方面的问题,