//
// 下面是CSplitterWnd类的成员,它包括
// int m_nRows, m_nCols;
// BOOL m_bHasHScroll, m_bHasVScroll;
// CRowColInfo* m_pColInfo;
// CRowColInfo* m_pRowInfo;
// 这些成员,我想要实现你所说的比较困难。
// 也许换一个思路会容易的多。比如通过两个VIEW,分别实现横向、纵向的拆分。
//class CSplitterWnd
{
...........
...........
protected:
// customizable implementation attributes (set by constructor or Create)
CRuntimeClass* m_pDynamicViewClass;
int m_nMaxRows, m_nMaxCols; // implementation attributes which control layout of the splitter
int m_cxSplitter, m_cySplitter; // size of splitter bar
int m_cxBorderShare, m_cyBorderShare; // space on either side of splitter
int m_cxSplitterGap, m_cySplitterGap; // amount of space between panes
int m_cxBorder, m_cyBorder; // borders in client area // current state information
int m_nRows, m_nCols;
BOOL m_bHasHScroll, m_bHasVScroll;
CRowColInfo* m_pColInfo;
CRowColInfo* m_pRowInfo; // Tracking info - only valid when 'm_bTracking' is set
BOOL m_bTracking, m_bTracking2;
CPoint m_ptTrackOffset;
CRect m_rectLimit;
CRect m_rectTracker, m_rectTracker2;
int m_htTrack;
..........
..........
};
// 下面是CSplitterWnd类的成员,它包括
// int m_nRows, m_nCols;
// BOOL m_bHasHScroll, m_bHasVScroll;
// CRowColInfo* m_pColInfo;
// CRowColInfo* m_pRowInfo;
// 这些成员,我想要实现你所说的比较困难。
// 也许换一个思路会容易的多。比如通过两个VIEW,分别实现横向、纵向的拆分。
//class CSplitterWnd
{
...........
...........
protected:
// customizable implementation attributes (set by constructor or Create)
CRuntimeClass* m_pDynamicViewClass;
int m_nMaxRows, m_nMaxCols; // implementation attributes which control layout of the splitter
int m_cxSplitter, m_cySplitter; // size of splitter bar
int m_cxBorderShare, m_cyBorderShare; // space on either side of splitter
int m_cxSplitterGap, m_cySplitterGap; // amount of space between panes
int m_cxBorder, m_cyBorder; // borders in client area // current state information
int m_nRows, m_nCols;
BOOL m_bHasHScroll, m_bHasVScroll;
CRowColInfo* m_pColInfo;
CRowColInfo* m_pRowInfo; // Tracking info - only valid when 'm_bTracking' is set
BOOL m_bTracking, m_bTracking2;
CPoint m_ptTrackOffset;
CRect m_rectLimit;
CRect m_rectTracker, m_rectTracker2;
int m_htTrack;
..........
..........
};
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货