Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 savail   Members   

333
Like
0Likes
Like

Posted 16 April 2012 - 12:39 PM

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?

#2 Endurion   Members   

5319
Like
0Likes
Like

Posted 30 April 2012 - 11:23 PM

Static does inherently not listen to mouse events (or get focus). Just create your own class and make a window with it.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.