楼上的大哥,怎么指定啊? void CStuEdit::OnButton1() { // TODO: Add your control notification handler code here PostMessage(WM_SYSCOMMAND,SC_CLOSE,0); }这样根本不行啊.
void CStuEdit::OnButton1() { // TODO: Add your control notification handler code here GetParent()->PostMessage(WM_SYSCOMMAND,SC_CLOSE,0); }如果还不行,可以: GetParent()->GetParent()->PostMessage(WM_SYSCOMMAND,SC_CLOSE,0);
void CStuEdit::OnButton1()
{
// TODO: Add your control notification handler code here
PostMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}这样根本不行啊.
{
// TODO: Add your control notification handler code here
GetParent()->PostMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}如果还不行,可以:
GetParent()->GetParent()->PostMessage(WM_SYSCOMMAND,SC_CLOSE,0);