亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

SDI中的窗口切分

系統 2133 0
一、主要函數
(1)CSplitterWnd::CreateStatic

To create a static splitter window, call the CreateStatic member function.

            virtual BOOL CreateStatic(   CWnd* pParentWnd,   int nRows,   int nCols,   DWORD dwStyle = WS_CHILD | WS_VISIBLE,   UINT nID = AFX_IDW_PANE_FIRST );
          

Parameters

pParentWnd

The parent frame window of the splitter window.

nRows

The number of rows. This value must not exceed 16.

nCols

The number of columns. This value must not exceed 16.

dwStyle

Specifies the window style.

nID

The child window ID of the window. The ID can be AFX_IDW_PANE_FIRST unless the splitter window is nestedinside another splitter window.

(2)CSplitterWnd::CreateView

Creates the panes for a static splitter window.

                virtual BOOL CreateView(   int row,   int col,   CRuntimeClass* pViewClass,   SIZE sizeInit,   CCreateContext* pContext );
              

Parameters

row

Specifies the splitter window row in which to place the newview.

col

Specifies the splitter window column in which to place the newview.

pViewClass

Specifies the CRuntimeClass of the new view.

sizeInit

Specifies the initial size of the new view.

pContext

A pointer to a creation context used to create the view (usuallythe pContext passed into the parentframe's overridden CFrameWnd::OnCreateClient member function in which the splitter window is being created).

ReturnValue

Nonzero if successful; otherwise 0.

Remarks

All panes of a static splitter window must be created before theframework displays the splitter.

The framework also calls this member function to create newpanes when the user of a dynamic splitter window splits a pane,row, or column.

Example
                  
                    二、(1)OnCreateClient繪制與文檔對象和邊框窗口對象相聯系的視區。
                  
                    (2)在單個視類的切分窗口中,各個視區的內容是完全一致的,只要一個視類對象
                  
                    (3)切分窗口為多視類則,不同的切分窗口可以顯示不同的內容,因此要創建多個視類對象。
                  
                    三、代碼:
                  
                    (1)聲明切分窗口(可能要)
                  
                    CChildFrame類中加入 CSpliterWnd m_wndSplitter
                  
                    (2)在OnCreateClient加入代碼
                  
                    // this function creates the panes for a static splitter windowBOOL CChildFrame::OnCreateClient( LPCREATESTRUCT lpcs,    CCreateContext* pContext){   BOOL bCreateSpltr = m_wndSplitter.CreateStatic( this, 2, 1);   // COneView and CAnotherView are user-defined views derived from CMDIView   m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(COneView), CSize(0,0),       pContext);   m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CAnotherView), CSize(0,0),       pContext);   return (bCreateSpltr);}
                  

SDI中的窗口切分


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 最新中文字幕日本 | 免费黄色在线 | 久久国产免费观看精品 | 亚州毛片 | 在线日本妇人成熟免费观看 | 夜色亚洲| 国产伦码精品一区二区三区 | 四虎精品成人免费永久 | 国产美女a做受大片在线观看 | 波多野结衣乳巨码无在线观看 | 口国产成人高清在线播放 | 中国漂亮护士一级毛片 | 老年人一级特黄aa大片 | 狠狠操天天操夜夜操 | 99视频精品全国免费 | 国产亚洲欧美成人久久片 | 性xxxx奶大欧美高清 | 色婷婷精品综合久久狠狠 | 欧美性视频在线 | 99这里只有精品在线 | 亚洲欧美中文日韩二区一区 | 欧美午夜性刺激在线观看免费 | 国产精品美女久久久 | 天天操天天干天天干 | 爱性网| 久久激情免费视频 | 国产一区二区三区免费播放 | 天天拍夜夜添久久精品中文 | 免费人成激情视频在线看 | 热99精品在线 | 性欧美久久 | 一级毛片大全免费播放 | 久久精品视频网 | 四虎影视网站 | 亚洲最大成人综合网 | 国产精品456 | 国内精品视频 | 曰本女人一级毛片看一级毛 | 久久99热精品免费观看k影院 | 久草在线这里只有精品 | 亚洲va精品中文字幕动漫 |