码迷,mamicode.com
首页 >  
搜索关键字:setwindowpos    ( 42个结果
VB 窗体始终在前
Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, _ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _ByVal cx A ...
分类:Windows程序   时间:2017-07-14 21:19:50    阅读次数:183
windows界面程序设计,设置一个窗口始终在屏幕最前,SetWindowPos函数
有时这种需求还是很必须的,比如现在做的一个登录验证系统,如果在windows登录界面点击到窗口外面,那窗口就会永远隐藏掉没法再启用了。这种情况必须设置该窗口一直在最前。 使用函数SetWindowPos。 例如: SetWindowPos(hwnd,HWND_TOPMOST,0,0,0,0,SWP_ ...
分类:Windows程序   时间:2017-06-22 13:31:16    阅读次数:320
问题解决——限制窗体的最小尺寸
曾经都是用对话框做东西,这次用的SDI。 突然想限制窗体的最小尺寸,避免缩成一团,就非常任意的先百度了一下。 网上好多方法,有在OnSize里面SetWindowPos或者MoveWindow的,也有在OnSizing里面用这两个函数的。 显然这都不是好办法,会刷屏乱闪。 正确而又优雅的做法非常ea ...
分类:Windows程序   时间:2017-06-15 18:13:20    阅读次数:275
动态调整对话框属性(去掉标题栏,去掉边框,修改类似成Border:NONE样式)(调用ModifyStyle和ModifyStyleEx,然后调用SetWindowPos重新显示)
[cpp] view plain copy [cpp] view plain copy [cpp] view plain copy if(dlg.GetSafeHwnd()) { dlg.ModifyStyle(WS_CAPTION, 0); // 去掉标题栏 dlg.ModifyStyleEx(W ...
分类:Windows程序   时间:2016-10-27 01:29:24    阅读次数:469
2015.4.21 SetWindowPos函数用法
定义:[DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, int hWndlnsertAfter, int X, int Y, int cx, int cy, uint Flags); 调用:AP ...
分类:Windows程序   时间:2016-10-15 19:16:24    阅读次数:217
窗口置顶方法
CWindow::SetWindowPos BOOL SetWindowPos( HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags ); BOOL SetWindowPos( HWND hWndInsertAfter, L ...
分类:其他好文   时间:2016-10-13 11:37:52    阅读次数:99
修改窗口属性(全部都是SetWindowLong设置)
说明: 以下函数对于POPUP窗口有效,对于子窗口好像不行。 //最小化按钮有效 ::SetWindowLong(m_hWnd,GWL_STYLE,GetWindowLong(m_hWnd,GWL_STYLE) | WS_MINIMIZEBOX ); ::SetWindowPos(m_hWnd,NU ...
分类:Windows程序   时间:2016-09-14 07:14:02    阅读次数:2386
桌面上嵌入窗口(桌面日历)原理探索(将该窗口的Owner设置成桌面的Shell 窗口,可使用SetWindowLong更改窗口的GWL_HWNDPARENT,还要使用SetWindowPos设置Z-Order)
今天在QQ群里有人问怎样实现将自己的窗口嵌入桌面,让它和桌面融为一体,就像很多桌面日历软件那样。我当时想到的就是建立一个Child Window,将他的父窗口设置成桌面Shell窗口就可以了。但是后来想想觉得不对,因为很多桌面日历窗口都有半透明和阴影效果,明显是用Layered Window实现的, ...
分类:Windows程序   时间:2016-08-19 06:15:56    阅读次数:540
MoveWindow和SetWindowPos
1、MoveWindow()用来改变窗口位置或大小。void MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE);void MoveWindow(LPCRECT lpRect, BOOL bRepaint = ...
分类:Windows程序   时间:2016-06-29 18:55:10    阅读次数:308
delphi SetWindowPos改变窗体位置和状态
http://blog.163.com/yuanliaofan@126/blog/static/1730690722012534428814/ delphi SetWindowPos改变窗体位置和状态 2012-06-03 16:04:28| 分类: 电脑|举报|字号 订阅 下载LOFTER我的照片 ...
分类:Windows程序   时间:2016-04-14 20:43:49    阅读次数:269
42条   上一页 1 2 3 4 5 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!