亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? modlogui.bas

?? 把VB 源碼轉(zhuǎn)化為VC源碼的程序
?? BAS
?? 第 1 頁 / 共 4 頁
字號:
Attribute VB_Name = "ModLoGUI"
' -------------------------------------
' VB2Cpp - Visual Basic to C++ translator.
' Copyright (C) 2002-2003 Franck Charlet.
'
' VB2Cpp is free software; you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation; either version 2, or (at your option)
' any later version.
'
' VB2Cpp is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with VB2Cpp; see the file Copying.txt.  If not, write to
' the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
' Boston, MA 02111-1307, USA.
' -------------------------------------
' Low level GUI functions
' -------------------------------------

Option Explicit

' --- Obtain access to common controls and init some required windows objects --- '
Public Sub InitGUIContext(ProcAddress As Long)
    Dim MyCommonStruct As STRUCTINITCOMMONCONTROLSEX
    MyCommonStruct.dwSize = Len(MyCommonStruct)
    MyCommonStruct.dwICC = ICC_WIN95_CLASSES Or ICC_COOL_CLASSES Or ICC_USEREX_CLASSES Or ICC_PAGESCROLLER_CLASS
    If InitCommonControlsEx(MyCommonStruct) = False Then InitCommonControls
    If SerifFont = 0 Then SerifFont = CreateFont(-8, 0, 0, 0, FW_NORMAL, 0, 0, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH Or FF_SWISS, "MS Sans Serif")
    If CourierFont = 0 Then CourierFont = CreateFont(-12, 0, 0, 0, FW_NORMAL, 0, 0, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH Or FF_SWISS, "Courier New")
    SetDialogClass App.hInstance, ProcAddress
    SetDumpBoxClass App.hInstance, AddressOf DumpBoxClassProc
    SetColorBoxClass App.hInstance, AddressOf ColorBoxClassProc
End Sub

' --- Reset all --- '
Public Sub ReleaseGUIContext()
    If CourierFont <> 0 Then DeleteObject CourierFont
    If SerifFont <> 0 Then DeleteObject SerifFont
    ' Unregister the classes
    UnregisterClass "VB2CppColorBoxClass", App.hInstance
    UnregisterClass "VB2CppDumpBoxClass", App.hInstance
    UnregisterClass "VB2CppDialogClass", App.hInstance
End Sub

' --- Create a dialog form --- '
Public Function CreateDialog(DLeft As Long, DTop As Long, DWidth As Long, DHeight As Long, hParent As Long, hMenu As Long, hIcon As Long, DTitle As String, WExStyle As Long, WStyle As Long, ShowType As Long) As Long
    Dim ReturnValue As Long
    If DLeft = -1 Then DLeft = (GetSystemMetrics(SM_CXSCREEN) - DWidth) / 2
    If DTop = -1 Then DTop = (GetSystemMetrics(SM_CYSCREEN) - DHeight) / 2
    ReturnValue = CreateWindowEx(WExStyle, "VB2CppDialogClass", DTitle, WS_CLIPSIBLINGS + WStyle, DLeft, DTop, DWidth, DHeight, hParent, hMenu, App.hInstance, ByVal 0)
    If ReturnValue = 0 Then Exit Function
    DialogSetIcon ReturnValue, hIcon
    ShowWindow ReturnValue, ShowType
    UpdateWindow ReturnValue
    CreateDialog = ReturnValue
End Function

' --- Register a standard window class --- '
Private Sub SetDialogClass(hInst As Long, ProcAddress As Long)
    ZeroMemory WinClass, Len(WinClass)
    WinClass.cbSize = Len(WinClass)
    WinClass.style = CS_BYTEALIGNWINDOW Or CS_HREDRAW Or CS_VREDRAW Or CS_BYTEALIGNCLIENT
    WinClass.lpfnwndproc = ProcAddress
    WinClass.cbClsextra = 0
    WinClass.cbWndExtra = 0
    WinClass.hInstance = hInst
    WinClass.hbrBackground = COLOR_BTNFACE + 1
    WinClass.lpszMenuName = ""
    WinClass.lpszClassName = "VB2CppDialogClass"
    WinClass.hIcon = 0
    WinClass.hCursor = LoadCursor(0, IDC_ARROW)
    WinClass.hIconSm = 0
    RegisterClassEx WinClass
End Sub

