windows_programming_notes.nbk: Home | Index | Next Page: EN_KILLFOCUS | Previous Page: EN_ERRSPACE
The EN_HSCROLL notification message is sent when the user clicks an edit control's horizontal scroll bar. The parent window of the edit control receives this notification message through a WM_COMMAND message. The parent window is notified before the screen is updated.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_COMMAND WPARAM wParam, // edit control identifier, EN_HSCROLL LPARAM lParam // handle to edit control (HWND) );
This message is sent for the following mouse events on the horizontal scroll bar: clicking either arrow button or clicking between the arrow button and the thumb. However, the message is not sent when clicking the scroll bar thumb itself. The message is also sent when a keyboard event causes a change in the view area of the edit control, for example, pressing HOME, END, LEFT ARROW, or RIGHT ARROW.
Rich Edit: To receive EN_HSCROLL notifications, specify ENM_SCROLL in the mask sent with the EM_SETEVENTMASK message. For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls.
windows_programming_notes.nbk: Home | Index | Next Page: EN_KILLFOCUS | Previous Page: EN_ERRSPACE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time