📄 show_hide_static_panes.shtml
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Zafir Anjum">
<TITLE>Splitter Window - Show/Hide static panes</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>
<CENTER>
<H3>
<FONT COLOR="#AOAO99">Show/Hide static panes</FONT></H3></CENTER>
<CENTER>
<H3><HR></H3></CENTER>
This article was contributed by <A HREF="mailto:oleg@ist.ru">Oleg Galkin</A>.
<P>MFC static splitter windows have a significant limitation. Their panes can't
be hidden or shown dynamically. To solve the problem I overrode the
CSplitterWnd. The new class can hide a splitter window column.
<P>Sure, it's only one approach to the problem, but it's a good example
anyway.
<PRE><TT><FONT COLOR="#990000">
////////////////////////////////////////////////////////////////////////////
/
// splitex.h
// (c) 1997, Oleg G. Galkin
class CSplitterWndEx : public CSplitterWnd
{
protected:
牋牋 int m_nHidedCol;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -