vb问题?请各位高手进!
请各位看这段代码如下:PrivateDeclareFunctionSetWindowPosLib"user32"()PrivateSubCommand1_Click()i...
请各位看这段代码如下:
Private Declare Function SetWindowPos Lib "user32" ()
Private Sub Command1_Click()
i = SetWindowPos(Form1.hWnd, -1, 234, 0, 56767, 234)
Print "窗体总在最前面"
End Sub
当我运行时提示出错:Dll调用约定出错,这是什么意思呀?如何解决这个问题呢? 展开
Private Declare Function SetWindowPos Lib "user32" ()
Private Sub Command1_Click()
i = SetWindowPos(Form1.hWnd, -1, 234, 0, 56767, 234)
Print "窗体总在最前面"
End Sub
当我运行时提示出错:Dll调用约定出错,这是什么意思呀?如何解决这个问题呢? 展开
2个回答
展开全部
你的api声明不完整
private Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (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 Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询