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

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

?? chameleonbutton.ctl

?? 電話本系統...管理方便...簡單扼要
?? CTL
?? 第 1 頁 / 共 3 頁
字號:
VERSION 5.00
Begin VB.UserControl chameleonButton 
   AutoRedraw      =   -1  'True
   ClientHeight    =   3600
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4800
   DefaultCancel   =   -1  'True
   ScaleHeight     =   240
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   320
   ToolboxBitmap   =   "chameleonButton.ctx":0000
End
Attribute VB_Name = "chameleonButton"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

Private Declare Function SetPixel Lib "gdi32" Alias "SetPixelV" (ByVal hdc As Long, ByVal x As Long, ByVal Y As Long, ByVal crColor As Long) As Long
Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long
Private Const COLOR_BTNFACE = 15
Private Const COLOR_BTNSHADOW = 16
Private Const COLOR_BTNTEXT = 18
Private Const COLOR_BTNHIGHLIGHT = 20
Private Const COLOR_BTNDKSHADOW = 21
Private Const COLOR_BTNLIGHT = 22

Private Declare Function SetTextColor Lib "gdi32" (ByVal hdc As Long, ByVal crColor 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 Const DT_LEFT = &H0
Private Const DT_CENTERABS = &H65

Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function FillRect Lib "user32" (ByVal hdc As Long, lpRect As RECT, ByVal hBrush As Long) As Long
Private Declare Function FrameRect Lib "user32" (ByVal hdc As Long, lpRect As RECT, ByVal hBrush As Long) As Long
Private Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As Long

Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long

Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal Y As Long, lpPoint As POINTAPI) As Long
Private Declare Function LineTo Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal Y As Long) As Long

Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long
Private Const RGN_DIFF = 4

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

Private Type POINTAPI
        x As Long
        Y As Long
End Type

Public Enum ButtonTypes
    [Windows 16-bit] = 1    'the old-fashioned Win16 button
    [Windows 32-bit] = 2    'the classic windows button
    [Windows XP] = 3        'the new brand XP button totally owner-drawn
    [Mac] = 4               'i suppose it looks exactly as a Mac button... i took the style from a GetRight skin!!!
    [Java metal] = 5        'there are also other styles but not so different from windows one
    [Netscape 6] = 6        'this is the button displayed in web-pages, it also appears in some java apps
    [Simple Flat] = 7       'the standard flat button seen on toolbars
End Enum

Public Enum ColorTypes
    [Use Windows] = 1
    [Custom] = 2
    [Force Standard] = 3
End Enum

'events
Public Event Click()
Public Event MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
Public Event MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Public Event MouseUp(Button As Integer, Shift As Integer, x As Single, Y As Single)
Public Event KeyPress(KeyAscii As Integer)
Public Event KeyDown(KeyCode As Integer, Shift As Integer)
Public Event KeyUp(KeyCode As Integer, Shift As Integer)

'variables
Private MyButtonType As ButtonTypes
Private MyColorType As ColorTypes

Private He As Long  'the height of the button
Private Wi As Long  'the width of the button

Private BackC As Long 'back color
Private ForeC As Long 'fore color

Private elTex As String     'current text
Private TextFont As StdFont 'current font

Private rc As RECT, rc2 As RECT, rc3 As RECT
Private rgnNorm As Long

Private LastButton As Byte, LastKeyDown As Byte
Private isEnabled As Boolean
Private hasFocus As Boolean, showFocusR As Boolean

Private cFace As Long, cLight As Long, cHighLight As Long, cShadow As Long, cDarkShadow As Long, cText As Long

Private lastStat As Byte, TE As String 'used to avoid unnecessary repaints

Private Sub UserControl_AccessKeyPress(KeyAscii As Integer)
    Call UserControl_Click
End Sub

Private Sub UserControl_AmbientChanged(PropertyName As String)
Call Redraw(lastStat, True)
End Sub

Private Sub UserControl_Click()
If (LastButton = 1) And (isEnabled = True) Then
    Call Redraw(0, True) 'be sure that the normal status is drawn
    UserControl.Refresh
    RaiseEvent Click
