1 / 6

多表單專案 MDI 多重文件介面

多表單專案 MDI 多重文件介面. 多表單專案. 多表單專案. 起始表單設定 Project  Options  Form 顯示表單  表單名稱 ->Show(); 隱藏表單  表單名稱 ->Hide(); 切換表單:需將欲連結的表單包含於標頭檔內 #include “ 表單 cpp 檔名稱 .h” 變數共用於表單間  使用 extern 保留字. Ex7-1a, p.7-4. MDI. 設定 FormStyle 顯示子表單 frminput->WindowState=wsNormal; 所有表單

ownah
Download Presentation

多表單專案 MDI 多重文件介面

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 多表單專案 MDI多重文件介面

  2. 多表單專案

  3. 多表單專案 • 起始表單設定 Project  Options  Form • 顯示表單  表單名稱->Show(); • 隱藏表單  表單名稱->Hide(); • 切換表單:需將欲連結的表單包含於標頭檔內 #include “表單cpp檔名稱.h” • 變數共用於表單間  使用extern保留字 Ex7-1a, p.7-4

  4. MDI • 設定FormStyle • 顯示子表單 frminput->WindowState=wsNormal; • 所有表單 for(int i=MDIChildCount-1;i>=0;i--) MDIChildren[i]->Close(); • 排列表單 frmmain->Cascade(); frmmain->Tile(); frmmain->ArrangeIcons(); 使用精靈建立MDI表單

  5. 精靈建立MDI • NEW  Projects MDI Applications

  6. 工具列 • Win32  ImageList 先設定圖片 • Win32 ToolBar 設定連結ImageList 設定新增按鈕

More Related