' --- Register a standard dumpbox class --- '
Private Function SetDumpBoxClass(ByVal hInst As Long, ByVal ProcAddress As Long) As Long
    ZeroMemory WinClass, Len(WinClass)
    WinClass.cbSize = Len(WinClass)
    WinClass.style = CS_BYTEALIGNWINDOW Or CS_HREDRAW Or CS_VREDRAW Or CS_BYTEALIGNCLIENT
    WinClass.lpfnwndproc = ProcAddress
    WinClass.cbClsextra = 0
    WinClass.cbWndExtra = 0
    WinClass.hInstance = hInst
    WinClass.hbrBackground = 0
    WinClass.lpszMenuName = ""
    WinClass.lpszClassName = "VB2CppDumpBoxClass"
    WinClass.hIcon = 0
    WinClass.hCursor = LoadCursor(0, IDC_ARROW)
    WinClass.hIconSm = 0
    SetDumpBoxClass = RegisterClassEx(WinClass)
End Function

' --- Register a standard colorbox class --- '
Private Function SetColorBoxClass(ByVal hInst As Long, ByVal ProcAddress As Long) As Long
    ZeroMemory WinClass, Len(WinClass)
    WinClass.cbSize = Len(WinClass)
    WinClass.style = CS_BYTEALIGNWINDOW Or CS_HREDRAW Or CS_VREDRAW Or CS_BYTEALIGNCLIENT
    WinClass.lpfnwndproc = ProcAddress
    WinClass.cbClsextra = 0
    WinClass.cbWndExtra = 0
    WinClass.hInstance = hInst
    WinClass.hbrBackground = 0
    WinClass.lpszMenuName = ""
    WinClass.lpszClassName = "VB2CppColorBoxClass"
    WinClass.hIcon = 0
    WinClass.hCursor = LoadCursor(0, IDC_HAND)
    WinClass.hIconSm = 0
    SetColorBoxClass = RegisterClassEx(WinClass)
End Function

' --- Set a dialog icon --- '
Public Sub DialogSetIcon(ByVal hwnd As Long, hIcon As Long)
    SendMessage hwnd, WM_SETICON, ICON_SMALL, ByVal hIcon
End Sub

' --- Wait for windows events --- '
Public Function WaitEvents(hAccelerator As Long, hWndAccelerators As Long) As Long
    Do While GetMessage(WinMsg, 0, 0, 0) <> 0
        If TranslateAccelerator(hWndAccelerators, hAccelerator, WinMsg) = 0 Then
            TranslateMessage WinMsg
            DispatchMessage WinMsg
        End If
    Loop
    WaitEvents = WinMsg.wParam
End Function

' --- Create a textbox control --- '
Public Function CreateTextBox(EDLeft As Long, EDTop As Long, EDWidth As Long, EDHeight As Long, hParent As Long, EDText As String, CtrlID As Long, ExtraStyle As Long, ExtraFont As Long, WndProc As Long) As Long
    Dim ExStyle As Long
    Dim ReturnValue As Long
    ControlBound hParent, EDLeft, EDTop, EDWidth, EDHeight
    ExStyle = WS_EX_STATICEDGE
    ReturnValue = CreateWindowEx(ExStyle, "EDIT", EDText, WS_VISIBLE Or WS_CHILD Or ES_LEFT Or ExtraStyle, EDLeft, EDTop, EDWidth, EDHeight, hParent, CtrlID, App.hInstance, ByVal 0)
    If ReturnValue = 0 Then Exit Function
    If ExtraFont <> 0 Then
        ControlSetFont ReturnValue, ExtraFont
    Else
        ControlSetFont ReturnValue, SerifFont
    End If
    If WndProc <> 0 Then SetWindowLong ReturnValue, GWL_USERDATA, SetWindowLong(ReturnValue, GWL_WNDPROC, WndProc)
    CreateTextBox = ReturnValue
End Function

' --- Bound the dimensions of a control --- '
Public Sub ControlBound(hParentControl As Long, ByRef CtlLeft As Long, ByRef CtlTop As Long, ByRef CtlWidth As Long, ByRef CtlHeight As Long)
    Dim WRect As RECT
    GetClientRect hParentControl, WRect
    If CtlTop = -1 Then CtlTop = WRect.top
    If CtlLeft = -1 Then CtlLeft = WRect.left
    If CtlWidth = -1 Then CtlWidth = WRect.Right - CtlLeft
    If CtlHeight = -1 Then CtlHeight = WRect.bottom - CtlTop
