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

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

?? buttonex.ctl

?? 在線ZIP在線ZIP在線ZIP在線ZIP在線ZIP在線ZIP
?? CTL
?? 第 1 頁 / 共 4 頁
字號:
VERSION 5.00
Begin VB.UserControl ButtonEx 
   AutoRedraw      =   -1  'True
   BackStyle       =   0  'Transparent
   ClientHeight    =   1815
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3345
   DefaultCancel   =   -1  'True
   ScaleHeight     =   121
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   223
   ToolboxBitmap   =   "ButtonEx.ctx":0000
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   1
      Left            =   720
      Top             =   120
   End
End
Attribute VB_Name = "ButtonEx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
'**************************************************************
'*  Copyright (C) TREEV Inc. 2000 - All Rights Reserved       *
'*                                                            *
'*  FILE:  ButtonEx.ctl                                       *
'*                                                            *
'*  DESCRIPTION:                                              *
'*      Provides a enhanced CommandButton control, including  *
'*      custom graphics as well MouseOver event, etc.         *
'*                                                            *
'*  CHANGE HISTORY:                                           *
'*      Aug 2000    J. Pearson      Initial code              *
'**************************************************************

'//---------------------------------------------------------------------------------------
'// Windows API constants
'//---------------------------------------------------------------------------------------
Private Const BLACKNESS = &H42              '(DWORD) dest = BLACK
Private Const NOTSRCCOPY = &H330008         '(DWORD) dest = (NOT source)
Private Const NOTSRCERASE = &H1100A6        '(DWORD) dest = (NOT src) AND (NOT dest)
Private Const SRCAND = &H8800C6             '(DWORD) dest = source AND dest
Private Const SRCCOPY = &HCC0020            '(DWORD) dest = source
Private Const SRCERASE = &H440328           '(DWORD) dest = source AND (NOT dest )
Private Const SRCINVERT = &H660046          '(DWORD) dest = source XOR dest
Private Const SRCPAINT = &HEE0086           '(DWORD) dest = source OR dest
Private Const WHITENESS = &HFF0062          '(DWORD) dest = WHITE

Private Const BDR_RAISEDINNER = &H4
Private Const BDR_RAISEDOUTER = &H1
Private Const BDR_SUNKENINNER = &H8
Private Const BDR_SUNKENOUTER = &H2

Private Const BDR_RAISED = &H5
Private Const BDR_OUTER = &H3
Private Const BDR_INNER = &HC

Private Const BF_ADJUST = &H2000        'Calculate the space left over.
Private Const BF_FLAT = &H4000          'For flat rather than 3-D borders.
Private Const BF_MONO = &H8000          'For monochrome borders.
Private Const BF_SOFT = &H1000          'Use for softer buttons.
Private Const BF_BOTTOM = &H8
Private Const BF_LEFT = &H1
Private Const BF_RIGHT = &H4
Private Const BF_TOP = &H2
Private Const BF_RECT = (BF_LEFT Or BF_TOP Or BF_RIGHT Or BF_BOTTOM)

Private Const EDGE_RAISED = (BDR_RAISEDOUTER Or BDR_RAISEDINNER)
Private Const EDGE_SUNKEN = (BDR_SUNKENOUTER Or BDR_SUNKENINNER)
Private Const EDGE_BUMP = (BDR_RAISEDOUTER Or BDR_SUNKENINNER)
Private Const EDGE_ETCHED = (BDR_SUNKENOUTER Or BDR_RAISEDINNER)

Private Const DT_CENTER = &H1
Private Const DT_RTLREADING = &H20000
Private Const DT_SINGLELINE = &H20
Private Const DT_VCENTER = &H4

Private Const DST_COMPLEX = &H0
Private Const DST_TEXT = &H1
Private Const DST_PREFIXTEXT = &H2
Private Const DST_ICON = &H3
Private Const DST_BITMAP = &H4

Private Const DSS_NORMAL = &H0
Private Const DSS_UNION = &H10                   '/* Gray string appearance */
Private Const DSS_DISABLED = &H20
Private Const DSS_RIGHT = &H8000

'//---------------------------------------------------------------------------------------
'// Windows API types
'//---------------------------------------------------------------------------------------
Private Type POINTAPI
    X As Long
    Y As Long
End Type

Private Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type

