首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 編程語言 >  >> C語言 >> 關於C語言

使用 VS2005 打造簡單分頁瀏覽器 (3) - 功能表列實作

     編輯:關於C語言

功能表列項目與對應方法

// 檔案
另存為 → getCurrentBrowser().ShowSaveAsDialog()
列印 → getCurrentBrowser().ShowPrintDialog()
列印預覽 → getCurrentBrowser().ShowPrintPreviewDialog()
頁面設定 → getCurrentBrowser().ShowPageSetupDialog()
屬性 → getCurrentBrowser().ShowPropertiesDialog()
結束 → Application.Exit()

// 說明
關於 → new AboutBox1().Show()
提示 → MessageBox.Show("雙擊分頁標題關閉分頁")

檔案選單功能多為 WebBrowser 內建對話框封裝,僅需取得當前瀏覽器實例呼叫。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved