API函数中的SetWindowPos函数的问题 5
看了好多API函数的使用方法,可以有好多的地方不明白,请高手出来指点一下,谢谢!我的目的是利用API函数,使应用程序窗口永远在前,我的程序代码如下:PrivateDecl...
看了好多API函数的使用方法,可以有好多的地方不明白,请高手出来指点一下,谢谢!
我的目的是利用API函数,使应用程序窗口永远在前,我的程序代码如下:
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const SWP_NOSIZE& = &H1 ****
Private Const SWP_NOMOVE& = &H2 ****
Private Const HWND_TOPMOST& = -1 ****
Private Sub Form_Load()
SetWindowPos Form1.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE
End Sub
上面这3句:
Private Const SWP_NOSIZE& = &H1 ****
Private Const SWP_NOMOVE& = &H2 ****
Private Const HWND_TOPMOST& = -1 ****
到底是什么意思,请指点一下,谢谢! 展开
我的目的是利用API函数,使应用程序窗口永远在前,我的程序代码如下:
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const SWP_NOSIZE& = &H1 ****
Private Const SWP_NOMOVE& = &H2 ****
Private Const HWND_TOPMOST& = -1 ****
Private Sub Form_Load()
SetWindowPos Form1.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE
End Sub
上面这3句:
Private Const SWP_NOSIZE& = &H1 ****
Private Const SWP_NOMOVE& = &H2 ****
Private Const HWND_TOPMOST& = -1 ****
到底是什么意思,请指点一下,谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询