Double vert scroll bar in CSplitterWnd
FLF Soft -- flfsoft@execpc.com
Monday, July 08, 1996
Environment: VC 4.1 / NT 3.51
My application is based on a CRichEditView. I've tried to add a spliter
in the normal manner and I end up with a double vertical scroll bar.
The CSplitterWind is setup as follows:
In the CMDIChildWnd derived header
CSplitterWnd m_wndSplitter;
In the CMDIChildWnd derived code (OnCreateClient)
return m_wndSplitter.Create(this, 2,2, CSize(10, 10), pContext);
TIA,
Frank
--
FLFSoft, Inc. HTML Builder
ffeingol@flfsoft.com Web Publishing Made Easy
http://www.execpc.com/~flfsoft
Bill McGarry -- billm@mail.isc-br.com
Friday, July 12, 1996
At 09:40 PM 7/8/96 -0500, you wrote:
>
>My application is based on a CRichEditView. I've tried to add a spliter
>in the normal manner and I end up with a double vertical scroll bar.
>In the CMDIChildWnd derived code (OnCreateClient)
>
>return m_wndSplitter.Create(this, 2,2, CSize(10, 10), pContext);
>
Even though this will work for most views, it will not for CEditView or for
CRichEditView, since the default paramters for Create will add the second
set of scrollbars. Change this to:
return m_wndSplitter.Create(this, 2,2, CSize(10, 10), pContext,
WS_CHILD | WS_VISIBLE | SPLS_DYNAMIC_SPLIT);
which will give you just what you want.
Hope that this helps!
Bill McGarry
Olivetti North America
billm@mail.isc-br.com
| Вернуться в корень Архива
|