15,979
社区成员
发帖
与我相关
我的任务
分享
void CXXXDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
if (!IsIconic())
{
GetParent()->EnableWindow(FALSE);
}
// Do not call CDialog::OnPaint() for painting messages
}
void B::OnButton() // 点击B上的按钮最小化B和A窗口
{
ShowWindow(SW_MINIMIZE);
GetParent()->ShowWindow(SW_MINIMIZE);
GetParent()->EnableWindow(TRUE);
}
void CXXXDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
if (!IsIconic())
{
GetParent()->EnableWindow(FALSE);
}
// Do not call CDialog::OnPaint() for painting messages
}
void A::OnButton() // 点击A上的按钮弹出B对话框
{
B dlg(this);
dlg.DoModal();
}
void B::OnButton() // 点击B上的按钮最小化B和A窗口
{
ShowWindow(SW_MINIMIZE);
GetParent()->ShowWindow(SW_MINIMIZE);
}