文件名称:Win32APIandPB
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.49kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 如何使PB窗口总在最上层
通过SetWindowPos函数吧窗口的显示层次修改为HWND_TOPMOST,就可以使指定窗
口永远不会被其他窗口覆盖,该函数声明为:
Function Long SetWindowPos(Long hwnd, Long ord, Long x, Long y, Long
dx, Long dy, Long uflag) Library “user32.dll”
参数1为要顶层显示的窗口句柄,参数2指定显示的层次,参数7为附加选项,其余
参数指定窗口位置和大小,均可忽略。在窗口的Open或Activate事件中加入如下
函数调用:
SetWindowPos(Handle(This),-1,0,0,0,0,3)
参数2取-1表示在最顶层显示窗口,取1表示在最底层显示;最后一个参数若取1,
表示窗口大小保持不变,取2表示保持位置不变,因此,取3(=1+2)表示大小和
位置均保持不变,取0表示将窗口的大小和位置改变为指定值。-1. How to make the window always on top of PB
SetWindowPos function bar by the window display level was revised to HWND_TOPMOST, you can make the specified window
I will never be covered by other windows, this function is declared as follows:
Function Long SetWindowPos (Long hwnd, Long ord, Long x, Long y, Long
dx, Long dy, Long uflag) Library "user32.dll"
Parameters of an order to show top-level window handle, the parameter 2 shows the level of the specified parameter 7 as an additional option, the rest of
Parameter specifies the window position and size, can be ignored. Open the window or the Activate event by adding the following
Function call:
SetWindowPos (Handle (This),-1,0,0,0,0,3)
-1 Means that two parameters take the most top-level display window, check that at the bottom of a display the last argument, if taken one,
Indicated that the window size remains unchanged, taking two positions that remain unchanged, therefore, take 3 (= 1+2) that the size and
Position r
通过SetWindowPos函数吧窗口的显示层次修改为HWND_TOPMOST,就可以使指定窗
口永远不会被其他窗口覆盖,该函数声明为:
Function Long SetWindowPos(Long hwnd, Long ord, Long x, Long y, Long
dx, Long dy, Long uflag) Library “user32.dll”
参数1为要顶层显示的窗口句柄,参数2指定显示的层次,参数7为附加选项,其余
参数指定窗口位置和大小,均可忽略。在窗口的Open或Activate事件中加入如下
函数调用:
SetWindowPos(Handle(This),-1,0,0,0,0,3)
参数2取-1表示在最顶层显示窗口,取1表示在最底层显示;最后一个参数若取1,
表示窗口大小保持不变,取2表示保持位置不变,因此,取3(=1+2)表示大小和
位置均保持不变,取0表示将窗口的大小和位置改变为指定值。-1. How to make the window always on top of PB
SetWindowPos function bar by the window display level was revised to HWND_TOPMOST, you can make the specified window
I will never be covered by other windows, this function is declared as follows:
Function Long SetWindowPos (Long hwnd, Long ord, Long x, Long y, Long
dx, Long dy, Long uflag) Library "user32.dll"
Parameters of an order to show top-level window handle, the parameter 2 shows the level of the specified parameter 7 as an additional option, the rest of
Parameter specifies the window position and size, can be ignored. Open the window or the Activate event by adding the following
Function call:
SetWindowPos (Handle (This),-1,0,0,0,0,3)
-1 Means that two parameters take the most top-level display window, check that at the bottom of a display the last argument, if taken one,
Indicated that the window size remains unchanged, taking two positions that remain unchanged, therefore, take 3 (= 1+2) that the size and
Position r
相关搜索: SetWindowPos
pb setwindowpo
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Win32APIandPB.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.