End Sub

' --- Display a standard messagebox --- '
Public Function VBMsgBox(hParent As Long, MBText As String, MBType As Long, MBTitle As String) As Long
    If hParent = 0 Then hParent = GetActiveWindow()
    VBMsgBox = MessageBox(hParent, MBText, MBTitle, MBType)
End Function

' --- Set the text of a control --- '
Public Sub ControlSetText(ByVal hwnd As Long, TextToSet As String)
    SendMessage hwnd, WM_SETTEXT, 0, ByVal TextToSet
End Sub

' --- Retrieve a text from a control --- '
Public Function TextBoxGetText(ByVal hwnd As Long) As String
    Dim ReturnValue As String
    Dim TxtSize As Long
    TxtSize = SendMessage(hwnd, WM_GETTEXTLENGTH, 0, ByVal 0)
    If TxtSize > 0 Then
        ReturnValue = String(TxtSize, " ")
        SendMessage hwnd, WM_GETTEXT, TxtSize + 1, ByVal ReturnValue
    End If
    TextBoxGetText = ReturnValue
End Function

' --- Create a statusbar control --- '
Public Function CreateStatusBar(hParent As Long, CtrlID As Long) As Long
    Dim ReturnValue As Long
    ReturnValue = CreateStatusWindow(WS_CHILD Or WS_VISIBLE, "", hParent, CtrlID)
    If ReturnValue = 0 Then Exit Function
    ControlSetFont ReturnValue, SerifFont
    StatusBarSetText ReturnValue, ""
    CreateStatusBar = ReturnValue
End Function

' --- Set control font to standard --- '
Public Sub ControlSetFont(hControl As Long, hFont As Long)
    SendMessage hControl, WM_SETFONT, hFont, ByVal 0
End Sub

' --- Set the text of a part in a statusbar --- '
Public Sub StatusBarSetText(hStatusBar As Long, SBText As String)
    SendMessage hStatusBar, SB_SETTEXT, SBT_NOBORDERS, ByVal SBText
End Sub

' --- Get control height --- '
Public Function GetControlHeight(ByVal hwnd As Long) As Long
    Dim ReturnValue As Long
    Dim CRct As RECT
    GetWindowRect hwnd, CRct
    If IsWindowVisible(hwnd) = 0 Then
        ReturnValue = 0
    Else
        ReturnValue = CRct.bottom - CRct.top
    End If
    GetControlHeight = ReturnValue
End Function

' --- Create a modal dialog form --- '
Public Function CreateModalDialog(DWidth As Long, DHeight As Long, hParent As Long, WinProc As Long, ExtraStyle As Long) As Long
    Dim BaseDialogX As Long
    Dim BaseDialogY As Long
    BaseDialogX = GetDialogBaseUnits And &HFFFF&
    BaseDialogY = (GetDialogBaseUnits And &HFFFF0000) \ &H10000
    DialogTemplate.dwExtendedStyle = 0
    DialogTemplate.X = 0
    DialogTemplate.Y = 0
    DialogTemplate.cx = (DWidth * 4) \ BaseDialogX
    DialogTemplate.cy = (DHeight * 8) \ BaseDialogY
    DialogTemplate.style = 4 Or WS_VISIBLE Or DS_3DLOOK Or DS_NOIDLEMSG Or DS_SETFOREGROUND Or DS_MODALFRAME Or ExtraStyle Or DS_CENTER
    DialogTemplate.cdit = 0
    CreateModalDialog = DialogBoxIndirectParam(App.hInstance, DialogTemplate, hParent, WinProc, 0)
End Function

' --- Create a checkbox control --- '
Public Function CreateCheckBox(BLeft As Long, BTop As Long, BWidth As Long, BHeight As Long, hParent As Long, BText As String, CtrlID As Long, ExtraStyle As Long) As Long
    Dim ReturnValue As Long
    ControlBound hParent, BLeft, BTop, BWidth, BHeight
    ReturnValue = CreateWindowEx(0, "BUTTON", BText, WS_TABSTOP Or WS_VISIBLE Or WS_CHILD Or BS_LEFT Or BS_VCENTER Or BS_AUTOCHECKBOX Or BS_MULTILINE Or ExtraStyle, BLeft, BTop, BWidth, BHeight, hParent, CtrlID, App.hInstance, ByVal 0)
    If ReturnValue = 0 Then Exit Function
    ControlSetFont ReturnValue, SerifFont
    CreateCheckBox = ReturnValue
