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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? newdialog.cls

?? 簡單、實用、特別。 有很多不足之處
?? CLS
?? 第 1 頁 / 共 2 頁
字號:
      .flags = FileFlags
      .hwndOwner = hwnd
      .hInstance = 0
      .lCustData = 0
      .lpfnHook = 0
      .lpstrDefExt = StrPtr(DefaultExt)
      .lpstrFile = FileName & String$(MAX_FILE - Len(FileName) + 1, vbNullChar)
      .lpstrFileTitle = FileTitle & Space$(256)
      .lpstrFilter = m_Filter
      .lpstrInitialDir = InitDir
      .lpstrTitle = DialogTitle
      .lpTemplateName = 0
      .lStructSize = Len(OpenFileName)
      .nFileExtension = 0
      .nFileOffset = 0
      .nFilterIndex = FilterIndex
      .nMaxCustFilter = 0
      .nMaxFile = MAX_FILE
      .nMaxFileTitle = MAX_FILE
   End With
   'and call the dialog box
   l = GetSaveFileName(OpenFileName)
   Select Case l
   Case 1
      With OpenFileName
         'now fill the data with result from dialog
         FileFlags = .flags
         DefaultExt = .lpstrDefExt
         FileName = NullTrim(.lpstrFile)
         FileTitle = NullTrim(.lpstrFileTitle)
         FileExt = .nFileExtension
         m_Filter = NullTrim(.lpstrFilter)
         InitDir = NullTrim(.lpstrInitialDir)
         FilterIndex = NullTrim(.nFilterIndex)
      End With
   Case 0
      'if user pressed cancel then generate error if CancelError is true (default is false)
      If CancelError Then Err.Raise 1001, "Run-time error", "Cancel was selected"
   Case Else
     ' Extended error
        m_ExtendedErr = CommDlgExtendedError()
        Err.Raise m_ExtendedErr
   End Select
End Sub

Public Sub ShowOpen()
   'Shows the Open File Dialog
   On Error Resume Next
   Dim ofn As TOPENFILENAME
   Dim l As Long
   With ofn
      'fill the data
      .flags = m_flags
      .hwndOwner = m_hWnd
      .hInstance = 0
      .lpfnHook = 0
      .lCustData = 0
      .lpstrDefExt = m_DefaultExt
      .lpstrFile = m_FileName & String$(MAX_FILE - Len(m_FileName) + 1, 0)
      .lpstrFileTitle = m_FileTitle & Space$(256)
      .lpstrFilter = m_Filter
      .lpstrInitialDir = m_InitDir
      .lpstrTitle = m_DialogTitle
      .lpTemplateName = 0
      .lStructSize = Len(ofn)
      .nFileExtension = 0
      .nFileOffset = 0
      .nFilterIndex = m_FilterIndex
      .nMaxCustFilter = 0
      .nMaxFile = MAX_FILE
      .nMaxFileTitle = MAX_FILE
      'apply hook if needed.
      'If m_fHook Then
      '   HookedDialog = Me
      '   .lpfnHook = HookAddress(AddressOf DialogHookFunction)
      '   .Flags = .Flags Or OFN_ENABLEHOOK Or OFN_EXPLORER
      'End If
   End With
   'call the dialog
   l = GetOpenFileName(ofn)
   ClearHookedDialog
   Select Case l
   Case 1
      With ofn
         'and fill data with results from dialog
         m_flags = .flags
         m_DefaultExt = .lpstrDefExt
         m_FileName = NullTrim(.lpstrFile)
         m_FileTitle = NullTrim(.lpstrFileTitle)
         m_FileExt = .nFileExtension
         m_Filter = NullTrim(.lpstrFilter)
         m_InitDir = NullTrim(.lpstrInitialDir)
         m_FilterIndex = NullTrim(.nFilterIndex)
      End With
   Case 0
      'if user pressed cancel then generate error if CancelError is true (default is false)
      If m_CancelError Then Err.Raise 1002, "Run-time error", "Cancel was selected"
   Case Else
      m_ExtendedErr = CommDlgExtendedError()
      Err.Raise m_ExtendedErr
   End Select
