Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Win32 API help | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
interdpth

Rex
Level: 36

Posts: 428/527
EXP: 294398
For next: 13712

Since: 03-20-04

Since last post: 10 days
Last activity: 31 days
Posted on 04-02-05 03:18 AM Link | Quote
Scrollbar help! Well I need to know how they function right and how to set their max values and stuff My code is
Scroller.cbSize = sizeof(SCROLLINFO);
Scroller.fMask = SIF_ALL;
Scroller.nMax = 512/MapWidth;
Scroller.nMin = 0;
Scroller.nPage = MapWidth;
Scroller.nPos = 0;
Scroller.nTrackPos = 0;
SetScrollInfo(HorScrollBar,SB_CTL,&Scroller,true);
This is for a map editor. Map Width is set by the user the max width at one time is 32 so I need to make it scroll for higher values please someone help
Parasyte

Bullet Bill
Level: 35

Posts: 406/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 04-02-05 04:50 PM Link | Quote
Uh, just place this code in your WM_SIZE handler (assuming this is what you want) Of course, you'll want to change the MapWidth variable there, as well.
Other than that, I don't know what you want.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 4023/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 04-03-05 02:29 AM Link | Quote
Yes, what exactly is the problem; is it not working? If something's failing it's generally a good idea to temporarily add code that outputs the value of GetLastError(), and for long-term you might want to check return values too.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Win32 API help | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.