No announcement yet.

smooth scroll in comdlg32 ???

  • Filter
  • Time
  • Show
Clear All
new posts

  • ian mcallister
    Hi Semen,
    This may well be something to do with it, thanks Semen,
    Trouble is,,, I'm not very good at windows programming yet and I was
    rather just hoping it'd be a setting in a rich-edit control or something.
    If the smooth scroll exists and works well then it would look well cool
    in our applications and would be very practical in something like
    ,,, oh I dunno,,, an IDE editor maybe hint hint,,, where you can
    read the code clearly as its scrolling...

    Thanks for your ever helpful input Semen, I for one appreciate it greatly.



    Leave a comment:

  • Semen Matusovski
    Ian --
    maybe you talk about
    int ScrollWindowEx(
      HWND hWnd,             // handle to window
      int dx,                // horizontal scrolling
      int dy,                // vertical scrolling
      CONST RECT *prcScroll, // client area
      CONST RECT *prcClip,   // clipping rectangle
      HRGN hrgnUpdate,       // handle to update region
      LPRECT prcUpdate,      // invalidated region
      UINT flags             // scrolling options
    [in] Handle to the window where the client area is to be scrolled. 
    [in] Specifies the amount, in device units, of horizontal scrolling. This parameter must be a negative value to scroll to the left. 
    [in] Specifies the amount, in device units, of vertical scrolling. This parameter must be a negative value to scroll up. 
    [in] Pointer to a RECT structure that specifies the portion of the client area to be scrolled. If this parameter is NULL, the entire client area is scrolled. 
    [in] Pointer to a RECT structure that contains the coordinates of the clipping rectangle. Only device bits within the clipping rectangle are affected. Bits scrolled from the outside of the rectangle to the inside are painted; bits scrolled from the inside of the rectangle to the outside are not painted. This parameter may be NULL. 
    [in] Handle to the region that is modified to hold the region invalidated by scrolling. This parameter may be NULL. 
    [out] Pointer to a RECT structure that receives the boundaries of the rectangle invalidated by scrolling. This parameter may be NULL. 
    [in] Specifies flags that control scrolling. This parameter can be one of the following values. Value Meaning 
    SW_ERASE Erases the newly invalidated region by sending a WM_ERASEBKGND message to the window when specified with the SW_INVALIDATE flag. 
    SW_INVALIDATE Invalidates the region identified by the hrgnUpdate parameter after scrolling. 
    SW_SCROLLCHILDREN Scrolls all child windows that intersect the rectangle pointed to by the prcScroll parameter. The child windows are scrolled by the number of pixels specified by the dx and dy parameters. The system sends a WM_MOVE message to all child windows that intersect the prcScroll rectangle, even if they do not move. 
    SW_SMOOTHSCROLL Windows 98, Windows 2000: Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time the smooth-scrolling operation should take.

    E-MAIL: [email protected]

    Leave a comment:

  • Lance Edmonds
    COMDLG32 provides the Common Dialog interfaces, so I'm not sure that an update to that file alone would yield changes in the behavior of edit controls, since Edit controls are handled by USER32.

    Anyway, Windows 2000 natively offers all kinds of "effects" (such as transparency, fading, etc) and these are essentially "independent" to any application, so you could be wasting your time looking for a code solution.

    However, I've been playing with XTEQ's version of "TweekUI" from and it provides a setting for "smooth scrolling" although it does not say what scrolling is affected by the setting, but I suspect it is for Menu's and Tooltips (like the EFFECTS tab in Display Properties)..

    Anyone else have any ideas?

    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:

  • ian mcallister
    started a topic smooth scroll in comdlg32 ???

    smooth scroll in comdlg32 ???

    I've heard that in the newer versions of the comdlg32.dll it is
    possible to use smooth scroll in edit controls.

    Does anyone know if this is true?
    Would anyone have an example perhaps?