End Sub

Public Sub ShowFont()
   Dim PrinterDC As Long
   Dim l As Long
    ' Unwanted m_flags bits as we don't support them
    Const CF_FontNotSupported = CF_APPLY Or CF_ENABLEHOOK Or CF_ENABLETEMPLATE
    ' m_flags can get reference variable or constant with bit m_flags
    
    'Set the hdc for the printer if printerfonts are being used
    If m_flags And CF_PRINTERFONTS Then PrinterDC = Printer.hdc
    ' Must have some fonts
    If (m_flags And CF_PRINTERFONTS) = 0 Then m_flags = m_flags Or CF_SCREENFONTS
    
    'check to see if there was a color selected
    If m_FontColor > 0 Then m_flags = m_flags Or CF_EFFECTS
    
    'check to see if there were minimum or maximum sizes
    If m_FontMinSize > 0 Or m_FontMaxSize > 0 Then m_flags = m_flags Or CF_LIMITSIZE
    
    ' Put in required internal m_flags and remove unsupported
    m_flags = (m_flags Or CF_INITTOLOGFONTSTRUCT) And Not CF_FontNotSupported
    
    ' Initialize LOGFONT variable
    Dim LogFnt As LOGFONT
    Const PointsPerTwip = 1440 / 72
    LogFnt.lfHeight = -(m_Font.Size * (PointsPerTwip / Screen.TwipsPerPixelY))
    LogFnt.lfWeight = m_Font.Weight
    LogFnt.lfItalic = m_Font.Italic
    LogFnt.lfUnderline = m_Font.Underline
    LogFnt.lfStrikeOut = m_Font.Strikethrough
    ' Other fields zero
    StrToBytes LogFnt.lfFaceName, m_Font.Name

    ' Initialize TCHOOSEFONT variable
    Dim ChooseFnt As TCHOOSEFONT
    With ChooseFnt
      .lStructSize = Len(ChooseFnt)
      .hwndOwner = m_hWnd
      .hdc = PrinterDC
      .lpLogFont = VarPtr(LogFnt)
      .iPointSize = m_Font.Size * 10
      .flags = m_flags
      .rgbColors = Color
      .nSizeMin = m_FontMinSize
      .nSizeMax = m_FontMaxSize
    End With
    
    ' Call the dialog box
    l = ChooseFont(ChooseFnt)
    Select Case l
    Case 1
        ' Success
        m_flags = ChooseFnt.flags
        m_FontColor = ChooseFnt.rgbColors
        m_Font.Bold = ChooseFnt.nFontType And BOLD_FONTTYPE
        m_Font.Italic = LogFnt.lfItalic
        m_Font.Strikethrough = LogFnt.lfStrikeOut
        m_Font.Underline = LogFnt.lfUnderline
        m_Font.Weight = LogFnt.lfWeight
        m_Font.Size = ChooseFnt.iPointSize / 10
        m_Font.Name = StrConv(LogFnt.lfFaceName, vbUnicode)
    Case 0
      'canceled
      If m_CancelError Then Err.Raise 1001, "Run-time error", "Cancel was selected"
    Case Else
         ' Extended error
        m_ExtendedErr = CommDlgExtendedError()
        Err.Raise m_ExtendedErr
   End Select
        
End Sub

