由Create一个Child窗口,导出的z序问题
来源:互联网 发布:centos kali双系统 编辑:程序博客网 时间:2024/06/05 00:42
首先遇到的情况,直接看图
看到这现象有点怀疑人生,Windows默认Create顺序是按照Z序依次递增的,然而为何会出现如此现象?
首先和窗口类型确实有关:用的是Child,如果使用popup/overlapped都正常,我们通常非模态对话框用overlapped最多,这次要做子窗口管理,才发现有如此问题。考虑在窗口类型上选择:层叠/弹出/子窗口。选择Child类型是必须的(根据需求)。于是想办法改变窗口Z序,windowsZ序说明并不多,看来也是不复杂的原因,搜索相关函数
Identifies the CWnd object that will precede (be higher than) this CWnd object in the Z-order. This parameter can be a pointer to a CWnd or a Pointer to one of the following values:
wndBottom Places the window at the bottom of the Z-order. If this CWnd is a topmost window, the window loses its topmost status; the system places the window at the bottom of all other windows.
wndTop Places the window at the top of the Z-order.
wndTopMost Places the window above all non-topmost windows. *重点The window maintains its topmost position even when it is deactivated*.
wndNoTopMost Repositions the window to the top of all non-topmost windows (that is, behind all topmost windows). *重点This flag has no effect if the window is already a non-topmost window*.
换句话说,就此4中Z序:底部/顶部/最顶/非最顶,这都是相对你要插入的窗口指针的
看微软注释:
static AFX_DATA const CWnd wndTop; // SetWindowPos's pWndInsertAfter
static AFX_DATA const CWnd wndBottom; // SetWindowPos's pWndInsertAfter
static AFX_DATA const CWnd wndTopMost; // SetWindowPos pWndInsertAfter
static AFX_DATA const CWnd wndNoTopMost; // SetWindowPos pWndInsertAfter
- 由Create一个Child窗口,导出的z序问题
- MFC窗口显示的Z序问题
- MDI中,have/no splitter(拆分窗口)的ChildFrame Create区别 / Child Frame与MainFrame:public CMDIFrameWnd Create区别
- 由Ctrl+Z引发的系统卡死重启问题分析
- 窗口的Z-Order
- ExpandableListView点击最后一个child item不回调onChildClick()的问题
- 关于new、Create、对象以及窗口的一点问题
- JAVA中 就字母由 A=>Z 递增 和 Z=>A 递减的输出问题
- 由一个问题引发的思考
- 一个由模板函数引起的问题
- 一个由__GNUC__引起的编译问题
- 一个由sizeof引发的问题
- mfc 中child属性的两个窗口重叠 解决重叠部分不停闪烁问题
- 由UpdateData(FALSE)想到的窗口刷新问题
- 由UpdateData(FALSE)想到的窗口刷新问题
- 由UpdateData(FALSE)想到的窗口刷新问题
- 窗口的Z次序,类型
- 由test -n/-z 引发的关于shell变量问题的探讨
- Spring Boot 系列(五)web开发-Thymeleaf、FreeMarker模板引擎
- Android音频系统之音频基础
- 解决WIFI驱动RTL8188无法在rk3168平板Android4.2启动wifi的问题
- frm-40654 记录已经被另一个用户更新,重新查询以查看修改
- Postman使用小技巧
- 由Create一个Child窗口,导出的z序问题
- JMeter-介绍及安装(小白)
- Linux学习之chkconfig命令详解
- listview中item的button设置两次点击事件
- ServiceLoader的实用
- HTML-列表
- SVD奇异值分解(Singular Value Decomposition)
- 【剑指offer】二叉树的下一个结点
- TextView的折叠展开(动画效果)