📄 wpw_mfc_splitter_95.html
字号:
<HTML>
</PRE>
<HR><A NAME=MFC_CSplitterWnd_CSplitterWnd>
Return to <a href="wpw_mfc_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: CSplitterWnd in CSplitterWnd</H4><PRE>
redgt@io.org (Joe Janakovic) writes:
>I know this is easily doable if both are static splitter windows, but I
>need to be able to generate a static splitter within a dynamic splitter.
>IE. I have two view classes separated by a static splitter (each view
>class is different). The user should be able to pick up the dynamic
>splitter thumb at the top of the vertical scroll bar and split off a
>second "copy" of those two views (one above the other).
>Has anyone gotten this to work? CSplitterWnd insists that the "view"
>classes it generates be derived from CView. What I really want is for it
>to generate a child CSplitterWnd when the user splits if off.
>Any ideas?
How about deriving your own CMySplitterWnd and override
virtual BOOL SplitRow(int cyBefore);
(documented in tech note 29) to always create TWO new views.
>--
>Joe Janakovic Internet: joej@golddisk.com
>Software Developer redgt@io.org
>Gold Disk, Inc.
>Toronto, Ont., Canada "ASCII stupid question, get a stupid ANSI!"
--
Niels Ull Jacobsen, Dep. of CS, U of Copenhagen (null@diku.dk)
Roenne Alle 3 st.th, 2860 Soeborg, Denmark, tel. +45 39 66 39 86
</PRE>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -