Sign in to follow this  
savail

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

Recommended Posts

savail    333
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:
[CODE]hStatic = CreateWindowEx( WS_EX_CLIENTEDGE, "STATIC", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL |
SS_LEFT, 150, 200, 150, 200, hwnd, NULL, hInstance, NULL );[/CODE]
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this