Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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..
Posted
Updated 9-Jul-20 2:55am

1 solution

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.
 
Share this answer
 
Comments
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900