基于SDI:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
//程序开始运行后不会看到窗口
cs.style = WS_POPUP;
cs.dwExStyle |= WS_EX_TOOLWINDOW;
return TRUE;
}
基于对话框:
void CExcDlg::OnNcPaint()
{
// TODO: Add your message handler code here
/*static int i = 2;
if(i > 0)
{
i --;
ShowWindow(SW_HIDE);
}
else*/
CDialog::OnNcPaint();
// Do not call CDialog::OnNcPaint() for painting messages
}
说说你的办法... |