亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产不卡视频在线播放| 国产亚洲精品中文字幕| 亚洲国产欧美在线人成| 欧美日韩亚洲国产综合| 日韩在线一二三区| 精品国产乱码久久久久久蜜臀| 久久99精品国产麻豆婷婷| 26uuuu精品一区二区| 成人国产电影网| 亚洲一区二区在线免费观看视频| 欧美日韩极品在线观看一区| 美国一区二区三区在线播放| 久久精品日产第一区二区三区高清版| 成人做爰69片免费看网站| 亚洲三级在线看| 欧美一区二区视频在线观看| 国产成人av资源| 亚洲成人资源在线| 久久综合色一综合色88| 99久久婷婷国产综合精品| 亚洲电影激情视频网站| 精品国产免费视频| 色哟哟精品一区| 捆绑紧缚一区二区三区视频| 中文乱码免费一区二区| 欧美蜜桃一区二区三区| 国产精品1区二区.| 亚洲成人先锋电影| 国产拍揄自揄精品视频麻豆| 欧美日韩另类国产亚洲欧美一级| 国产原创一区二区三区| 亚洲一二三四在线观看| 国产午夜一区二区三区| 欧美色视频在线| 国产成人在线视频网站| 日韩av在线发布| 亚洲精品老司机| 日本一区二区三区免费乱视频 | 国产精品一区二区久激情瑜伽 | 亚洲国产精品久久艾草纯爱| 久久精品欧美一区二区三区不卡| 欧美在线观看一二区| 大尺度一区二区| 久久电影国产免费久久电影| 亚洲激情图片小说视频| 国产欧美日韩综合精品一区二区| 欧美人妖巨大在线| 91视频在线观看| 国产成人精品一区二区三区网站观看 | 亚洲欧洲成人av每日更新| 欧美电视剧在线看免费| 欧美亚洲动漫制服丝袜| av激情成人网| 国产精品99久久不卡二区| 日韩电影在线一区| 亚洲电影中文字幕在线观看| 亚洲区小说区图片区qvod| 国产亚洲人成网站| www亚洲一区| 日韩欧美国产电影| 日韩欧美一级二级| 欧美伦理影视网| 在线不卡欧美精品一区二区三区| 在线视频国内自拍亚洲视频| 成人精品免费看| 成人午夜激情片| 成人黄色一级视频| 成人一区二区三区在线观看| 国产精品一区专区| 国产福利一区在线| 国产精品123区| 国产酒店精品激情| 久久97超碰色| 国内久久精品视频| 国产精品一色哟哟哟| 国产精品夜夜爽| 岛国精品一区二区| 91在线观看一区二区| 91麻豆国产香蕉久久精品| 99re成人精品视频| 色综合久久九月婷婷色综合| 91啪九色porn原创视频在线观看| 色综合久久久久久久久久久| 色欧美88888久久久久久影院| 99国产一区二区三精品乱码| 91视频在线观看免费| 91国产视频在线观看| 欧美日韩国产精品自在自线| 3d成人动漫网站| 日韩免费高清电影| 国产欧美综合色| 亚洲男人天堂av网| 三级一区在线视频先锋 | 国产另类ts人妖一区二区| 国v精品久久久网| 91网上在线视频| 欧美美女一区二区| 精品精品欲导航| 日韩一区在线免费观看| 亚洲国产视频网站| 久久精品国产精品亚洲精品| 国产精华液一区二区三区| 99久久精品久久久久久清纯| 在线视频中文字幕一区二区| 欧美一级在线免费| 欧美经典三级视频一区二区三区| 亚洲精品免费电影| 久久精品国内一区二区三区| 成人福利视频在线| 91精品国产综合久久久蜜臀粉嫩| 久久综合久久久久88| 亚洲欧美综合网| 蜜桃视频在线一区| 色老汉av一区二区三区| 欧美少妇bbb| 1区2区3区精品视频| 亚洲国产wwwccc36天堂| 91在线观看视频| 韩国理伦片一区二区三区在线播放| 亚洲亚洲精品在线观看| 国产一区二区三区电影在线观看| 色综合久久综合网97色综合| 日韩欧美二区三区| 亚洲精品视频在线看| 精品一区二区三区香蕉蜜桃| 91一区二区在线| 精品第一国产综合精品aⅴ| 亚洲一线二线三线视频| 国产成人欧美日韩在线电影| 欧美日韩免费视频| 久久久国际精品| 五月婷婷综合在线| 91碰在线视频| 中文字幕av一区二区三区免费看 | 国内外成人在线| 在线观看亚洲成人| 中文字幕av资源一区| 九九精品一区二区| 欧美日韩国产一级| 亚洲乱码国产乱码精品精小说| 国产一区二区三区观看| 日韩欧美在线影院| 亚洲自拍偷拍av| 一本到一区二区三区| 国产喂奶挤奶一区二区三区| 久久99精品久久久久久动态图| 欧美日韩黄色一区二区| 樱花草国产18久久久久| 成人av在线一区二区| 国产偷v国产偷v亚洲高清| 韩国一区二区三区| 精品欧美久久久| 美女高潮久久久| 日韩视频一区二区| 日韩精品91亚洲二区在线观看| 欧美日韩另类一区| 性做久久久久久免费观看| 欧美三级电影在线观看| 亚洲一区二区三区小说| 欧美熟乱第一页| 亚洲一区二区三区精品在线| 欧美在线不卡视频| 亚洲123区在线观看| 欧美亚洲综合另类| 亚洲成人免费影院| 91精品欧美福利在线观看| 日韩黄色小视频| 日韩午夜在线播放| 国产专区欧美精品| 国产午夜精品久久久久久久| 国产suv精品一区二区6| 欧美韩国一区二区| 91视频你懂的| 亚洲在线免费播放| 欧美一区二区三区系列电影| 日本大胆欧美人术艺术动态| 欧美一级一区二区| 激情小说亚洲一区| 国产片一区二区三区| 91在线云播放| 亚洲高清免费观看 | 国产婷婷精品av在线| 国产·精品毛片| 亚洲精品国产无套在线观| 91免费国产视频网站| 午夜国产精品一区| 久久网这里都是精品| 99这里只有精品| 午夜精品免费在线观看| 精品久久五月天| 99久久久国产精品免费蜜臀| 亚洲一区二区欧美| 精品国产制服丝袜高跟| 国产91精品久久久久久久网曝门| ...中文天堂在线一区| 在线播放中文字幕一区| 国产一区三区三区| 亚洲女女做受ⅹxx高潮| 91精品国产综合久久久久| 国产成人免费视频 |