'//---------------------------------------------------------------------------------------
'// Windows API declarations
'//---------------------------------------------------------------------------------------
Private Declare Function BitBlt Lib "gdi32" (ByVal hdcDest As Long, ByVal xDest As Long, ByVal yDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hdcSrc As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function CreateBitmap Lib "gdi32" (ByVal nWidth As Long, ByVal nHeight As Long, ByVal nPlanes As Long, ByVal nBitCount As Long, lpBits As Any) As Long
Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function DrawEdge Lib "user32" (ByVal hdc As Long, qrc As RECT, ByVal edge As Long, ByVal grfFlags As Long) As Long
Private Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As Long
Private Declare Function DrawState Lib "user32" Alias "DrawStateA" (ByVal hdc As Long, ByVal hBrush As Long, ByVal lpDrawStateProc As Long, ByVal lParam As Long, ByVal wParam As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal n3 As Long, ByVal n4 As Long, ByVal un As Long) As Long
Private Declare Function DrawStateText Lib "user32" Alias "DrawStateA" (ByVal hdc As Long, ByVal hBrush As Long, ByVal lpDrawStateProc As Long, ByVal lParam As String, ByVal wParam As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal n3 As Long, ByVal n4 As Long, ByVal un As Long) As Long
Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hdc As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Long, lpRect As RECT) As Long
Private Declare Function ScreenToClient Lib "user32" (ByVal hWnd As Long, lpPoint As POINTAPI) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function SetBkColor Lib "gdi32" (ByVal hdc As Long, ByVal crColor As Long) As Long

'//---------------------------------------------------------------------------------------
'// Private enumerations
'//---------------------------------------------------------------------------------------
Private Enum StateConstants
    btDown = 0
    btUp = 1
    btOver = 2
    btDisabled = 3
    btFocus = 4
End Enum

Private Enum RasterOperationConstants
    roNotSrcCopy = NOTSRCCOPY
    roNotSrcErase = NOTSRCERASE
    roSrcAnd = SRCAND
    roSrcCopy = SRCCOPY
    roSrcErase = SRCERASE
    roSrcInvert = SRCINVERT
    roSrcPaint = SRCPAINT
End Enum

'//---------------------------------------------------------------------------------------
'// Private constants
'//---------------------------------------------------------------------------------------
Private Const clTop As Long = 6
Private Const clLeft As Long = 6
Private Const clFocusOffset As Long = 4
Private Const clDownOffset As Long = 1

'//---------------------------------------------------------------------------------------
'// Private variables
'//---------------------------------------------------------------------------------------
Private tPrevEvent As String
Private lState As StateConstants
Private bLeftFocus As Boolean
Private bHasFocus As Boolean

'//---------------------------------------------------------------------------------------
'// Public constants
'//---------------------------------------------------------------------------------------
Public Enum AppearanceConstants
    Flat = 0
    [3D] = 1
    Skin = 2
End Enum

Public Enum StyleConstants
    Default = 0
    ButtonGroup = 1
End Enum

Public Enum ValueConstants
    Down = 0
    Up = 1
End Enum

'//---------------------------------------------------------------------------------------
'// Control property constants
'//---------------------------------------------------------------------------------------
Private Const m_def_Appearance = Skin
Private Const m_def_BackColor = vbButtonFace
Private Const m_def_Caption = "ButtonEx1"
Private Const m_def_CaptionOffsetX = 0
Private Const m_def_CaptionOffsetY = 0
Private Const m_def_Enabled = True
Private Const m_def_ForeColor = vbButtonText
Private Const m_def_HighlightColor = vbButtonText
'Private Const m_def_HighlightPicture = False
Private Const m_def_MousePointer = vbDefault
'Private Const m_def_PictureOffsetX = 0
'Private Const m_def_PictureOffsetY = 0
Private Const m_def_RightToLeft = False
Private Const m_def_Style = 0
Private Const m_def_ToolTipText = ""
Private Const m_def_TransparentColor = vbBlue
Private Const m_def_Value = Up
Private Const m_def_WhatsThisHelpID = 0

