MFC 关闭窗口用哪个函数?

2025-03-24 07:38:50
推荐回答(1个)
回答1:

退出程序用 AfxGetMainWnd()->SendMessage(WM_CLOSE);

关闭当前窗口 用 DestroyWindow( );

关闭模式对话框用 EndDialog(0);