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

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


How do I add page-up/down buttons below RHS scroll bar?

Roger Onslow -- Roger_Onslow@compsys.com.au
Wednesday, June 12, 1996

Environment: MFC4.1 Win32 SDI-app

I would like to add page up/down button below the RHS
scroll bar (just like Word does)

How do I do this?
Is there a call which can add them "automatically" like
the scroll bars themselves?

Roger Onslow





Frederic Steppe -- FredericS@msn.com
Thursday, June 13, 1996

>Environment: MFC4.1 Win32 SDI-app
>
>I would like to add page up/down button below the RHS
>scroll bar (just like Word does)
>
>How do I do this?
>Is there a call which can add them "automatically" like
>the scroll bars themselves?

Roger,

I worked on that (but on the left of the horz scroll bar), and the only way I 
found to do the job was to implement my own frame window, and handle the 
scroll bar controls myself.  If you do that, CScrollView wan't be able to 
update the scroll bars any more, except if you derive your frame from 
CSplitterWindow (see MFC source for details).  The only problem is that you 
have to override most of the CSplitterWnd methods.

I can go back to this project and send you more details if you want.

Good luck.

Frederic Steppe (frederics@msn.com)





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