基于对话框的程序中,主对话框如何能始终在所有窗口的最上面?

mensong 2002-02-20 03:18:09
我希望它不受任务栏的影响,始终使用户的操作在这个对话框范围内,怎么做?

用对话框设计模板中的属性里设,还是在程序中用成员函数做?
...全文
60 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
cnhua 2002-02-20
  • 打赏
  • 举报
回复
点你问题右侧的"管理"按钮,在回复人的输入框中输入密码,点"给分",
mensong 2002-02-20
  • 打赏
  • 举报
回复
??这里改版了怎么给分啊???
mensong 2002-02-20
  • 打赏
  • 举报
回复
只有30分,怎么为各位老大们送呢?
nana11 2002-02-20
  • 打赏
  • 举报
回复
api函数
SetWindowPos()
Mephisto_76 2002-02-20
  • 打赏
  • 举报
回复
Z order就是Z轴顺序,以我们来看,始终在所有窗口的上面的窗口排在最前面!
sunny_wz 2002-02-20
  • 打赏
  • 举报
回复
你建个模态对话框不就行了
Mephisto_76 2002-02-20
  • 打赏
  • 举报
回复
是SetWindowPos()函数,在MFC的CWnd类中有这个成员函数,可以看看。
mensong 2002-02-20
  • 打赏
  • 举报
回复
请问,这里的Z order是什么意思?
cnhua 2002-02-20
  • 打赏
  • 举报
回复
SetWindowPos(&wndTopMost,NULL,NULL,NULL,NULL,SWP_NOMOVE|SWP_NOSIZE);

SetWindowPoshwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
成功后请给分,我现在可是0分了
bluecrest 2002-02-20
  • 打赏
  • 举报
回复
SetWindowPos
The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order.

mensong 2002-02-20
  • 打赏
  • 举报
回复
没有啊,是不是setWindowState?

请问能不能从模板设计器中设置?
bluecrest 2002-02-20
  • 打赏
  • 举报
回复
好像有个函数是setwindowspos
自己查察

1,660

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