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

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

?? morphlcd.ctl

?? 串口通訊。上位機(jī)實(shí)例.提供了良好的界面。對(duì)初學(xué)者很有參考性
?? CTL
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
VERSION 5.00
Begin VB.UserControl MorphDisplay 
   AutoRedraw      =   -1  'True
   ClientHeight    =   675
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   2565
   ScaleHeight     =   45
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   171
   ToolboxBitmap   =   "MorphLCD.ctx":0000
End
Attribute VB_Name = "MorphDisplay"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'*************************************************************************
'* MorphDisplay v1.00 - Ownerdrawn digital display user control.         *
'* Written January, 2006, by Matthew R. Usner for Planet Source Code.    *
'*************************************************************************
'* MorphDisplay is a digital display control that uses techniques that I *
'* learned by studying LaVolpe's "Shaped Regions" submission (PSC, at    *
'* txtCodeId=58562).  Other open source LCD/LED display controls I have  *
'* found at PSC or other sites depend on basic drawing techniques like   *
'* "Line" or shuffle bitmaps of LEDs around to achieve their goal.  This *
'* control uses shaped regions to form hexagonal, trapezoidal or rect-   *
'* angular digit segments.  Control can be used for calculator displays, *
'* displaying time, or as a simple counter.  Just about every conceivable*
'* aspect of this control can be customized via a multitude of proper-   *
'* ties.  Main and exponent digits separately configurable.  Properties  *
'* for segment height and width, intersegment gap, and interdigit gap    *
'* allow you to size, position and space digits exactly the way you want.*
'* Support for thousands separator and decimal separator.  Thousands and *
'* decimal separators can be defined as a comma or period so that inter- *
'* national standards can be maintained.  Thousands grouping can also be *
'* adjusted according to international preference.  Background bitmap    *
'* can be tiled or stretched.  All colors are also fully user-definable. *
'* Negative numbers can be displayed in a different color than positive. *
'* Corners can be individually rounded for a different look.  A simulated*
'* digit burn-in display mode is also available if desired.  A Filament  *
'* option allows digits to be displayed as wireframed, rather than solid.*
'* Digit segments can be displayed in a 3D gradient form if desired.     *
'* The .ShowExponent property allows you to disable exponent display if  *
'* you wish to use this as a simple counter.  Six basic themes are incl- *
'* uded that show various display styles. Since there's ~40 properties   *
'* that make up one theme, it is a real good idea to make a theme out of *
'* a combination of properties that works in a particular application.   *
'*************************************************************************
'* Legal:  Redistribution of this code, whole or in part, as source code *
'* or in binary form, alone or as part of a larger distribution or prod- *
'* uct, is forbidden for any commercial or for-profit use without the    *
'* author's explicit written permission.                                 *
'*                                                                       *
'* Non-commercial redistribution of this code, as source code or in      *
'* binary form, with or without modification, is permitted provided that *
'* the following conditions are met:                                     *
'*                                                                       *
'* Redistributions of source code must include this list of conditions,  *
'* and the following acknowledgment:                                     *
'*                                                                       *
'* This code was developed by Matthew R. Usner.                          *
'* Source code, written in Visual Basic 6.0, is freely available for     *
'* noncommercial, nonprofit use.                                         *
'*                                                                       *
'* Redistributions in binary form, as part of a larger project, must     *
'* include the above acknowledgment in the end-user documentation.       *
'* Alternatively, the above acknowledgment may appear in the software    *
'* itself, if and where such third-party acknowledgments normally appear.*
'*************************************************************************
'* Credits and Thanks:                                                   *
'* LaVolpe, for inspiring this control with his "Shaped Regions" project.*
'* Carles P.V., for the gradient, bitmap tiling, and corner rounding.    *
'* Redbird77, for code examination and optimization.                     *
'*************************************************************************

Option Explicit

' declares for creating, selecting, coloring and destroying the shaped LCD segment regions.
Private Declare Function CreatePolygonRgn Lib "gdi32.dll" (ByRef lpPoint As POINTAPI, ByVal nCount As Long, ByVal nPolyFillMode 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 CreateSolidBrush Lib "gdi32.dll" (ByVal crColor As Long) As Long
Private Declare Function DeleteObject Lib "gdi32.dll" (ByVal hObject As Long) As Long
Private Declare Function FillRgn Lib "gdi32.dll" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long) As Long
Private Declare Function FrameRgn Lib "gdi32.dll" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function GetRgnBox Lib "gdi32" (ByVal hRgn As Long, lpRect As RECT) As Long
Private Declare Function OffsetRgn Lib "gdi32.dll" (ByVal hRgn As Long, ByVal X As Long, ByVal Y As Long) As Long
Private Declare Function SelectClipRgn Lib "gdi32" (ByVal hdc As Long, ByVal hRgn As Long) As Long

' other graphics api declares.
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function CombineRgn Lib "gdi32.dll" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) 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 CreateDCAsNull Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, lpDeviceName As Any, lpOutput As Any, lpInitData As Any) As Long
Private Declare Function CreateDIBPatternBrushPt Lib "gdi32" (lpPackedDIB As Any, ByVal iUsage As Long) As Long
Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc 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 GetDIBits Lib "gdi32" (ByVal aHDC As Long, ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long, lpBits As Any, lpBI As BITMAPINFOHEADER, ByVal wUsage As Long) As Long
Private Declare Function GetObject Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Private Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Private Declare Function GetObjectType Lib "gdi32" (ByVal hgdiobj As Long) As Long
Private Declare Function OleTranslateColor Lib "olepro32.dll" (ByVal OLE_COLOR As Long, ByVal hPalette As Long, pccolorref As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function SetBrushOrgEx Lib "gdi32" (ByVal hdc As Long, ByVal nXOrg As Long, ByVal nYOrg As Long, lppt As POINTAPI) As Long
Private Declare Function SetRect Lib "user32" (lpRect As RECT, ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 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 Declare Function StretchDIBits Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal SrcX As Long, ByVal SrcY As Long, ByVal wSrcWidth As Long, ByVal wSrcHeight As Long, lpBits As Any, lpBitsInfo As Any, ByVal wUsage As Long, ByVal dwRop As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef lpDest As Any, ByRef lpSource As Any, ByVal iLen As Long)
Private Declare Sub FillMemory Lib "kernel32.dll" Alias "RtlFillMemory" (Destination As Any, ByVal Length As Long, ByVal Fill As Byte)

'  for separator and colon positioning.
Private Type POINTAPI
   X                            As Long
   Y                            As Long
End Type

'  declares for gradient painting and bitmap tiling.
Private Type BITMAPINFOHEADER
   biSize                       As Long
   biWidth                      As Long
   biHeight                     As Long
   biPlanes                     As Integer
   biBitCount                   As Integer
   biCompression                As Long
   biSizeImage                  As Long
   biXPelsPerMeter              As Long
   biYPelsPerMeter              As Long
   biClrUsed                    As Long
   biClrImportant               As Long
End Type

Private Type BITMAP
   bmType                       As Long
   bmWidth                      As Long
   bmHeight                     As Long
   bmWidthBytes                 As Long
   bmPlanes                     As Integer
   bmBitsPixel                  As Integer
   bmBits                       As Long
End Type

Private Const DIB_RGB_COLORS    As Long = 0                 ' also used in gradient generation.
Private Const OBJ_BITMAP        As Long = 7                 ' used to determine if picture is a bitmap.
Private m_hBrush                As Long                     ' pattern brush for bitmap tiling.

'  used to define various graphics areas.
Private Type RECT
   Left                         As Long
   Top                          As Long
   Right                        As Long
   Bottom                       As Long
End Type

'  gradient generation constants.
Private Const RGN_DIFF          As Long = 4
Private Const PI                As Single = 3.14159265358979
Private Const TO_DEG            As Single = 180 / PI
Private Const TO_RAD            As Single = PI / 180
Private Const INT_ROT           As Long = 1000

'  gradient information for background.
Private BGuBIH                  As BITMAPINFOHEADER
Private BGlBits()               As Long

'  gradient information for segments.
Private SegVuBIH                  As BITMAPINFOHEADER
Private SegVlBits()               As Long

Private SegHuBIH                  As BITMAPINFOHEADER
Private SegHlBits()               As Long

Private SegVExpuBIH               As BITMAPINFOHEADER
Private SegVExplBits()            As Long

Private SegHExpuBIH               As BITMAPINFOHEADER
Private SegHExplBits()            As Long

' enum tied to .Theme property.
Public Enum LCDThemeOptions
   [None] = 0
   [LED Hex Small] = 1
   [LED Hex Medium] = 2
   [LCD Trap Small] = 3
   [LCD Trap Medium] = 4
   [Rectangular Medium] = 5
   [Rectangular Small] = 6
End Enum

' enum tied to .ThousandsSeparator and .DecimalSeparator properties.
Public Enum SeparatorOptions
   [Comma] = 0
   [Period] = 1
End Enum

' enum tied to .SegmentStyle and .SegmentStyleExp properties.
Public Enum SegmentStyleOptions
   [Hexagonal] = 0
   [Trapezoidal] = 1
   [Rectangular] = 2
End Enum

' enum tied to .SegmentFillStyle property.
Public Enum SegmentFillStyleOptions
   [Filament] = 0
   [Solid] = 1
   [Gradient] = 2
   [Framed Gradient] = 3
End Enum

'  enum tied to .PictureMode property.
Public Enum LCDPicModeOptions
   [Normal] = 0
   [Stretch] = 1
   [Tiled] = 2
End Enum

' holds all segment region pointers for hexagonal/trapezoidal/rectangular LCD display segment types.
Private LCDSegment(0 To 9)      As Long
Private LCDSegmentExp(0 To 9)   As Long

' pointers to the segment currently being created or displayed.
Private Const VERTICAL_HEXAGONAL_SEGMENT              As Long = 0
Private Const HORIZONTAL_HEXAGONAL_SEGMENT            As Long = 1
Private Const HORIZONTAL_DOWNWARD_TRAPEZOIDAL_SEGMENT As Long = 2
Private Const VERTICAL_LEFTWARD_TRAPEZOIDAL_SEGMENT   As Long = 3
Private Const HORIZONTAL_UPWARD_TRAPEZOIDAL_SEGMENT   As Long = 4
Private Const VERTICAL_RIGHTWARD_TRAPEZOIDAL_SEGMENT  As Long = 5
Private Const VERTICAL_RECTANGULAR_SEGMENT            As Long = 6
Private Const HORIZONTAL_RECTANGULAR_SEGMENT          As Long = 7
Private Const DECIMAL_SEPARATOR_SEGMENT               As Long = 8
Private Const THOUSANDS_SEPARATOR_SEGMENT             As Long = 9

' pointers to which LCD digit type we're currently manipulating.
Private Const MAINVALUE         As Long = 0
Private Const EXPONENT          As Long = 1

' segment lit status constants.
Private Const SEGMENT_LIT       As String = "1"
Private Const SEGMENT_UNLIT     As String = "0"

' used by the DisplayValue routine to determine whether value should
' be fully redisplayed (as when property is changed in design mode).
Private Const FORCE_REDRAW_YES  As Boolean = True
Private Const FORCE_REDRAW_NO   As Boolean = False

Private LCDLitColorBrush        As Long                     '  color brush for lit segments.
Private LCDBurnInColorBrush     As Long                     '  color brush for 'burn-in' segments.
Private LCDLitColorBrushNeg     As Long                     '  for when value is negative.
Private LCDBurnInColorBrushNeg  As Long                     '  for when value is negative.
Private CurrentLitColorBrush    As Long                     '  which lit segment brush we're currently using.
Private CurrentBurnInColorBrush As Long                     '  which 'burn-in' brush we're currently using.

'  holds binary string patterns indicating which segments to "light up".
'  0-9, unlit segment, minus sign and hex A-F.  18 patterns total.
Private DisplayPattern(0 To 17) As String

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区视频在线| 日韩成人免费电影| 国产精品自拍三区| 欧美电影免费观看完整版| 亚洲国产综合视频在线观看| 91免费国产在线| 亚洲欧美另类在线| 91在线云播放| 一区二区三区av电影| 欧美网站大全在线观看| 亚洲影视在线观看| 国产人成亚洲第一网站在线播放| 国产一区在线观看麻豆| 国产日产欧产精品推荐色| 欧美卡1卡2卡| 美女爽到高潮91| 国产午夜精品一区二区三区四区| 懂色一区二区三区免费观看 | 成人性生交大片免费看中文 | 亚洲一区二区免费视频| 国产精品污网站| 色婷婷国产精品综合在线观看| 亚洲精选在线视频| 欧美日韩成人在线| 国内精品国产成人| 亚洲乱码国产乱码精品精可以看| 久久久久亚洲蜜桃| 色欧美片视频在线观看在线视频| 国产成人精品免费视频网站| 亚洲视频一二三| 欧美日韩高清一区| 欧美日韩三级视频| 国产一区二区三区免费在线观看| 日本欧美一区二区三区乱码| 亚洲午夜免费电影| 亚洲一二三四在线| 一区二区三区精品视频在线| 亚洲欧美激情一区二区| 国产精品久久久久桃色tv| 欧美日韩另类一区| 欧美亚洲综合另类| 欧美亚洲动漫精品| 精品污污网站免费看| 欧美日韩国产综合视频在线观看| 在线精品视频一区二区三四| 国产一区视频网站| 国产真实乱子伦精品视频| 精品在线亚洲视频| 亚洲午夜精品一区二区三区他趣| 亚洲精品国产第一综合99久久| 亚洲色图第一区| 一区二区三区四区亚洲| 亚洲一区二区三区国产| 午夜伊人狠狠久久| 亚洲色图色小说| 亚洲一区二区在线免费看| 亚洲超碰97人人做人人爱| 欧美日韩久久不卡| 美腿丝袜亚洲一区| 亚洲精品一区二区三区蜜桃下载| 韩国欧美国产1区| 国精品**一区二区三区在线蜜桃| 国产伦理精品不卡| www.欧美.com| 国产伦精品一区二区三区在线观看 | 日韩午夜在线影院| 欧美怡红院视频| 欧美日韩国产免费| 精品国产电影一区二区| 国产欧美一区二区精品性色超碰| 中文字幕一区二区在线播放| 久久久精品国产免大香伊| 欧美国产日韩在线观看| 精品国产91乱码一区二区三区 | 国产欧美一区二区三区网站| 自拍视频在线观看一区二区| 亚洲第一主播视频| 精品午夜久久福利影院 | 一区二区三区欧美| 日本伊人色综合网| 国产成人免费9x9x人网站视频| 不卡一区二区三区四区| 激情综合色综合久久| 成人免费毛片a| 欧美日韩夫妻久久| 国产欧美视频一区二区三区| 夜夜精品浪潮av一区二区三区| 蜜臀av性久久久久av蜜臀妖精| 国产精品一二三| 91福利在线导航| 欧美三级乱人伦电影| 精品国产青草久久久久福利| 中文字幕在线一区| 六月丁香综合在线视频| 卡一卡二国产精品 | 91麻豆自制传媒国产之光| 欧美电影影音先锋| 国产精品免费视频网站| 日韩一区精品视频| 麻豆精品在线看| 色狠狠桃花综合| 久久久影视传媒| 日韩在线a电影| 色婷婷综合久色| 国产精品自在在线| 在线亚洲免费视频| 久久无码av三级| 精品乱码亚洲一区二区不卡| 精品久久久网站| 亚洲亚洲人成综合网络| 国产成人a级片| 精品久久国产字幕高潮| 亚洲成人三级小说| 色哟哟国产精品| 国产女人aaa级久久久级| 麻豆91精品视频| 欧美日韩精品福利| 亚洲摸摸操操av| 成人性生交大片免费| 精品sm捆绑视频| 日本美女一区二区三区| 欧美在线999| 亚洲欧美日韩中文字幕一区二区三区| 国产精品一区二区果冻传媒| 日韩欧美另类在线| 日韩国产一二三区| 欧美专区亚洲专区| 亚洲精品国产精品乱码不99| 高清久久久久久| 国产欧美日韩在线观看| 国产一区 二区 三区一级| 精品国产一区二区三区久久久蜜月| 五月婷婷久久丁香| 国产传媒日韩欧美成人| 精品99久久久久久| 国产一区二区在线影院| 久久综合九色综合欧美98| 麻豆91小视频| 精品sm捆绑视频| 国产一区二区视频在线| 2021中文字幕一区亚洲| 激情深爱一区二区| 久久久99精品免费观看不卡| 国产一区二区伦理| 久久精品一区蜜桃臀影院| 国产河南妇女毛片精品久久久| 亚洲精品一区二区三区四区高清| 国产资源在线一区| 久久久午夜精品理论片中文字幕| 国产高清精品网站| 欧美激情一区二区在线| 不卡在线观看av| 亚洲欧美欧美一区二区三区| 欧美主播一区二区三区| 视频一区二区三区中文字幕| 日韩欧美在线一区二区三区| 久久99日本精品| 国产欧美日韩在线看| a美女胸又www黄视频久久| 樱花影视一区二区| 欧美日韩久久久一区| 久久超碰97中文字幕| 国产日韩欧美精品电影三级在线| av一二三不卡影片| 亚洲午夜精品网| 精品免费一区二区三区| 国产成人精品亚洲777人妖| 亚洲日本电影在线| 欧美人动与zoxxxx乱| 国产综合色视频| 国产精品久久久久永久免费观看| 在线看日韩精品电影| 麻豆成人久久精品二区三区红 | 在线免费观看不卡av| 免费在线看一区| 91麻豆精品国产无毒不卡在线观看| 亚洲视频免费在线观看| 欧美美女一区二区在线观看| 国产酒店精品激情| 亚洲最大成人网4388xx| 日韩精品一区二区三区在线观看| 成人av在线网站| 天天色天天爱天天射综合| 久久久久高清精品| 欧美性大战久久久久久久蜜臀 | 国产精品麻豆久久久| 欧美日韩国产小视频在线观看| 国产一区二区三区综合| 一区二区三区在线观看视频| 精品剧情在线观看| 色94色欧美sute亚洲线路一久| 久久精品国产秦先生| 亚洲啪啪综合av一区二区三区| 欧美一级高清片| 91蝌蚪porny九色| 国产乱对白刺激视频不卡| 亚洲国产成人91porn| 国产精品护士白丝一区av| 日韩无一区二区| 欧美性高清videossexo|