谁给个API调用的例子(VB)

来源:百度知道 编辑:UC知道 时间:2024/06/24 15:26:32
用CreateWindowEx弄出一个控件就行了!!
急求!

Option Explicit
Private Declare Function InitCommonControlsEx Lib "comctl32" (lpInitCtrls As TInitCommonControlsEx) As Boolean
Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Declare Function DestroyWindow Lib "user32" (ByVal hWnd As Long) As Long

Private Const PROGRESS_CLASS =