PDA

View Full Version : Setting ScrollBars



nithya
07-25-2003, 01:51 AM
while using opengl in VC++ how do we set the scroll bar. the viewport map for both are different?

Sourpotato
07-27-2003, 11:31 PM
1.
You should register window class whose style like this
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
2.Then in wndproc declare
SCROLLINFO si;
3.in the wm_size or when you get the screen fill this si and SetScrollInfo
4.then whenever needed,in WM_VSCROLL or WM_HSCROLL, SetScrollInfo()

This is very vaguely described explanation.You'd better check out in the User Interface chapters in MSDN.