End If
End Sub

Private Sub UserControl_DblClick()
If LastButton = 1 Then
    Call UserControl_MouseDown(1, 1, 1, 1)
End If
End Sub

Private Sub UserControl_GotFocus()
hasFocus = True
Call Redraw(lastStat, True)
End Sub

Private Sub UserControl_KeyDown(KeyCode As Integer, Shift As Integer)
RaiseEvent KeyDown(KeyCode, Shift)

LastKeyDown = KeyCode
If KeyCode = 32 Then 'spacebar pressed
    Call UserControl_MouseDown(1, 1, 1, 1)
ElseIf (KeyCode = 39) Or (KeyCode = 40) Then 'right and down arrows
    SendKeys "{Tab}"
ElseIf (KeyCode = 37) Or (KeyCode = 38) Then 'left and up arrows
    SendKeys "+{Tab}"
End If
End Sub

Private Sub UserControl_KeyPress(KeyAscii As Integer)
RaiseEvent KeyPress(KeyAscii)
End Sub

Private Sub UserControl_KeyUp(KeyCode As Integer, Shift As Integer)
RaiseEvent KeyUp(KeyCode, Shift)

If (KeyCode = 32) And (LastKeyDown = 32) Then 'spacebar pressed
    Call UserControl_MouseUp(1, 1, 1, 1)
    LastButton = 1
    Call UserControl_Click
End If
End Sub

Private Sub UserControl_LostFocus()
hasFocus = False
Call Redraw(lastStat, True)
End Sub

Private Sub UserControl_Initialize()
LastButton = 1
rc2.left = 2: rc2.Top = 2
Call SetColors
End Sub

Private Sub UserControl_InitProperties()
    isEnabled = True
    showFocusR = True
    Set TextFont = UserControl.font
    MyButtonType = [Windows 32-bit]
    MyColorType = [Use Windows]
    BackC = GetSysColor(COLOR_BTNFACE)
    ForeC = GetSysColor(COLOR_BTNTEXT)
End Sub

Private Sub UserControl_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
LastButton = Button
If Button <> 2 Then Call Redraw(2, False)
RaiseEvent MouseDown(Button, Shift, x, Y)
End Sub

Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
If Button < 2 Then
    If x < 0 Or Y < 0 Or x > Wi Or Y > He Then
        'we are outside the button
        Call Redraw(0, False)
    Else
        'we are inside the button
        If Button = 1 Then Call Redraw(2, False)
    End If
End If
RaiseEvent MouseMove(Button, Shift, x, Y)
End Sub

Private Sub UserControl_MouseUp(Button As Integer, Shift As Integer, x As Single, Y As Single)
If Button <> 2 Then Call Redraw(0, False)
RaiseEvent MouseUp(Button, Shift, x, Y)
End Sub

'########## BUTTON PROPERTIES ##########
Public Property Get BackColor() As OLE_COLOR
BackColor = BackC
End Property
Public Property Let BackColor(ByVal theCol As OLE_COLOR)
BackC = theCol
Call SetColors
Call Redraw(lastStat, True)
PropertyChanged "BCOL"
End Property

Public Property Get ForeColor() As OLE_COLOR
ForeColor = ForeC
End Property
Public Property Let ForeColor(ByVal theCol As OLE_COLOR)
ForeC = theCol
Call SetColors
Call Redraw(lastStat, True)
PropertyChanged "FCOL"
End Property

Public Property Get ButtonType() As ButtonTypes
ButtonType = MyButtonType
End Property

Public Property Let ButtonType(ByVal newValue As ButtonTypes)
MyButtonType = newValue
Call UserControl_Resize
Call Redraw(0, True)
PropertyChanged "BTYPE"
End Property

Public Property Get Caption() As String
Caption = elTex
End Property

Public Property Let Caption(ByVal newValue As String)
elTex = newValue
Call SetAccessKeys
Call Redraw(0, True)
PropertyChanged "TX"
End Property

