Subj : Re: Edit Control Scroll Bar To : borland.public.cpp.borlandcpp From : "Benjamin Pratt" Date : Tue Sep 09 2003 04:20 pm The WM_VSCROLL messages are being sent to the WindowProc of the edit control, not the WindowProc of the parent (dialog box, etc). So if you want to capture those WM_VSCROLL messages, you need to subclass the edit control. I think a better alternative exists if you can use the Win32 common controls. (The program does not have to run on Win3.1) Use a Spin Control with the UDS_AUTOBUDDY set to your edit control. This appears as scroll arrows inside the edit control, just like what you are looking for. When the spin control is clicked, it sends a UDN_DELTAPOS notification nmessage to the parent. You can then process this message to see which arrow is clicked. If the text in the edit box is a number, and the number is to be changed according to the up/down buttons, this can be done automatically without processing the UDN_DELTAPOS message. Simply add the UDS_SETBUDDYINT style to the spin control. It will automatically increment/decrement the number in the edit box. "Betkro" wrote in message news:3f5dd446$1@newsgroups.borland.com... > Hi, > I want to use a scroll bar of a single-line edit control for editing > purposes. The event message EN_VSCROLL doesn’t work in this case, neither > seems to do it WM_VSCROLL. Any idea how to deal with a notification message > that indicates which arrow was pressed? > Thanks in advance, > > .