Sub ShowColor()
    Dim ChooseClr As TCHOOSECOLOR
    Dim afMask As Long
    Dim l As Long
    
    With ChooseClr
      .lStructSize = Len(ChooseClr)
    
      .hwndOwner = m_hWnd
      .rgbResult = m_Color
      
      ' Mask out unwanted bits
      afMask = CLng(Not (CC_ENABLEHOOK Or _
                       CC_ENABLETEMPLATE))
      .flags = afMask And m_flags
      .lpCustColors = VarPtr(alCustom(0))
    End With
   l = ChooseColor(ChooseClr)
    
    Select Case l
    Case 1
        ' Success
        m_Color = ChooseClr.rgbResult
    Case 0
        ' Cancelled
        If m_CancelError = True Then Err.Raise 1004, , "Choose Color Dialog was canceled"
        m_Color = -1
    Case Else
        ' Extended error
        m_ExtendedErr = CommDlgExtendedError()
        Err.Raise m_ExtendedErr
    End Select

End Sub

Public Function ShowPrinter() As Boolean
  'returns true if the dialog was used to assign a printer,
  'and/or print properties
  
  Dim pdlg As PrintDlg
  Dim lngResult As Long
  
  'set initial properties
  
  'window handle of owner
  pdlg.hwndOwner = m_hWnd
    
  'structure size
  pdlg.lStructSize = Len(pdlg)
  
  'call the api function
  lngResult& = PrintDlg(pdlg)
    
  If lngResult& <> 0 Then
    ShowPrinter = True
  Else
    ShowPrinter = False
    
  End If
  
  
End Function

Private Sub InitColors()
    Dim I As Integer
    ' Initialize with first 16 system interface colors
    For I = 0 To 15
        alCustom(I) = GetSysColor(I)
    Next
End Sub

' Property to read or modify custom colors (use to save colors in registry)
Public Property Get CustomColor(I As Integer) As Long
    If I >= 0 And I <= 15 Then
        CustomColor = alCustom(I)
    Else
        CustomColor = -1
    End If
End Property
Public Property Let Color(NewColor As Long)
   m_Color = NewColor
End Property
 
Public Property Get Color() As Long
    Color = m_Color
End Property
 
Public Property Let FontColor(NewColor As Long)
   m_FontColor = NewColor
End Property

Public Property Get FontColor() As Long
   FontColor = m_FontColor
End Property
Public Property Let FontMinSize(MinSize As Long)
   m_FontMinSize = MinSize
End Property

Public Property Let FontMaxSize(MaxSize As Long)
   m_FontMaxSize = MaxSize
End Property

Private Function HookAddress(Pointer As Long) As Long
    HookAddress = Pointer
End Function

Public Property Let InitDir(ByVal vData As String)
   ' Directory to open window in
   ' Default: "C:\"
   m_InitDir = vData
End Property
Public Property Get InitDir() As String
   InitDir = m_InitDir
End Property

Public Property Let FileFlags(ByVal vData As EOpenFile)
   ' Flags for the file dialogs
   m_flags = vData
End Property

Public Property Let flags(NewFlags As Long)
   'used for compatibility with the standard dialog control.  It is recommended that you use the
   'FileFlags, FontFlags and ColorFlags instead as they provide you with a list of the flags available.
   m_flags = NewFlags
End Property

Public Property Get flags() As Long
   flags = m_flags
End Property

Public Property Get FileFlags() As EOpenFile
   FileFlags = m_flags
End Property

Public Property Let FontFlags(ByVal vData As EChooseFont)
   'flags for the font dialog
   m_flags = vData
End Property

Public Property Get FontFlags() As EChooseFont
   FontFlags = m_flags
End Property

Public Property Let ColorFlags(ByVal vData As EChooseColor)
   'flages for the color dialog
   m_flags = vData
End Property

Public Property Get ColorFlags() As EChooseColor
   ColorFlags = m_flags
End Property

