Click to See Complete Forum and Search --> : Adding scrollbars on a very large dialog box
polo
May 28th, 1999, 05:56 AM
Is it possible to add scrollbars to a dialog box wich is larger than the actual screen.
###
#####
#######
#####
\\\|/// ###
| ~ ~ | #
(- * * -) #
------------oOOo-(_)-oO#o-----------
| #
^ #
" #
##
Jason Teagle
May 28th, 1999, 06:58 AM
Possible, but tricky. If you add scrollbar controls in the Resource Editor as with any other control, you would have to set the total size of the dialogue area to be covered (i.e., tell the scrollbars how far they go - SetScrollRange() ), then handle the WM_VSCROLL and WM_HSCROLL messages, then move all controls on the dialogue box around according to the current scroll position, as well as any painting you do directly onto the dialogue box.
Not for the faint-hearted. If you have that much data to display, you should think about property sheets (= multi-page dialogue).
Still wanna do it? E-mail me (jteagle@solartron.com) and I'll knock up a demo.
polo
May 28th, 1999, 08:36 AM
Thanks for the tip,
far too triky for me...yet :)
I won't do it that way then ==> i.e I'll just go through a normal CScrollView.
Thanks again,
###
#####
#######
#####
\\\|/// ###
| ~ ~ | #
(- * * -) #
------------oOOo-(_)-oO#o-----------
| #
^ #
" #
##
rajasekar.s
June 2nd, 1999, 04:11 AM
check CFormView. It does exactly what u want !
happy dialog scrolling !
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.