簡體   English   中英

CDocument和CPropertySheet之間的關系

[英]Relationship between CDocument and CPropertySheet

我有一個CPropertySheet實例,該實例在MDI MFC應用程序的CDocument類的方法之一中使用DoModal()進行了初始化。

我的問題是我想在不結束DoModal()情況下刷新工作表中與文檔關聯的視圖。

我如何從CPropertySheet獲取到CDocument的句柄,以便可以輕松地操縱CView

我已經嘗試過與此MSDN文章進行不同的嘗試,但是我無法檢索我想要的內容http://msdn.microsoft.com/zh-cn/library/bs315d2c.aspx

非常感謝。

您可以使用SendMessage或PostMessage到目標窗口。 單擊“應用”按鈕時,請執行此操作。

請參閱: http : //cppandmfc.blogspot.com/2012/08/mfc-creating-and-using-property-page.html

您將從該文章中得到一個不錯的主意

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM