我用VC建立了一个对话框的应用程序,怎样控制这个对话框程序一启动,窗体自动隐藏? 如题,急啊!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在initialDialog里ShowWindow(SW_HIDE); 添加 WM_SHOWWINDOW 的消息映射 void CTest6Dlg::OnShowWindow(BOOL bShow, UINT nStatus) { if ( GetStyle() & WS_VISIBLE ) { CDialog::OnShowWindow(bShow, nStatus); } else { long Style = ::GetWindowLong(*this, GWL_STYLE); ::SetWindowLong(*this, GWL_STYLE, Style | WS_VISIBLE); CDialog::OnShowWindow(SW_HIDE, nStatus); } } void CMFC_TEMPDlg::OnShowWindow(BOOL bShow, UINT nStatus) { if ( GetStyle() & WS_VISIBLE ) { CDialog::OnShowWindow(bShow, nStatus); } else { long Style = ::GetWindowLong(*this, GWL_STYLE); ::SetWindowLong(*this, GWL_EXSTYLE, WS_EX_TOOLWINDOW); //GWL_STYLE, Style | WS_VISIBLE); ::MoveWindow(*this,0,0,0,0,FALSE); } CDialog::OnShowWindow(bShow, nStatus); // TODO: Add your message handler code here } opengl cubemap实现天空盒倒影 急!!!如何修改和删除xm指定的节点 能否为一个对话框添加两个类? 哪位有XP启动的时候显示的那种等待进度条的代码? 在同步阻塞线程中可以使用定时器吗 吐血提问,怎么样将控件创建在其他应用程序上 请问学习COM要有哪些基础? 上课遇到的问题 能不能给一个用OLE DB访问Oracle的存储过程的例子。 我有问题请教 如何让对话框隐藏执行? 各位大虾,帮助呀!!!动态的加载菜单
ShowWindow(SW_HIDE);
{
if ( GetStyle() & WS_VISIBLE )
{
CDialog::OnShowWindow(bShow, nStatus);
}
else
{
long Style = ::GetWindowLong(*this, GWL_STYLE);
::SetWindowLong(*this, GWL_STYLE, Style | WS_VISIBLE);
CDialog::OnShowWindow(SW_HIDE, nStatus);
}
}
{
if ( GetStyle() & WS_VISIBLE )
{
CDialog::OnShowWindow(bShow, nStatus);
}
else
{
long Style = ::GetWindowLong(*this, GWL_STYLE);
::SetWindowLong(*this, GWL_EXSTYLE, WS_EX_TOOLWINDOW); //GWL_STYLE, Style | WS_VISIBLE);
::MoveWindow(*this,0,0,0,0,FALSE);
}
CDialog::OnShowWindow(bShow, nStatus);
// TODO: Add your message handler code here
}