去掉最大化按鈕
1.
BOOL MyDlg::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style &= ~WS_MAXIMIZEBOX;
return CDialog::PreCreateWindow(cs);
}
2.ModifyStyle(WS_MAXIMIZEBOX,0);
BOOL MyDlg::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style &= ~WS_MAXIMIZEBOX;
return CDialog::PreCreateWindow(cs);
}
2.ModifyStyle(WS_MAXIMIZEBOX,0);
posted on 2009-06-07 19:21 wrh 閱讀(759) 評(píng)論(0) 編輯 收藏 引用

