Subj : Re: Edit Control Scroll Bar To : borland.public.cpp.borlandcpp From : "Betkro" Date : Wed Sep 10 2003 02:38 pm I forgot to mention that am working in win16 (BC 4.52) that doesn't have the resources that you are correctly suggesting. A simple turnaround I found was using external standalone scrollbars to the edit box control. Some code is necessary to deal with the arguments passed to the member function through the WM_VSCROLL message, and other features like increment/decrement of the edit box values. Regarding the aesthetics, the solution is very similar as using the edit control built-in scrollbars. But, not as elegant as that of win32 controls. "Benjamin Pratt" escribió en el mensaje news:3f5e51a9$1@newsgroups.borland.com... > 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, > > > > > > > .