Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a Window and then, created 50 buttons on this Window but I can only see 10 buttons on my window. Rest are out of view since I am not able to scroll the window down.

I have added auto scroll to window by adding

WS_VSCROLL | WS_HSCROLL | ES_AUTOVSCROLL | ES_AUTOHSCROLL

to Window Style parameter of CreateWindowEx function. By doing this, I can see a scroll on the window but this scroll is not movable.

What is the possible and simple solution to add a auto scroll to window in order to see all the 50 buttons in such a situation.
Posted

1 solution

The phrase "auto scroll" does not make sense in this context. It is not clear if you are doing this with a dialog or a form. If it is a dialog, there is no scrolling. If a form, then scrolling is built in (actually you have to do a few things to remove it). It sounds like you are implementing this on a dialog. You likely need to change your basic application type. It would likely be easier to scrub your code and start over, creating a standard application with a form interface.
 
Share this answer
 

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