Public Property Get Enabled() As Boolean
Enabled = isEnabled
End Property

Public Property Let Enabled(ByVal newValue As Boolean)
isEnabled = newValue
Call Redraw(0, True)
UserControl.Enabled = isEnabled
PropertyChanged "ENAB"
End Property

Public Property Get font() As font
Set font = TextFont
End Property

Public Property Set font(ByRef newFont As font)
Set TextFont = newFont
Set UserControl.font = TextFont
Call Redraw(0, True)
PropertyChanged "FONT"
End Property

'is very common that a windows user uses custom color
'schemes to view his/her desktop, and is also very
'common that this color scheme has weird colors that
'would alter the nice look of my buttons.
'So if you want to force the button to use the windows
'standard colors you may change this property to "Force Standard"

'UPDATE!!!
'you may now use your custom colors to display the button!!!

Public Property Get ColorScheme() As ColorTypes
ColorScheme = MyColorType
End Property

Public Property Let ColorScheme(ByVal newValue As ColorTypes)
MyColorType = newValue
Call SetColors
Call Redraw(0, True)
PropertyChanged "COLTYPE"
End Property

Public Property Get ShowFocusRect() As Boolean
ShowFocusRect = showFocusR
End Property

Public Property Let ShowFocusRect(ByVal newValue As Boolean)
showFocusR = newValue
Call Redraw(lastStat, True)
PropertyChanged "FOCUSR"
End Property


Public Property Get hWnd() As Long
    hWnd = UserControl.hWnd