Public Property Let Filter(ByVal vData As String)
   ' Filters that the user can select in drowpdown combo
   ' Usage: Friendlyname1|*.ex1|Freindlyname2|*.ex2 etc.
   ' Default: "All Files (*.*)|*.*"
   Dim pipepos As String
   Do While InStr(vData, "|") > 0
      pipepos = InStr(vData, "|")
      If pipepos > 0 Then
         vData = Left$(vData, pipepos - 1) & vbNullChar & Right$(vData, Len(vData) - pipepos)
      End If
   Loop
   If Right$(vData, 2) <> vbNullChar & vbNullChar Then vData = vData & vbNullChar
   If Right$(vData, 2) <> vbNullChar & vbNullChar Then vData = vData & vbNullChar
   m_Filter = vData
End Property

Public Property Get Filter() As String
   Dim nullpos As String
   Dim tempfilter As String
   tempfilter = m_Filter
   Do While InStr(tempfilter, vbNullChar) > 0
      nullpos = InStr(tempfilter, vbNullChar)
      If nullpos > 0 Then
         tempfilter = Left$(tempfilter, nullpos - 1) & vbNullChar & Right$(tempfilter, Len(tempfilter) - nullpos)
      End If
   Loop
   If Right$(tempfilter, 1) = "|" Then tempfilter = Left$(tempfilter, Len(tempfilter) - 1)
   If Right$(tempfilter, 1) = "|" Then tempfilter = Left$(tempfilter, Len(tempfilter) - 1)
   Filter = tempfilter
End Property

Public Property Let FilterIndex(ByVal vData As Integer)
   ' Index of filter to select as default
   ' The first item is 1, second 2, etc.
   ' Default: 1
   m_FilterIndex = vData
End Property

Public Property Get FilterIndex() As Integer
   FilterIndex = m_FilterIndex
End Property

Public Property Let FileTitle(ByVal vData As String)
   ' The name of the file without path
   m_FileTitle = vData
End Property

Public Property Get FileTitle() As String
   FileTitle = m_FileTitle
End Property

Public Property Let FileName(ByVal vData As String)
' Name of the file, including path
   m_FileName = vData
End Property

Public Property Get FileName() As String
   FileName = m_FileName
End Property

Public Property Let DialogTitle(ByVal vData As String)
' The name of the dialog box
   m_DialogTitle = vData
End Property

Public Property Get DialogTitle() As String
   DialogTitle = m_DialogTitle
End Property

Public Property Let DefaultExt(ByVal vData As String)
   ' The default extension added if one is not specified in the name
   m_DefaultExt = vData
End Property

Public Property Get DefaultExt() As String
   DefaultExt = m_DefaultExt
End Property

Public Property Let CancelError(ByVal vData As Boolean)
   ' Raise an error if user clicks cancel
   ' Default: False
   m_CancelError = vData
End Property

Public Property Get CancelError() As Boolean
   CancelError = m_CancelError
End Property

Private Sub StrToBytes(ab() As Byte, s As String)
    If IsArrayEmpty(ab) Then
        ' Assign to empty array
        ab = StrConv(s, vbFromUnicode)
    Else
        Dim cab As Long
        ' Copy to existing array, padding or truncating if necessary
        cab = UBound(ab) - LBound(ab) + 1
        If Len(s) < cab Then s = s & String$(cab - Len(s), 0)
        CopyMemoryStr ab(LBound(ab)), s, cab
    End If
End Sub

Public Property Get FontBold() As Boolean
    'return object's FontBold property
    FontBold = m_Font.Bold
End Property

Public Property Let FontBold(ByVal vNewValue As Boolean)
    'Assign object's FontBold property
    m_Font.Bold = vNewValue
End Property

Public Property Get FontItalic() As Boolean
    'Return object's FontItalic property
    FontItalic = m_Font.Italic
End Property

Public Property Let FontItalic(ByVal vNewValue As Boolean)
    'Assign object's FontItalic property
    m_Font.Italic = vNewValue
End Property

Public Property Get FontName() As String
    'Return object's Fontname property
    FontName = m_Font.Name
End Property

Public Property Let FontName(ByVal vNewValue As String)
    'Assign object's FontName property
    m_Font.Name = vNewValue
End Property

