Click here to Skip to main content
14,637,189 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi everyone, I have create a static control for my project and I need to put the scroll bars to it because I have too much data, lot's of images that would not fit in to it.. Is that possible.. and how can I do that?
Do I have to handle the WM_SCROLL case in the Main window procedure.. ?

Can I do it in a rich edit control, does it support even images.. or just edit and read only text.. ?

What I have tried:

Nothing yet .. was Just a question.. I really need to load few images and I want them on the same control..
Updated 9-Jul-20 2:55am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Yes, you need to handle the WM_SCROLL message. However if you use a standard Windows control, such as Edit or Rich Edit, the scrolling is managed by the control itself. Much depends on the information you wish to display. If it is a mixture of text and images then you may just need a simple Window and handle all the updating and scrolling yourself. Take a look at Windows Controls - Win32 apps | Microsoft Docs[^] to see whether one of the standard controls can do what you want.
M@gelearn 9-Jul-20 9:04am
Thank you Richard.. Gonna go and read some stuff..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100