MFC 对话框工程

来源:百度知道 编辑:UC知道 时间:2024/05/14 15:08:21
请问怎么把窗口设置成顶层窗口,请给出代码,谢谢各位了

示例工程:http://sites.google.com/site/qiujiejia1/Home/Wnd_TopMost.zip

BOOL CDemoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE); // Set big icon
::SetWindowPos(m_hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);

return TRUE;
}

www.csdn.net

this->SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);

百度啊!!!网上多的是啊.还在这里等答案~~