Acmlm's Board - I2 Archive - Programming - Win32 API help
User | Post |
HyperLamer
Posts: 4023/8210 |
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. |
Parasyte
Posts: 406/514 |
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. |
interdpth
Posts: 428/527 |
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 |
|