'//---------------------------------------------------------------------------------------
'// Control property variables
'//---------------------------------------------------------------------------------------
Private m_Appearance As AppearanceConstants
Private m_BackColor As OLE_COLOR
Private m_Caption As String
Private m_CaptionOffsetX As Long
Private m_CaptionOffsetY As Long
Private m_Enabled As Boolean
Private m_ForeColor As OLE_COLOR
Private m_Font As Font
Private m_HighlightColor As OLE_COLOR
'Private m_HighlightPicture As Boolean
Private m_MouseIcon As Picture
Private m_MousePointer As MousePointerConstants
'Private m_Picture As Picture
'Private m_PictureDisabled As Picture
'Private m_PictureDown As Picture
'Private m_PictureFocus As Picture
'Private m_PictureOffsetX As Long
'Private m_PictureOffsetY As Long
'Private m_PictureOver As Picture
Private m_RightToLeft As Boolean
Private m_SkinDisabled As Picture
Private m_SkinDown As Picture
Private m_SkinFocus As Picture
Private m_SkinOver As Picture
Private m_SkinUp As Picture
Private m_Style As StyleConstants
Private m_ToolTipText As String
Private m_TransparentColor As OLE_COLOR
Private m_Value As ValueConstants
Private m_WhatsThisHelpID As Long

'//---------------------------------------------------------------------------------------
'// Control property events
'//---------------------------------------------------------------------------------------
Public Event Click()
Attribute Click.VB_Description = "Occurs when the user presses and then releases a mouse button over the control."
Public Event KeyDown(KeyCode As Integer, Shift As Integer)
Attribute KeyDown.VB_Description = "Occurs when the user presses a key while the control has the focus."
Public Event KeyPress(KeyAscii As Integer)
Attribute KeyPress.VB_Description = "Occurs when the user presses and releases an ANSI key."
Public Event KeyUp(KeyCode As Integer, Shift As Integer)
Attribute KeyUp.VB_Description = "Occurs when the user releases a key while the control has the focus."
Public Event MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Attribute MouseDown.VB_Description = "Occurs when the user presses the mouse button while the control has the focus."
Public Event MouseEnter()
Attribute MouseEnter.VB_Description = "Occurs when the user moves the mouse over the control after MouseExit event."
Public Event MouseExit()
Attribute MouseExit.VB_Description = "Occurs when the user moves the mouse out of the control after MouseEnter event."
Public Event MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Attribute MouseMove.VB_Description = "Occurs when the user moves the mouse."
Public Event MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Attribute MouseUp.VB_Description = "Occurs when the user releases the mouse button while the control has the focus."
Public Event Resize()
Attribute Resize.VB_Description = "Occurs when a form is first displayed or the size of the control changes."

'//---------------------------------------------------------------------------------------
'// Control properties
'//---------------------------------------------------------------------------------------

Public Property Get Appearance() As AppearanceConstants
Attribute Appearance.VB_Description = "Returns/sets whether or not the control is painted with 3-D effects."
    Appearance = m_Appearance
End Property

Public Property Let Appearance(ByVal NewValue As AppearanceConstants)
    m_Appearance = NewValue
        
    Call DrawButton(lState)
    
    PropertyChanged "Appearance"
End Property

Public Property Get BackColor() As OLE_COLOR
Attribute BackColor.VB_Description = "Returns/sets the background color used to display text and graphics in the control."
    BackColor = m_BackColor
End Property

Public Property Let BackColor(ByVal NewValue As OLE_COLOR)
    m_BackColor = NewValue
    UserControl.BackColor = NewValue
   ' imgPicture.BackColor = NewValue
    
    Call DrawButton(lState)
    
    PropertyChanged "BackColor"
End Property

Public Property Get Caption() As String
Attribute Caption.VB_Description = "Returns/sets the text displayed in the control."
    Caption = m_Caption
End Property

Public Property Let Caption(ByVal NewValue As String)
    Dim lPlace As Long
    
    m_Caption = NewValue
    
    'set access key
    lPlace = 0
    lPlace = InStr(lPlace + 1, NewValue, "&", vbTextCompare)
    Do While lPlace <> 0
        If Mid$(NewValue, lPlace + 1, 1) <> "&" Then
            UserControl.AccessKeys = Mid$(NewValue, lPlace + 1, 1)
            Exit Do
        Else
            lPlace = lPlace + 1
        End If
    
        lPlace = InStr(lPlace + 1, NewValue, "&", vbTextCompare)
    Loop
    
    Call DrawButton(lState)
    
    PropertyChanged "Caption"
End Property

Public Property Get CaptionOffsetX() As Long
Attribute CaptionOffsetX.VB_Description = "Returns/sets the horizontal offset for displaying the caption."
    CaptionOffsetX = m_CaptionOffsetX
End Property

Public Property Let CaptionOffsetX(ByVal NewValue As Long)
    m_CaptionOffsetX = NewValue
    
    Call DrawButton(lState)
    
    PropertyChanged "CaptionOffsetX"
End Property

