|
大家一致都是高调的赞美。
我来挑几个刺,希望不要介意啊……
- Option Explicit '强制定义变量(如果有本句存于开始,则所有变量需定义)
- '
- Private Declare Function SetFocusAPI Lib "user32.dll" Alias "SetFocus" (ByVal hWnd As Long) As Long '私有的Declare函数SetFocusAPILib"user32.dll"Alias"SetFocus"(变量hWnd类型为长整型值)类型为长整型值
- Private Declare Function CreateWindowEx Lib "user32.dll" Alias "CreateWindowExW" (ByVal dwExStyle As Long, lpClassName As Any, lpWindowName As Any, 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, ByRef lpParam As Any) As Long
- Private Declare Function CreateFont Lib "gdi32.dll" Alias "CreateFontW" (ByVal H As Long, ByVal W As Long, ByVal E As Long, ByVal O As Long, ByVal W As Long, ByVal I As Long, ByVal u As Long, ByVal S As Long, ByVal C As Long, ByVal OP As Long, ByVal CP As Long, ByVal Q As Long, ByVal PAF As Long, F As Any) As Long
- Private Declare Function DestroyWindow Lib "user32.dll" (ByVal hWnd As Long) As Long '私有的Declare函数DestroyWindowLib"user32.dll"(变量hWnd类型为长整型值)类型为长整型值
- Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long '私有的Declare函数SendMessageLib"user32.dll"Alias"SendMessageW"(变量hWnd类型为长整型值,变量wMsg类型为长整型值,变量wParam类型为长整型值,ByReflParam类型为Any)类型为长整型值
- Private Declare Function ShowWindow Lib "user32.dll" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long '私有的Declare函数ShowWindowLib"user32.dll"(变量hWnd类型为长整型值,变量nCmdShow类型为长整型值)类型为长整型值
复制代码 上面的代码翻译后只有第一条是有意义的解释,其它的让人看了只能是一头雾水…… |
|