怎么在任务栏不显示窗口呢?
3m2u 2006-11-22 11:55:14 就一个对话框程序
这样写居然不行,看好像就是用这种方法啊。难道用法有问题?
BOOL CDlgtestDlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
long oldExStyle = GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE);
oldExStyle |=WS_EX_TOOLWINDOW;
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,oldExStyle);
return CDialog::Create(IDD, pParentWnd);
}