Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


referring scroll

Posted on 1999-07-07
Medium Priority
Last Modified: 2010-04-15
I have a rich control created initially without vscroll.
after I send the message
::ShowScrollBar((HWND)m_Rich, SB_VERT, TRUE);
and the scroll bar appears. But If I try to move it with mouse it remains always at top position although the contents of rich window scrolls. How can I make the scroll have a normal behaviour?
Question by:pelau
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 11

Expert Comment

ID: 1263364
How about setting the parameters of the scrollbar (top,bottom positions, etc.)?

This is not a 'C' question.  Next time, try the windows programming area.

Accepted Solution

Shay050799 earned 200 total points
ID: 1263365
well thats because u did not over the WM_VSCROLL function
u probably using VC++ ?

if so use this answer use the one below:

and in that function you'll get pointer to a scroll bar, if u have only one scroll bar thats the one you'll get pointer to, if not u have to cast the one u want to use.

now u have a pointer to the scroll bar, and it'll do all CSCrollBar class alloowed you to.


in your message loop check this:
   the lParam is the pointer to the scrollbar you suppose to do the same as the example of the VC++ cast it or use it


i m sure its confussing, start with it, and i'll guide you through it.


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question