Public Property Get CaptionOffsetY() As Long
Attribute CaptionOffsetY.VB_Description = "Returns/sets the vertical offset for displaying the caption."
    CaptionOffsetY = m_CaptionOffsetY
End Property

Public Property Let CaptionOffsetY(ByVal NewValue As Long)
    m_CaptionOffsetY = NewValue
    
    Call DrawButton(lState)
    
    PropertyChanged "CaptionOffsetY"
End Property

Public Property Get Enabled() As Boolean
Attribute Enabled.VB_Description = "Returns/sets a value that determines whether an object can respond to user-generated events."
    Enabled = m_Enabled
End Property

Public Property Let Enabled(ByVal NewValue As Boolean)
    m_Enabled = NewValue
    UserControl.Enabled = NewValue
   ' imgPicture.Enabled = NewValue
    
    If m_Enabled Then
        lState = btUp
    End If
    Call DrawButton(lState)
    
    PropertyChanged "Enabled"
End Property

Public Property Get ForeColor() As OLE_COLOR
Attribute ForeColor.VB_Description = "Returns/sets the foreground color used to display text and graphics in the control."
    ForeColor = m_ForeColor
End Property

Public Property Let ForeColor(ByVal NewValue As OLE_COLOR)
    m_ForeColor = NewValue
    UserControl.ForeColor = NewValue
   ' imgPicture.ForeColor = NewValue
    
    Call DrawButton(lState)
    
    PropertyChanged "ForeColor"
End Property

Public Property Get Font() As Font
Attribute Font.VB_Description = "Returns/sets a Font object used to display text in the control."
    Set Font = m_Font
End Property

Public Property Set Font(ByVal NewValue As Font)
    Set m_Font = NewValue
    Set UserControl.Font = NewValue
   ' Set imgPicture.Font = NewValue
    
    Call DrawButton(lState)
    
    PropertyChanged "Font"
End Property

Public Property Get HighlightColor() As OLE_COLOR
Attribute HighlightColor.VB_Description = "Returns/sets the highlight color used to display text and graphics when the mouse is over the control."
    HighlightColor = m_HighlightColor
