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

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


Splitter window scrollbar

Edwin Dingjan -- dingjan@dds.nl
Wednesday, January 08, 1997

Environment: VC++ 4.2b, Win 95

My problem : A SDI application with splitter windows. The user can resize
the splitter windows. But I don't want to show any scrollbar's if the
window is to small. (But not for all windows.).

thanks in advance

Edwin Dingjan    sm:-)e
dingjan@dds.nl
http://huizen.dds.nl/~dingjan
the netherlands



Bing Hou -- hou@tfn.com
Thursday, January 09, 1997

[Mini-digest: 2 responses]

     Edwin,
     
     Not quitely sure about your question, assuming you wanted to 
     individually show/hide scrollbars(vertical and/or horizontal alike) 
     for each pane.
     
     The CSplitterWnd has a virtual function called 
     CreateScrollBarCtrl(DWORD dwStyle, UINT nID) that is charged to create 
     a scrollbar for a pane, the dwStyle param is either SBS_VERT or 
     SBS_HORZ, and the nID param is the row number if dwStyle is SBS_VERT 
     and column number if dwStyle is SBS_HORZ. This function does nothing 
     more than just calling ::CreateWindow(...). 
     
     You may provide a override for this function, in that you keep the 
     return value from each of the call to ::CreateWindow(...), a HWND 
     type. Instead of MFC's default behavior, which throws it away.
     
     Well, you'll know what to do once you have the handle.
     
     -Bing
     


______________________________ Reply Separator _________________________________
Subject: Splitter window scrollbar
Author:  "Edwin Dingjan"  at Internet
Date:    1/8/97 11:01 AM


Environment: VC++ 4.2b, Win 95
     
My problem : A SDI application with splitter windows. The user can resize 
the splitter windows. But I don't want to show any scrollbar's if the 
window is to small. (But not for all windows.).
     
thanks in advance
     
Edwin Dingjan    sm:-)e
dingjan@dds.nl
http://huizen.dds.nl/~dingjan
the netherlands
-----From: dima@ssm6000.samsung.ru (Dulepov Dmitry)

        [Mailer: "Groupware E-Mail". Version 1.02.051]


If you hide scroll bar you will need to do all scrolling yourself bacause Windows scrolls automatically only if you have scrollbars. Are you sure you want to do it?

If so, use SetScrollSizes(MM_TEXT, CSize(0, 0)) to set scroll range to zero for both scrollbars and go on.


Dmitry A. Dulepov
Samsung Electronics Co., Ltd.
Russian Research Center
Phone: +7 (095) 213-9207
Fax: +7 (095) 213-9196
E-mail: dima@src.samsung.ru
====================================
-----------------------------
>        [From: Edwin Dingjan
>        [Address: dingjan@dds.nl
>        [To: 
>        [Date: Fri Jan 10 10:23:01 1997
>Environment: VC++ 4.2b, Win 95
>
>My problem : A SDI application with splitter windows. The user can resize
>the splitter windows. But I don't want to show any scrollbar's if the
>window is to small. (But not for all windows.).
>
>thanks in advance
>
>Edwin Dingjan    sm:-)e
>dingjan@dds.nl
>http://huizen.dds.nl/~dingjan
>the netherlands




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