End Property

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产盗摄精品一区二区三区在线 | 成人福利视频在线看| 国产91对白在线观看九色| 在线成人av网站| 天堂成人国产精品一区| 欧美一区二区在线看| 日本不卡在线视频| 欧美变态tickle挠乳网站| 免费一级片91| 欧美精品一区在线观看| 国产经典欧美精品| 亚洲精品成人悠悠色影视| 日本高清不卡aⅴ免费网站| 亚洲欧美乱综合| 色综合天天性综合| 亚洲黄色录像片| 欧美一区在线视频| 国产一区久久久| 亚洲一区二区三区视频在线| 欧美日韩国产bt| 久久精品国产99| 国产偷国产偷精品高清尤物 | 一本一道波多野结衣一区二区| 亚洲乱码国产乱码精品精98午夜| 在线观看亚洲成人| 麻豆成人久久精品二区三区红| 亚洲精品在线电影| thepron国产精品| 男人的天堂久久精品| 久久久亚洲综合| 国产福利一区二区三区| 亚洲靠逼com| 久久蜜臀中文字幕| 91精品国产综合久久香蕉麻豆| 国产精品77777| 免费在线欧美视频| 亚洲精品中文字幕在线观看| 久久一区二区视频| 欧美日韩国产天堂| 91小视频在线观看| 99久久精品费精品国产一区二区| 日韩电影在线免费看| 一区二区激情小说| 中文字幕亚洲区| 国产欧美精品一区二区色综合 | 五月婷婷激情综合| 曰韩精品一区二区| 一区二区在线观看免费 | 波多野结衣中文一区| 国产激情91久久精品导航| 精品系列免费在线观看| 六月丁香综合在线视频| 免费一级片91| 韩国在线一区二区| 成人国产一区二区三区精品| 国产成人自拍网| 成人精品小蝌蚪| 99久久99久久久精品齐齐| 99久久久久久99| 欧美日韩日本视频| 欧美电视剧免费观看| 国产亚洲综合性久久久影院| 国产精品的网站| 日韩有码一区二区三区| 国产成人免费在线视频| 日本韩国视频一区二区| 日韩你懂的电影在线观看| 国产婷婷一区二区| 亚洲第一狼人社区| 国产白丝网站精品污在线入口| 99久久伊人网影院| 欧美日韩激情一区二区三区| 久久噜噜亚洲综合| 日韩二区三区四区| 在线观看亚洲a| 最新热久久免费视频| 免费三级欧美电影| 9久草视频在线视频精品| 欧美tickling挠脚心丨vk| 一区二区三区欧美亚洲| 国产.精品.日韩.另类.中文.在线.播放| a4yy欧美一区二区三区| 2023国产精华国产精品| 肉色丝袜一区二区| 欧美日韩一区二区三区视频| 国产精品久久久久久亚洲毛片 | 4438x成人网最大色成网站| 国产欧美一区二区在线| 国产黄色成人av| 欧美极品美女视频| 成人免费三级在线| 中文字幕乱码日本亚洲一区二区| 精品一区二区三区的国产在线播放| 精品视频123区在线观看| 亚洲国产精品久久一线不卡| 欧美视频一区二区在线观看| 亚洲午夜精品在线| 日韩一区国产二区欧美三区| 奇米在线7777在线精品 | 亚洲一区在线看| 日韩一级片在线观看| 久久精品国产99久久6| 久久午夜羞羞影院免费观看| 国产一区二区免费在线| 中文子幕无线码一区tr| 一本一道综合狠狠老| 日韩不卡免费视频| 国产精品久久久一本精品 | 一区二区三区中文字幕在线观看| 91偷拍与自偷拍精品| 日日噜噜夜夜狠狠视频欧美人 | 国产成人精品免费网站| 亚洲精品欧美激情| 精品剧情在线观看| 91蜜桃免费观看视频| 日本vs亚洲vs韩国一区三区| 国产亚洲精品bt天堂精选| 国产欧美一区二区在线观看| 国产一区二区三区在线观看精品| 色婷婷综合激情| 久久精品夜夜夜夜久久| 日韩成人伦理电影在线观看| 精品午夜久久福利影院| 久久久精品tv| 精品久久人人做人人爱| 国产精品入口麻豆九色| 欧美疯狂做受xxxx富婆| 成人av高清在线| 国产成人激情av| 国产剧情一区二区| 男女视频一区二区| 日日摸夜夜添夜夜添亚洲女人| 亚洲天堂2014| 欧美国产一区视频在线观看| 日韩一级二级三级精品视频| 成人动漫中文字幕| 免费在线看成人av| 最新久久zyz资源站| 国产欧美一区二区三区沐欲 | 91视频91自| 91理论电影在线观看| 一本大道av一区二区在线播放| 成人听书哪个软件好| 国产成人一区二区精品非洲| 国产裸体歌舞团一区二区| 国产在线观看免费一区| 国产一区在线不卡| www.亚洲色图| 欧美喷水一区二区| 精品91自产拍在线观看一区| 欧美xxxxxxxxx| 中文字幕综合网| 日韩高清一级片| 成人三级伦理片| 欧美在线观看18| 日韩欧美一级二级| 国产精品电影一区二区| 亚洲婷婷在线视频| 久久精品国产网站| 91国偷自产一区二区使用方法| 精品污污网站免费看| 国产三级久久久| 亚洲精品中文在线观看| 麻豆成人在线观看| 欧美日韩一区中文字幕| www日韩大片| 香蕉成人伊视频在线观看| 成人av在线播放网站| 欧美精品一区二区在线观看| 成人欧美一区二区三区小说| 国产一二三精品| 日韩欧美高清在线| 亚洲第一综合色| 欧美日韩国产大片| 亚洲自拍欧美精品| 在线观看亚洲一区| 一区二区三区四区视频精品免费| 国产在线精品不卡| 久久综合色播五月| 韩国精品久久久| 欧美精品一区二区在线播放| 日本中文在线一区| 99精品国产视频| 国产情人综合久久777777| 蜜桃视频在线一区| 欧美精品一区二区在线播放| 麻豆国产91在线播放| 日韩免费观看高清完整版| 免费欧美在线视频| 精品福利一区二区三区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 依依成人精品视频| 色诱视频网站一区| 亚洲第四色夜色| 欧美一级日韩一级| 国精品**一区二区三区在线蜜桃| 欧美va亚洲va香蕉在线| kk眼镜猥琐国模调教系列一区二区| 综合精品久久久| 在线成人av网站|