View Full Version : Setting ScrollBars
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?
07-27-2003, 11:31 PM
You should register window class whose style like this
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
2.Then in wndproc declare
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.