Jump to content
  • Advertisement
Sign in to follow this  
savail

[WIN API]How to create a static control with a scrollbar?

This topic is 2300 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey,
I need to create a static area on my window(that you can't move) with a horizontal scrollbar. I've tried this way:
hStatic = CreateWindowEx( WS_EX_CLIENTEDGE, "STATIC", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL |
SS_LEFT, 150, 200, 150, 200, hwnd, NULL, hInstance, NULL );

The problem is that the scrollbar can't be moved/rolled etc.

Edit:
Actually I'm creating a map editor for my game and I wonder how to create an area where map should be designed. It must have a scrollbar as well. But is a static control really a good solution? How to do this?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!