End Property

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品一区二区麻豆网站 | 国产精品久久久久久久久免费桃花| 亚洲国产精品欧美一二99| 国产乱人伦精品一区二区在线观看| 欧美日韩国产三级| 无码av免费一区二区三区试看 | 中文字幕一区二区三区四区不卡| 久久se这里有精品| 日韩视频一区二区三区在线播放| 亚洲成人av福利| 欧洲一区在线电影| 亚洲一级在线观看| 欧美片在线播放| 三级久久三级久久久| 成人看片黄a免费看在线| 久久久99精品久久| 成人免费福利片| 国产无人区一区二区三区| 国产成人av影院| 中文字幕视频一区二区三区久| 一本一道久久a久久精品综合蜜臀| 亚洲欧美日韩国产手机在线| 在线日韩av片| 美女脱光内衣内裤视频久久网站| 色猫猫国产区一区二在线视频| 一区二区三区精品视频| 欧美精品自拍偷拍| 久久99热这里只有精品| 国产精品免费久久| 欧美性受极品xxxx喷水| 婷婷成人激情在线网| 久久丝袜美腿综合| 国产精品亚洲成人| 亚洲日本青草视频在线怡红院 | 国产精品久久久久久久久免费樱桃 | 国产91精品免费| 亚洲精品综合在线| 欧美一激情一区二区三区| 国产综合久久久久久久久久久久| 国产精品久久久久久一区二区三区| 色噜噜狠狠一区二区三区果冻| 天天综合色天天综合色h| 日韩精品一区二区三区四区| 国产在线精品一区在线观看麻豆| 欧美国产乱子伦| 欧美老年两性高潮| 国产激情91久久精品导航| 一区二区三区四区激情| 日韩三级电影网址| 91视频com| 激情都市一区二区| 亚洲成在线观看| 欧美专区在线观看一区| 国产不卡视频一区| 青青草国产成人av片免费| 亚洲欧美激情插| 久久久精品欧美丰满| 日韩一区二区在线观看视频| 日本福利一区二区| voyeur盗摄精品| 国产成人超碰人人澡人人澡| 激情综合亚洲精品| 蜜臀av性久久久久av蜜臀妖精 | 91国产精品成人| 播五月开心婷婷综合| 国产精品一区在线观看你懂的| 日本视频一区二区| 午夜精品aaa| 亚洲电影在线免费观看| 伊人色综合久久天天| 亚洲欧洲韩国日本视频| 国产精品视频观看| 国产精品乱码一区二区三区软件 | 丁香婷婷深情五月亚洲| 国产精品资源网| 国产成人日日夜夜| 成人亚洲一区二区一| 国产一区二区三区久久久| 国产综合久久久久久鬼色| 国产美女精品一区二区三区| 国产麻豆视频一区| 高清国产午夜精品久久久久久| 成人免费va视频| 99re这里只有精品首页| 91传媒视频在线播放| 欧美日韩在线直播| 日韩视频免费观看高清完整版| 欧美第一区第二区| 国产调教视频一区| 亚洲精品亚洲人成人网在线播放| 亚洲一区二区在线视频| 秋霞成人午夜伦在线观看| 久久se精品一区精品二区| 国产1区2区3区精品美女| 91在线播放网址| 欧美三级视频在线观看| 欧美一级视频精品观看| 欧美精品一区二区三区在线播放| 亚洲国产高清在线| 一区二区三区**美女毛片| 奇米综合一区二区三区精品视频| 国内精品在线播放| 99久久久精品| 欧美一区二区日韩| 国产精品入口麻豆原神| 亚洲va欧美va人人爽午夜| 激情综合网激情| 91老司机福利 在线| 日韩欧美一区二区视频| 国产欧美一区二区三区沐欲| 亚洲国产美女搞黄色| 激情五月婷婷综合网| 99国产一区二区三精品乱码| 欧美一区永久视频免费观看| 中文字幕乱码一区二区免费| 亚洲一区二区三区四区在线观看 | 国产亚洲精品资源在线26u| 国产精品久久久久久亚洲伦| 日韩国产精品久久久| 成人一区二区三区视频在线观看| 91激情五月电影| 国产婷婷色一区二区三区| 亚洲电影在线播放| 成人网男人的天堂| 制服丝袜亚洲色图| 综合分类小说区另类春色亚洲小说欧美| 图片区日韩欧美亚洲| 成人18视频在线播放| 欧美大片日本大片免费观看| 亚洲一区二区美女| 国产69精品久久777的优势| 91精品国产综合久久福利软件 | 久久久www免费人成精品| 一区二区高清免费观看影视大全| 国产一区二区三区四区在线观看| 在线观看成人免费视频| 国产精品久久久久久户外露出| 免费美女久久99| 91高清视频在线| 国产精品国模大尺度视频| 久久国产精品72免费观看| 欧美色欧美亚洲另类二区| 中文字幕一区二区三区在线播放 | 日韩欧美一级精品久久| 亚洲一区二区三区视频在线播放| eeuss鲁片一区二区三区| 久久久精品一品道一区| 久久av资源站| 日韩三级中文字幕| 免费观看91视频大全| 欧美视频精品在线| 亚洲国产精品一区二区久久恐怖片| caoporen国产精品视频| 中文字幕成人av| 成人永久免费视频| 国产精品人成在线观看免费| 国产成人日日夜夜| 亚洲国产电影在线观看| 国产成a人亚洲精品| 久久蜜桃av一区二区天堂| 久久97超碰国产精品超碰| 日韩一卡二卡三卡国产欧美| 丝袜国产日韩另类美女| 欧美日韩高清在线| 午夜视频在线观看一区二区 | 日本道免费精品一区二区三区| 欧美激情一区在线| 国产宾馆实践打屁股91| 久久久国产一区二区三区四区小说| 黄色成人免费在线| 26uuu亚洲综合色欧美| 国产在线播放一区| 久久久国产午夜精品 | 久久精品免费看| 精品国产一区二区亚洲人成毛片| 日韩精品电影在线| 日韩欧美一二区| 国产剧情一区在线| 国产精品丝袜久久久久久app| 国产v日产∨综合v精品视频| 国产精品入口麻豆原神| 色综合天天做天天爱| 夜夜精品视频一区二区| 欧美日韩不卡视频| 久久精品国产秦先生| 国产精品亲子乱子伦xxxx裸| 97精品久久久午夜一区二区三区 | 日韩欧美一二三区| 全部av―极品视觉盛宴亚洲| 伊人性伊人情综合网| 制服丝袜av成人在线看| 国产综合一区二区| 中文字幕日本不卡| 欧美日韩国产另类不卡| 国内国产精品久久| 中文字幕五月欧美| 日韩手机在线导航| 成人毛片老司机大片| 天堂久久久久va久久久久| 精品久久久久久久久久久院品网|