Public Property Get FontSize() As Long
    'Return object's FontSize property
    FontSize = m_Font.Size
End Property

Public Property Let FontSize(ByVal vNewValue As Long)
    'Assign object's FontSize property
    m_Font.Size = vNewValue
End Property

Public Property Get Font() As StdFont
    Set Font = m_Font
End Property

Public Property Let Font(sFont As StdFont)
    Set m_Font = sFont
End Property

Private Sub Class_Initialize()
   'set up defaults
   CancelError = False
   DefaultExt = ""
   DialogTitle = ""
   FileName = ""
   FileTitle = ""
   Filter = "All Files|*.*"
   FilterIndex = 1
   InitDir = App.Path
   hwnd = 0
   InitColors
End Sub

Private Function IsArrayEmpty(va As Variant) As Boolean
    Dim v As Variant
    On Error Resume Next
    v = va(LBound(va))
    IsArrayEmpty = (Err <> 0)
End Function

Public Property Get Hook() As Boolean
       Hook = m_fHook
End Property

Public Property Let Hook(NewHook As Boolean)
       m_fHook = NewHook
End Property

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久久综合体| 欧美极品aⅴ影院| 国产亚洲成av人在线观看导航| 亚洲日本丝袜连裤袜办公室| 日韩国产欧美视频| 91亚洲资源网| 久久精品一区二区三区四区| 性感美女久久精品| 色88888久久久久久影院按摩| 久久综合狠狠综合| 午夜精品久久久久影视| 成人av免费网站| 久久久久国色av免费看影院| 日本aⅴ精品一区二区三区| 一本到三区不卡视频| 欧美国产97人人爽人人喊| 国内偷窥港台综合视频在线播放| 欧美日韩成人一区二区| 中文字幕一区二区三区四区| 国产精品91一区二区| 日韩一级大片在线| 欧美a级一区二区| 3d成人动漫网站| 午夜国产精品一区| 欧美美女一区二区三区| 亚洲成a人v欧美综合天堂下载| 国产成人精品三级麻豆| 久久久久国产精品厨房| 国产一区二区福利| 精品1区2区在线观看| 理论电影国产精品| 日韩一区二区免费高清| 视频一区视频二区在线观看| 色狠狠色狠狠综合| 亚洲一区二三区| 欧美亚洲愉拍一区二区| 一区二区三区欧美久久| 欧美性高清videossexo| 亚洲国产精品一区二区www在线| 在线一区二区三区四区| 一区二区三区日韩欧美精品| 欧美特级限制片免费在线观看| 亚洲综合一区二区| 精品视频资源站| 老色鬼精品视频在线观看播放| 精品久久久网站| 成人免费毛片片v| 亚洲欧洲成人精品av97| 色欧美乱欧美15图片| 亚洲123区在线观看| 欧美一区二区视频网站| 国产在线乱码一区二区三区| 国产午夜精品一区二区三区视频| 不卡的av电影在线观看| 亚洲国产一区二区三区| 日韩三级高清在线| 成人sese在线| 天堂午夜影视日韩欧美一区二区| 日韩一级成人av| aaa国产一区| 婷婷中文字幕一区三区| 久久―日本道色综合久久| av在线不卡免费看| 日韩国产高清在线| 国产精品久久久久一区| 在线成人av网站| 国产一区91精品张津瑜| 一区二区三区欧美日韩| 欧美tk—视频vk| 91美女蜜桃在线| 国产一区免费电影| 亚洲成av人片| 国产精品久久久久久亚洲伦| 欧美日韩在线三级| 国产成人午夜片在线观看高清观看 | 色哟哟在线观看一区二区三区| 亚洲国产综合色| 国产校园另类小说区| 欧美性一级生活| 成人黄色电影在线| 麻豆91免费看| 亚洲国产精品精华液网站| 国产肉丝袜一区二区| 欧美日韩高清一区二区不卡| 国产成人亚洲综合a∨猫咪| 天堂在线亚洲视频| 日韩美女视频一区二区| 2023国产精华国产精品| 欧美美女直播网站| 99久久精品免费精品国产| 激情成人综合网| 日韩高清在线观看| 亚洲亚洲精品在线观看| 国产精品美女久久久久aⅴ| 欧美变态凌虐bdsm| 91精品在线观看入口| 在线中文字幕一区二区| 99re成人精品视频| 国产高清不卡二三区| 久久er99精品| 精品一区二区久久久| 日本vs亚洲vs韩国一区三区二区| 亚洲自拍偷拍欧美| 一区二区在线免费| 亚洲免费av高清| ...中文天堂在线一区| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美xxxxx牲另类人与| 欧美精品一二三| 精品视频免费在线| 欧美浪妇xxxx高跟鞋交| 欧美午夜理伦三级在线观看| 欧美亚洲日本国产| 精品视频在线视频| 69成人精品免费视频| 欧美精选一区二区| 欧美一区二区三区系列电影| 在线综合+亚洲+欧美中文字幕| 欧美日本国产视频| 欧美日韩国产一级片| 欧美一区二区女人| 欧美成人欧美edvon| 久久综合久久鬼色中文字| 国产欧美日韩在线看| 最新中文字幕一区二区三区| 亚洲欧美另类在线| 日日噜噜夜夜狠狠视频欧美人| 日韩精品成人一区二区三区| 麻豆精品一区二区三区| 国产在线一区观看| www.欧美亚洲| 欧美在线不卡一区| 日韩片之四级片| 欧美国产精品中文字幕| 亚洲欧美激情视频在线观看一区二区三区 | 成人精品国产一区二区4080| www.欧美日韩国产在线| 欧美少妇一区二区| 欧美tk丨vk视频| 国产精品天干天干在观线| 亚洲一区二区三区视频在线播放| 丝袜美腿亚洲一区二区图片| 国产一区91精品张津瑜| 色哟哟亚洲精品| 日韩精品一区二区三区蜜臀| 中文在线资源观看网站视频免费不卡| 亚洲柠檬福利资源导航| 奇米一区二区三区| jizzjizzjizz欧美| 日韩一区二区三区视频在线| 国产欧美日本一区二区三区| 一区二区三区中文字幕在线观看| 美女视频一区二区三区| 成人国产在线观看| 日韩一二在线观看| 亚洲精品一二三区| 国产一区二区精品久久91| 欧美亚洲免费在线一区| 国产欧美中文在线| 日韩成人午夜电影| 色综合久久中文字幕综合网| 欧美成人一区二区三区片免费| 亚洲免费观看高清完整| 国产精品一区二区三区99| 欧美影院一区二区| 中文字幕精品在线不卡| 热久久免费视频| 色婷婷av一区| 国产精品日产欧美久久久久| 日韩电影一二三区| 欧美最猛黑人xxxxx猛交| 日本一区二区视频在线| 久久精品国产第一区二区三区| 色国产精品一区在线观看| 久久久国产精华| 久久精品国产精品亚洲红杏| 欧洲精品视频在线观看| 亚洲天堂2016| 成人av在线一区二区三区| 精品国产乱码久久| 青青国产91久久久久久| 欧美性猛交xxxxxxxx| 亚洲精品自拍动漫在线| 本田岬高潮一区二区三区| 久久一区二区三区四区| 麻豆91在线看| 日韩视频一区二区| 日韩精品一区第一页| 欧美日韩精品系列| 亚洲少妇最新在线视频| av亚洲产国偷v产偷v自拍| 国产婷婷色一区二区三区| 国产又黄又大久久| 精品国产91乱码一区二区三区 | 亚洲一区二区免费视频| 色综合久久久久久久久| 亚洲美女一区二区三区| 91蝌蚪porny| 一区二区三区在线免费观看| 色婷婷久久久综合中文字幕|