End Function

' --- Create a label control --- '
Public Function CreateLabel(LLeft As Long, LTop As Long, LWidth As Long, LHeight As Long, hParent As Long, LText As String, CtrlID As Long, ExtraStyle As Long) As Long
    Dim ReturnValue As Long
    ControlBound hParent, LLeft, LTop, LWidth, LHeight
    ReturnValue = CreateWindowEx(0, "STATIC", LText, WS_VISIBLE Or WS_CHILD Or SS_LEFT + ExtraStyle, LLeft, LTop, LWidth, LHeight, hParent, CtrlID, App.hInstance, ByVal 0)
    If ReturnValue = 0 Then Exit Function
    ControlSetFont ReturnValue, SerifFont
    CreateLabel = ReturnValue
End Function

' --- Choose a file to open --- '
Public Function ChooseOpenFile(hwnd As Long, OFilters As String, InitDir As String, MultiSelect As Boolean) As String
    Dim TmpOp As String
    Dim i As Long
    Dim LocFilters As Long
    MyOpenFName.lStructSize = Len(MyOpenFName)
    MyOpenFName.hwndOwner = hwnd
    MyOpenFName.flags = OFN_EXPLORER + OFN_HIDEREADONLY + OFN_SHOWHELP + OFN_PATHMUSTEXIST + OFN_FILEMUSTEXIST + OFN_LONGNAMES
    If MultiSelect = True Then MyOpenFName.flags = MyOpenFName.flags Or OFN_ALLOWMULTISELECT
    MyOpenFName.lpstrDefExt = ""
    MyOpenFName.lpstrInitialDir = InitDir
    ' Avoid using Chr(0) at all costs
    MyOpenFName.lpstrFile = String(256, " ")
    ZeroMemory ByVal MyOpenFName.lpstrFile, 1

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
337p日本欧洲亚洲大胆精品| 一区二区三区免费| 中文字幕在线一区| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产经典欧美精品| 欧美一卡二卡三卡四卡| 亚洲精品久久嫩草网站秘色| 国产乱码精品一区二区三| 欧美二区三区91| 樱花影视一区二区| 不卡视频在线看| 久久久精品国产免费观看同学| 日韩精品欧美精品| 欧美性受xxxx| 国产精品―色哟哟| 国产成人av资源| 欧美刺激脚交jootjob| 亚洲一区二区av电影| 99精品视频一区| 国产精品三级视频| 国产精品一区二区免费不卡 | 日本高清不卡在线观看| 久久久精品综合| 国内精品久久久久影院色| 日韩视频免费观看高清在线视频| 一区二区三区电影在线播| 91影视在线播放| 亚洲图片欧美激情| 一本色道a无线码一区v| 国产精品二区一区二区aⅴ污介绍| 国产在线精品一区在线观看麻豆| 日韩欧美一级片| 久久99国产精品免费网站| 日韩视频在线一区二区| 久久99精品久久久| 久久综合五月天婷婷伊人| 国产精品影视天天线| 国产亲近乱来精品视频| 不卡的av网站| 亚洲视频一区二区在线| 日本精品一区二区三区高清| 亚洲一区二区三区在线| 欧美日韩一区二区在线视频| 午夜欧美视频在线观看| 日韩一区二区免费电影| 国产一区在线观看麻豆| 国产视频一区不卡| 91免费版在线| 天天av天天翘天天综合网色鬼国产| 欧美精品亚洲二区| 久久精品国产第一区二区三区| 久久久国产精品不卡| 成人黄色软件下载| 亚洲一级不卡视频| 日韩精品一区二区三区蜜臀| 国产精品69毛片高清亚洲| 国产精品欧美一级免费| 欧美日韩在线播| 久久成人免费电影| 亚洲欧美综合另类在线卡通| 欧洲国产伦久久久久久久| 蜜芽一区二区三区| 国产精品美女久久久久久久网站| 色婷婷综合久久久久中文| 日韩黄色免费网站| 久久久久久电影| 色视频欧美一区二区三区| 琪琪久久久久日韩精品| 亚洲欧洲一区二区三区| 欧美一区二区性放荡片| 91在线观看视频| 精品一区二区在线播放| 一区二区三区在线免费| 久久日韩粉嫩一区二区三区| 欧洲视频一区二区| 国产传媒欧美日韩成人| 首页国产丝袜综合| 亚洲欧洲精品一区二区三区不卡| 欧美一区二区网站| 91久久线看在观草草青青| 国产麻豆精品视频| 爽好久久久欧美精品| 成人免费一区二区三区视频| 日韩免费观看高清完整版在线观看| jlzzjlzz亚洲日本少妇| 美女视频免费一区| 亚洲一区二区三区不卡国产欧美| 国产色爱av资源综合区| 91精品国产免费| 色噜噜狠狠成人网p站| 国产成人精品免费视频网站| 日本欧洲一区二区| 亚洲自拍偷拍网站| 中文字幕一区二区三区乱码在线| 欧美不卡一区二区三区四区| 欧美三区免费完整视频在线观看| 成人中文字幕电影| 国产精品综合一区二区| 日日骚欧美日韩| 亚洲一级二级三级在线免费观看| 国产精品免费人成网站| 久久无码av三级| 日韩丝袜情趣美女图片| 欧美精品久久久久久久久老牛影院| 97久久久精品综合88久久| 国产精品一二二区| 久久精品国产精品亚洲综合| 欧美a级理论片| 亚洲va国产va欧美va观看| 夜夜嗨av一区二区三区网页| 国产精品成人在线观看| 中文字幕制服丝袜一区二区三区 | 日产国产高清一区二区三区| 一区二区三区不卡在线观看| 亚洲日本中文字幕区| 日韩在线一区二区| 亚洲成人精品一区二区| 亚洲一区二区三区四区在线| 亚洲一区影音先锋| 亚洲激情av在线| 亚洲综合区在线| 图片区小说区区亚洲影院| 亚洲成人高清在线| 免费一区二区视频| 麻豆国产精品一区二区三区| 另类小说综合欧美亚洲| 国产一区二区导航在线播放| 国产伦理精品不卡| 成人av电影在线观看| av在线综合网| 欧美在线三级电影| 欧美一卡二卡三卡四卡| 精品久久国产老人久久综合| 国产三级一区二区三区| 国产精品久久久久久久久晋中| 亚洲嫩草精品久久| 亚洲国产成人av网| 日本va欧美va欧美va精品| 国内精品自线一区二区三区视频| 丰满放荡岳乱妇91ww| 91麻豆国产福利在线观看| 欧美美女黄视频| 欧美精品一区二区高清在线观看 | 亚洲色图.com| 日韩中文字幕亚洲一区二区va在线| 日本最新不卡在线| 成人永久免费视频| 欧美色图12p| 久久久久国产精品免费免费搜索| 国产精品久久久久三级| 午夜激情综合网| 国产成人无遮挡在线视频| 一本到三区不卡视频| 日韩精品一区二区三区视频在线观看 | 免费成人性网站| 国产成人日日夜夜| 欧美日韩一区二区三区四区 | 日本精品视频一区二区| 91麻豆精品国产91久久久久久| 久久久久久久久免费| 玉米视频成人免费看| 国产在线精品一区二区不卡了| 色综合婷婷久久| 中文字幕日韩一区| 日本一区中文字幕| 91在线你懂得| 久久蜜桃av一区二区天堂| 亚洲国产欧美另类丝袜| 国产伦精品一区二区三区免费 | 男女男精品网站| 99精品久久久久久| 26uuu亚洲| 日本aⅴ免费视频一区二区三区| www.久久久久久久久| 精品理论电影在线| 亚欧色一区w666天堂| 99riav久久精品riav| 久久在线观看免费| 男女视频一区二区| 欧美日韩国产三级| 一二三区精品视频| 91丨porny丨首页| 国产精品美女视频| 国产成人在线观看| 精品毛片乱码1区2区3区| 午夜精品久久久久久久| 色狠狠色狠狠综合| 日韩毛片视频在线看| 粉嫩13p一区二区三区| 精品国产乱码久久久久久蜜臀| 水野朝阳av一区二区三区| 91热门视频在线观看| 中文字幕在线视频一区| 成人高清视频免费观看| 日本一区二区三区久久久久久久久不 | 欧美电影一区二区三区| 一区二区三区精品久久久| 91蜜桃网址入口| 亚洲天堂av老司机| 99久久婷婷国产综合精品|