MFC中怎么能在子对话框中获取父对话框的指针?

2025-04-14 05:12:50
推荐回答(1个)
回答1:

GetParent得到的是CWnd*,是父窗口的指针;
GetParent()->GetSafeHWnd(),可以得到父窗口的句柄