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

SDI中的窗口切分

系統 2509 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视频大全凹凸 | 久久久久视频精品网 | 免费精品99久久国产综合精品 | 亚洲区中文字幕 | 奇米影视999| 99久久免费国产特黄 | 婷婷综合五月中文字幕欧美 | 欧美大屁股精品毛片视频 | 国产精品久线观看视频 | 国产欧美视频一区二区三区 | 国产精品v免费视频 | 一区二区三区在线 | 青青青爽视频在线观看入口 | 中文字幕免费在线观看 | 精品综合久久久久久97超人 | 国产免费久久 | 欧美日韩永久久一区二区三区 | 四虎永久在线精品视频免费观看 | 日日操干 | 午夜国产精品久久久久 | 中文字幕欧美日韩高清 | 亚洲视频在线观看免费视频 | 91视频地址 | 97影院支持微信微博观看 | 免费看国产精品麻豆 | 99久久精品免费看国产免费 | 女人18女人毛片 | 欧美视频在线看 | 波多野结衣日韩 | 日本在线观看成人小视频 | 日本特级爽毛片叫声 | 国产一级在线视频 | 四虎影视永久地址 | 欧美真人毛片动作视频 | 日本护士一级毛片在线播放 | 亚洲欧美日韩高清 | 亚洲日本人成中文字幕 | 亚洲精品第一区二区在线 |