15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Scrolling Dialogs

Greg D. Tighe -- gdt@eng.aisinc.com
Wednesday, July 03, 1996

MSVC++ 4.1, Windows95

If I insert a dialog using the ResourceView then edit the properties 
and select "Vertical Scroll", then when I call CMyDialog::DoModal() 
it is indeed displayed with a vertical scrollbar, which does not 
scroll my dialog.

Do I need to write my own OnVScroll handler for this dialog?  It 
seems there should be a default handler for this kind of thing which 
calls ScrollWindow() as appropriate, sets the scrollbar position, 
scrolls the dialog if you tab to a control which is currently 
"off-screen", etc.

What do I need to do to obtain this kind of functionality?

	-Greg Tighe
	Applied Intelligent Systems, Inc.
	Ann Arbor, MI
	gdt@aisinc.com



Dan Kirby -- dkirby@accessone.com
Friday, July 05, 1996

A CFormview contains a dialog and has scrolling capabilities. It sounds 
like you want the same kind of behavior. CFormView derives from 
CScrollView.  You can steal the code in VIEWSCRL.CPP for scrolling.

--dan
----------
From: 	Greg Tighe[SMTP:gdt@eng.aisinc.com]
Sent: 	Wednesday, July 03, 1996 1:02 PM
To: 	mfc-l@netcom.com
Subject: 	Scrolling Dialogs

MSVC++ 4.1, Windows95

If I insert a dialog using the ResourceView then edit the properties
and select "Vertical Scroll", then when I call CMyDialog::DoModal()
it is indeed displayed with a vertical scrollbar, which does not
scroll my dialog.

Do I need to write my own OnVScroll handler for this dialog?  It
seems there should be a default handler for this kind of thing which
calls ScrollWindow() as appropriate, sets the scrollbar position,
scrolls the dialog if you tab to a control which is currently
"off-screen", etc.

What do I need to do to obtain this kind of functionality?

	-Greg Tighe
	Applied Intelligent Systems, Inc.
	Ann Arbor, MI
	gdt@aisinc.com




begin 600 WINMAIL.DAT
M>)\^(AD&`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`; (```(````,`````P``, ,````+``\.``````(!_P\!````/P``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````&UF8RUL0&YE=&-O;2YC;VT`4TU44 !M
M9F,M;$!N971C;VTN8V]M```>``(P`0````4```!33510`````!X``S !````
M$0```&UF8RUL0&YE=&-O;2YC;VT``````P`5# $````#`/X/!@```!X``3 !
M````$P```"=M9F,M;$!N971C;VTN8V]M)P```@$+, $````6````4TU44#I-
M1D,M3$!.151#3TTN0T]-`````P``.0`````+`$ Z`0````(!]@\!````! ``
M``````,-`````P``, 0````+``\.`0````(!_P\!````0P````````"!*Q^D
MOJ,0&9UN`-T!#U0"```!`&=D=$!E;F``,P`0```!,`
M``!G9'1 96YG+F%I``$P`0``
M`!4````G9V1T0&5N9RYA:7-I;F,N8V]M)P`````"`0LP`0```!@```!33510
M.D=$5$!%3D`' ``0```!8```!213H@4V-R;VQL:6YG($1I86QO9W,`
M```"`7$``0```!8````!NVK\.BD<."S/UK(1SY(H1$535 `````>`!X,`0``
M``4```!33510`````!X`'PP!````%0```&1K:7)B>4!A8V-E``@0`0```&4```!!0T9/4DU624570T].
M5$%)3E-!1$E!3$]'04Y$2$%34T-23TQ,24Y'0T%004))3$E4245325133U5.
M1%-,24M%64]55T%.5%1(15-!345+24Y$3T9"14A!5DE/4D-&3U)-5DE%````
M``(!"1 !````_@,``/H#```4!P``3%I&==)X,F?_``H!#P(5`J0#Y 7K`H,`
M4!,#5 (`8V@*P'-E=.XR!@`&PP*#,@/&!Q,"@T8S`\4"`'!R<1(B?,C4U`H '"H$-L0M@;F0&-A"K!B"0,0:70(D',N($D]!4!S"& >< 0@'S!K960@>0A@('<`< 5 
M=))H(3!S80> (&L+@,$>@&]F(&)E$< <\#<%L"! '*-6'0($@6EV=P>1`U(<
MD%,>\R/B($ @_EDA81^ `Z 5,0= (=,%H 4-L" +@"!62457`%-#4DPN0U!0
M-R2@!;$>YRX*A0J%+2V.9 !P"HL?,#$X, +1X&DM,30T#? ,T"O3N0M9,38*
MH -@%4!C!4"_*A M]@J'+*L,,"UV1@-ASCHN_BUV#((@1Q>@'D %!V!G(?!;
M4TU44. Z9V1T0 GP*1 +<)$`D&YC+@6@;5TNGU\OK09@`C PWS'K5PF ;@,'
MD"HP>2P@2G5L#'D@&M YD#$Y.3;).C Z,!(@4$TT[R^M+%1O-R\QZVT1H"UL
M>D Y,'0TH322.P\U_G5\8FHML3TO,>LE%!]"1,T>`W,I/"K6,S8L=Q7"!PP!
M+78%X%9#*RL@*#0N,3F05R*!;W>H1;O\M
MD"F6'N0^\#G@'?0I+5+PUTJQ.3!4H71:@'<%$!5 QUCB26 #H$]N5B44'I%_
M'G!/L 7 *%(AX%0Q'?0_[R7 (&%8%@G@;00@(>$7H/4>T&@(8&P>@"+P'<(-
MP/YA.< %0%R_(G9=<1]15R3_"H51\@9!'O-))%-A'K$?D/].,@3]%;3)R+3*X;@.@!Q &X%;Q34ERJO\SLC0X*3Q%WRQW&]4M=@J%!1;!`'XP
M```#`! 0``````,`$1 `````0 `',( 'ZL[[:KL!0 `(,( 'ZL[[:KL!'@`]
;``$````%````4D4Z( `````#``TT_3<``->D
`
end





| Вернуться в корень Архива |