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

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

?? modbitmap.bas

?? ktv場所的包房開房、迎賓、預定管理系統。
?? BAS
?? 第 1 頁 / 共 3 頁
字號:
Public Const ENHMETA_SIGNATURE = &H20454D46

' Constants - PICTDESC.picType
Public Const PICTYPE_UNINITIALIZED = -1 ' The picture object is currently uninitialized.
Public Const PICTYPE_NONE = 0           ' A new picture object is to be created without an initialized state. This value is valid only in the PICTDESC structure.
Public Const PICTYPE_BITMAP = 1         ' The picture type is a bitmap. When this value occurs in the PICTDESC structure, it means that the bmp field of that structure contains the relevant initialization parameters.
Public Const PICTYPE_METAFILE = 2       ' The picture type is a metafile. When this value occurs in the PICTDESC structure, it means that the wmf field of that structure contains the relevant initialization parameters.
Public Const PICTYPE_ICON = 3           ' The picture type is an icon. When this value occurs in the PICTDESC structure, it means that the icon field of that structure contains the relevant initialization parameters.
Public Const PICTYPE_ENHMETAFILE = 4    ' The picture type is a Win32-enhanced metafile. When this value occurs in the PICTDESC structure, it means that the emf field of that structure contains the relevant initialization parameters.

' Constants - GetDeviceCaps.nIndex
Public Const HORZSIZE = 4    ' Width, in millimeters, of the physical screen.
Public Const VERTSIZE = 6    ' Height, in millimeters, of the physical screen.
Public Const HORZRES = 8     ' Width, in pixels, of the screen.
Public Const VERTRES = 10    ' Height, in raster lines, of the screen.
Public Const BITSPIXEL = 12  ' Number of adjacent color bits for each pixel.

' Constants - OleCreateBitmapIndiect (Return Values)
Public Const S_OK = 0                   ' The new picture object was created successfully.
Public Const E_NOINTERFACE = &H80004002 ' The object does not support the interface specified in riid.
Public Const E_POINTER = &H80004003     ' The address in pPictDesc or ppvObj is not valid. For example, it may be NULL.
Public Const E_INVALIDARG = &H80000003  ' One or more arguments are invalid
Public Const E_OUTOFMEMORY = &H8007000E ' Ran out of memory
Public Const E_UNEXPECTED = &H8000FFFF  ' Catastrophic failure

' Constants - GetCurrentObject.uObjectType
Public Const OBJ_BITMAP = 7      ' Returns the current selected bitmap
Public Const OBJ_BRUSH = 2       ' Returns the current selected brush
Public Const OBJ_COLORSPACE = 14 ' Returns the current color space
Public Const OBJ_FONT = 6        ' Returns the current selected font
Public Const OBJ_PAL = 5         ' Returns the current selected pal
Public Const OBJ_PEN = 1         ' Returns the current selected pen

' Constants - CopyImage.fuFlags
Public Const LR_COPYDELETEORG = &H8       ' Deletes the original image after creating the copy.
Public Const LR_COPYFROMRESOURCE = &H4000 ' Tries to reload an icon or cursor resource from the original resource file rather than simply copying the current image. This is useful for creating a different-sized copy when the resource file contains multiple sizes of the resource. Without this flag, CopyImage stretches the original image to the new size. If this flag is set, CopyImage uses the size in the resource file closest to the desired size.  This will succeed only if hImage was loaded by LoadIcon or LoadCursor, or by LoadImage with the LR_SHARED flag.
Public Const LR_COPYRETURNORG = &H4       ' Returns the original hImage if it satisfies the criteria for the copy梩hat is, correct dimensions and color depth梚n which case the LR_COPYDELETEORG flag is ignored. If this flag is not specified, a new object is always created.
Public Const LR_CREATEDIBSECTION = &H2000 ' If this is set and a new bitmap is created, the bitmap is created as a DIB section. Otherwise, the bitmap image is created as a device-dependent bitmap. This flag is only valid if uType is IMAGE_BITMAP.
Public Const LR_MONOCHROME = &H1          ' Creates a new monochrome image.

' Constants - RedrawWindow.fuRedraw
Public Const RDW_ERASE = &H4
Public Const RDW_FRAME = &H400
Public Const RDW_INTERNALPAINT = &H2
Public Const RDW_INVALIDATE = &H1
Public Const RDW_NOERASE = &H20
Public Const RDW_NOFRAME = &H800
Public Const RDW_NOINTERNALPAINT = &H10
Public Const RDW_VALIDATE = &H8
Public Const RDW_ERASENOW = &H200
Public Const RDW_UPDATENOW = &H100
Public Const RDW_ALLCHILDREN = &H80
Public Const RDW_NOCHILDREN = &H40

' Constants - DrawIconEx.diFlags
Public Const DI_MASK = &H1        ' Performs the raster operation specified by ropMask.
Public Const DI_IMAGE = &H2       ' Performs the raster operation specified by ropImage.
Public Const DI_NORMAL = &H3      ' Combination of DI_IMAGE and DI_MASK.
Public Const DI_COMPAT = &H4      ' Draws the icon or cursor using the system default image rather than the user-specified image.
Public Const DI_DEFAULTSIZE = &H8 ' Draws the icon or cursor using the width and height specified by the system metric values for cursors or icons, if the cxWidth and cyWidth parameters are set to zero. If this flag is not specified and cxWidth and cyWidth are set to zero, the function uses the actual resource size.

' Constants - SetStretchBltMode.iStretchMode
Public Const BLACKONWHITE = 1                   ' Performs a Boolean AND operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels.
Public Const WHITEONBLACK = 2                   ' Performs a Boolean OR operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels.
Public Const COLORONCOLOR = 3                   ' Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.
Public Const HALFTONE = 4                       ' Maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels. After setting the HALFTONE stretching mode, an application must call the SetBrushOrgEx function to set the brush origin. If it fails to do so, brush misalignment occurs.
Public Const MAXSTRETCHBLTMODE = 4              ' (undocumented)
Public Const STRETCH_ANDSCANS = BLACKONWHITE    ' Same as BLACKONWHITE.
Public Const STRETCH_ORSCANS = WHITEONBLACK     ' Same as WHITEONBLACK.
Public Const STRETCH_DELETESCANS = COLORONCOLOR ' Same as COLORONCOLOR.
Public Const STRETCH_HALFTONE = HALFTONE        ' Same as HALFTONE.

' Win32 Function Declarations
Public Declare Function BitBlt Lib "GDI32" (ByVal hDC_Destination As Long, ByVal X_Dest As Long, ByVal Y_Dest As Long, ByVal Width_Dest As Long, ByVal Height_Dest As Long, ByVal hDC_Source As Long, ByVal X_Src As Long, ByVal Y_Src As Long, ByVal RasterOperation As Long) As Long
Public Declare Function CopyCursor Lib "user32" (ByVal pCursor As Long) As Long
Public Declare Function CopyImage Lib "user32" (ByVal hImage As Long, ByVal uType As Long, ByVal OutputWidth As Long, ByVal OutputHeight As Long, ByVal fuFlags As Long) As Long
Public Declare Function CopyIcon Lib "user32" (ByVal hIcon As Long) As Long
Public Declare Function CreateBitmap Lib "GDI32" (ByVal nWidth As Long, ByVal nHeight As Long, ByVal cPlanes As Long, ByVal cBitsPerPel As Long, ByRef lpvBits As Any) As Long
Public Declare Function CreateCompatibleBitmap Lib "GDI32" (ByVal hDC As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Public Declare Function CreateCompatibleDC Lib "GDI32" (ByVal hDC As Long) As Long
Public Declare Function CreateIconIndirect Lib "user32" (ByRef pICONINFO As ICONINFO) As Long
Public Declare Function DeleteDC Lib "GDI32" (ByVal hDC As Long) As Long
Public Declare Function DeleteObject Lib "GDI32" (ByVal hGDIObj As Long) As Long
Public Declare Function DestroyIcon Lib "user32" (ByVal hIcon As Long) As Long
Public Declare Function DrawIconEx Lib "user32" (ByVal hDC As Long, ByVal X As Long, ByVal Y As Long, ByVal hIcon As Long, ByVal IconWidth As Long, ByVal IconHeight As Long, ByVal AniFrameIndex As Long, ByVal hbrFlickerFreeDraw As Long, ByVal diFlags As Long) As Long
Public Declare Function GetCurrentObject Lib "GDI32" (ByVal hDC As Long, ByVal uObjectType As Long) As Long
Public Declare Function GetDC Lib "user32" (ByVal hWnd As Long) As Long
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetDeviceCaps Lib "GDI32" (ByVal hDC As Long, ByVal nIndex As Long) As Long
Public Declare Function GetEnhMetaFileHeader Lib "GDI32" (ByVal hEnhancedMetafile As Long, ByVal BufferSize As Long, ByRef lpEMH As ENHMETAHEADER) As Long
Public Declare Function GetIconInfo Lib "user32" (ByVal hIcon As Long, ByRef pICONINFO As ICONINFO) As Long
Public Declare Function GetMapMode Lib "GDI32" (ByVal hDC As Long) As Long
Public Declare Function GetObjectAPI Lib "GDI32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Public Declare Function GetPixel Lib "GDI32" (ByVal hDC As Long, ByVal XPos As Long, ByVal nYPos As Long) As Long
Public Declare Function OleCreatePictureIndirect Lib "OLEPRO32.DLL" (ByRef PicDesc As Any, ByRef RefIID As GUID, ByVal fPictureOwnsHandle As Long, ByRef IPic As StdPicture) As Long 'As IPicture) As Long
Public Declare Function OleTranslateColor Lib "OLEPRO32.DLL" (ByVal OLE_COLOR As Long, ByVal hPALETTE As Long, pColorRef As Long) As Long
Public Declare Function RedrawWindow Lib "user32" (ByVal hWnd As Long, lprcUpdate As Any, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long
Public Declare Function ReleaseDC Lib "user32" (ByVal hWnd As Long, ByVal hDC As Long) As Long
Public Declare Function SelectObject Lib "GDI32" (ByVal hDC As Long, ByVal hGDIObj As Long) As Long
Public Declare Function SetBkColor Lib "GDI32" (ByVal hDC As Long, ByVal crColor As Long) As Long
Public Declare Function SetMapMode Lib "GDI32" (ByVal hDC As Long, ByVal nMapMode As Long) As Long
Public Declare Function SetPixel Lib "GDI32" (ByVal hDC As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
Public Declare Function SetStretchBltMode Lib "GDI32" (ByVal hDC As Long, ByVal iStretchMode As Long) As Long
Public Declare Function StretchBlt Lib "GDI32" (ByVal hDC_Destination As Long, ByVal X_Dest As Long, ByVal Y_Dest As Long, ByVal New_Width As Long, ByVal New_Height As Long, ByVal hDC_Source As Long, ByVal X_Src As Long, ByVal Y_Src As Long, ByVal Orig_Width As Long, ByVal Orig_Height As Long, ByVal RasterOperation As Long) As Long


'========================================================================================================
'
' Convert_HM_PX
'
' When dealing with the "Picture" property of VB objects such as PictureBox or Form, or StdPicture
' objects, the Height & Width properties of such is not measured in Pixels or Twips... but in something
' called "HiMetric".  This function takes the height and width measurements of a picture in HiMetric
' and converts it to Pixels so that it can be used with standard Win32 API calls, or with VB objects

' that have their "ScaleMode" property set to "vbPixels"
'
' NOTE - You can also use the "GetBitmapInfo" function to get the height and/or width of a picture
' in pixels.
'
' Parameter:              Use:
' --------------------------------------------------
' InputHeight             Optional. Specifies the height of the picture in HiMetric
' InputWidth              Optional. Specifies the width of the picture in HiMetric
' OutputHeight            Optional. Returns the height of the picture in Pixels (if InputHeight is valid)
' OutputWidth             Optional. Returns the width of the picture in Pixels (if InputWidth is valid)
' VB_Picture              Optional. If set to TRUE, the calculation used to get the desired return value
'                         uses the Screen.TwipsPerPixel properties to get the TwipsPerPixel instead of
'                         using a more accurate calculation of TwipsPerPixel.  The return value is correct
'                         for use with the Picture property of VB objects like PictureBox, & StdPicture.
'                         If set to FALSE, the calculation used to get the desired return value uses a
'                         calculation to get and use a more accurate measurement of the TwipsPerPixel.
'                         This is more accurate for use with Win32 API calls.
'
' Return:
' -------
' If the function succeeds, the return is TRUE
' If the function fails, the return is FALSE
'
' --------------------------------------------------
' These type definitions were taken from OCIDL.H
' --------------------------------------------------
' typedef LONG OLE_XPOS_HIMETRIC;
' typedef LONG OLE_YPOS_HIMETRIC;
' typedef LONG OLE_XSIZE_HIMETRIC;
' typedef LONG OLE_YSIZE_HIMETRIC;
'
'========================================================================================================
Public Function Convert_HM_PX(Optional ByVal InputHeight As Long, _
                              Optional ByVal InputWidth As Long, _
                              Optional ByRef OutputHeight As Long, _
                              Optional ByRef OutputWidth As Long, _
                              Optional ByVal VB_Picture As Boolean = True) As Boolean
On Error Resume Next
  
  Dim TwipsX As Single
  Dim TwipsY As Single
  
  ' Reset the return values
  OutputHeight = 0
  OutputWidth = 0
  
  ' Make sure the parameters passed are valid
  If InputHeight = 0 And InputWidth = 0 Then Exit Function
  
  ' If the user specifies to do the convertion for a Visual Basic Picture, use the
  ' "Screen" object to get the approximate TwipsPerPixel
  If VB_Picture = True Then
    OutputWidth = CLng(((InputWidth / 2540) * 1440) / Screen.TwipsPerPixelX)
    OutputHeight = CLng(((InputHeight / 2540) * 1440) / Screen.TwipsPerPixelY)
    
  ' If the user doesn't specify to do the convertion for a Visual Basic Picture, assume
  ' it's for a Win32 API call and calculate the exact TwipsPerPixel to be more accurate
  Else
    If GetDisplayInfo(, , TwipsX, TwipsY) = False Then Exit Function
    OutputWidth = CLng((InputWidth / 2540 * 1440) / TwipsX)
    OutputHeight = CLng((InputHeight / 2540 * 1440) / TwipsY)
  End If
  
  ' Function succeeded
  Convert_HM_PX = True
  
End Function


'========================================================================================================
'
' Convert_PX_HM
'
' When dealing with the "Picture" property of VB objects such as PictureBox or Form, or StdPicture
' objects, the Height & Width properties of such is not measured in Pixels or Twips... but in something
' called "HiMetric".  This function takes the height and width measurements of a picture in Pixels
' and converts it to HiMetric so that it can be used with VB calls, etc.
'
' NOTE - When the "VB_Picture" parameter is set to FALSE, the return values of this function are VERY
' close, but not exact because of how the calculations and number rounding works.  To see this effect,
' use the Convert_HM_PX function to take the height/width of a picture and convert them to pixels...
' then take the return values from that and use this function to convert them back to their original
' HiMetrics measurement.  The results will be very close, but not exact.  This shouldn't be a problem
' because I would think it would be a rare thing that you'd want to convert Pixels to HiMetric (I even
' considered leaving this function out of the module).
'
' Parameter:              Use:
' --------------------------------------------------
' InputHeight             Optional. Specifies the height of the picture in Pixels
' InputWidth              Optional. Specifies the width of the picture in Pixels
' OutputHeight            Optional. Returns the height of the picture in HiMetric (if InputHeight is valid)
' OutputWidth             Optional. Returns the width of the picture in HiMetric (if InputWidth is valid)
' VB_Picture              Optional. If set to TRUE, the calculation used to get the desired return value
'                         uses the Screen.TwipsPerPixel properties to get the TwipsPerPixel instead of
'                         using a more accurate calculation of TwipsPerPixel.  The return value is correct
'                         for use with the Picture property of VB objects like PictureBox, & StdPicture.
'                         If set to FALSE, the calculation used to get the desired return value uses a
'                         calculation to get and use a more accurate measurement of the TwipsPerPixel.
'                         This is more accurate for use with Win32 API calls.
'
' Return:
' -------
' If the function succeeds, the return is TRUE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩一区二区| 亚洲成av人综合在线观看| 欧洲国内综合视频| 国产伦理精品不卡| 亚洲国产sm捆绑调教视频| 日本一区二区视频在线观看| 337p亚洲精品色噜噜噜| 91在线免费看| 九九热在线视频观看这里只有精品 | 狠狠色丁香久久婷婷综| 亚洲蜜桃精久久久久久久| 久久久久久黄色| 91精品麻豆日日躁夜夜躁| 色婷婷av一区二区三区之一色屋| 国产麻豆日韩欧美久久| 视频一区视频二区中文| 亚洲欧美另类久久久精品2019| 精品久久久三级丝袜| 欧美伦理电影网| 91免费看视频| 国产成人鲁色资源国产91色综 | 成人午夜碰碰视频| 免费久久精品视频| 香蕉av福利精品导航| 亚洲男女毛片无遮挡| 国产精品丝袜久久久久久app| 精品盗摄一区二区三区| 91精品综合久久久久久| 欧美三级一区二区| 欧美性极品少妇| 99久久久久久99| 91香蕉视频污在线| 99久久精品情趣| 99久久精品费精品国产一区二区| 国产一区二三区好的| 国产一区二区三区免费在线观看| 久久99九九99精品| 石原莉奈在线亚洲二区| 亚洲6080在线| 婷婷丁香久久五月婷婷| 日本欧美久久久久免费播放网| 亚洲成a人片综合在线| 亚洲成a人片综合在线| 五月天网站亚洲| 日本一道高清亚洲日美韩| 婷婷久久综合九色综合伊人色| 午夜a成v人精品| 日本亚洲电影天堂| 精品一区二区三区在线视频| 国产一区二区三区四区五区美女 | 欧美r级电影在线观看| 日韩一级高清毛片| 欧美v日韩v国产v| 久久久亚洲综合| 国产精品久线观看视频| 亚洲男人的天堂在线观看| 亚洲一区二区三区免费视频| 天天影视色香欲综合网老头| 久久99久久精品| 国产成人自拍网| 91污片在线观看| 91精选在线观看| 久久久久久久久岛国免费| 国产精品无人区| 国产欧美日韩视频在线观看| 国产精品高清亚洲| 亚洲va欧美va国产va天堂影院| 亚洲电影一区二区三区| 精品国产乱码久久久久久图片| 精品久久久久久最新网址| 久久久久久久网| 亚洲精品国久久99热| 亚洲欧美激情视频在线观看一区二区三区| 亚洲欧美日韩国产综合| 天天色 色综合| 国产精品资源站在线| 色综合久久综合| 91精品国产91综合久久蜜臀| 国产亚洲综合在线| 国产精品毛片大码女人| 亚欧色一区w666天堂| 国产在线不卡一区| 91久久精品网| 久久久久99精品国产片| 亚洲在线一区二区三区| 国产一区二区在线观看免费| 在线观看视频欧美| 久久久噜噜噜久久人人看| 亚洲国产日韩a在线播放性色| 精品一区二区av| 色婷婷狠狠综合| 久久久久国产精品麻豆ai换脸| 亚洲午夜精品一区二区三区他趣| 激情深爱一区二区| 欧美日韩黄色一区二区| 国产三级欧美三级| 日韩国产欧美视频| 色婷婷国产精品| 国产日韩一级二级三级| 日日欢夜夜爽一区| 91麻豆国产在线观看| 久久先锋影音av| 亚洲国产日韩综合久久精品| 99久久综合精品| 欧美精品一区二区三区久久久 | 欧美性大战久久久| 久久网站最新地址| 午夜在线成人av| 国产91精品精华液一区二区三区 | 国产真实乱子伦精品视频| 色综合激情五月| 欧美韩日一区二区三区四区| 蜜桃视频在线观看一区二区| 在线中文字幕一区| 国产精品国产三级国产aⅴ原创| 日本人妖一区二区| 91行情网站电视在线观看高清版| 国产日韩欧美亚洲| 激情久久五月天| 欧美一级二级三级乱码| 亚洲mv在线观看| 99精品久久只有精品| 国产精品色婷婷| 国产精品88888| 久久久亚洲精品石原莉奈| 青娱乐精品在线视频| 欧美日韩在线不卡| 亚洲午夜在线电影| 欧美在线观看视频一区二区| 中文字幕日韩一区| 成人国产视频在线观看| 久久久亚洲精品一区二区三区| 黄网站免费久久| 亚洲精品在线三区| 麻豆精品视频在线观看视频| 欧美一级免费大片| 蜜乳av一区二区三区| 日韩亚洲欧美一区二区三区| 蜜桃久久精品一区二区| 欧美一区午夜视频在线观看| 免费久久99精品国产| 日韩精品影音先锋| 国产一区二区成人久久免费影院| 久久综合九色综合97婷婷| 蜜臀久久久久久久| 久久久三级国产网站| 成人中文字幕在线| 亚洲欧洲性图库| 91蜜桃视频在线| 一区二区三区中文在线观看| 欧美性videosxxxxx| 日韩综合小视频| 日韩亚洲欧美中文三级| 国产伦精品一区二区三区在线观看| 欧美极品少妇xxxxⅹ高跟鞋| av一区二区三区四区| 一区二区三区欧美在线观看| 欧美色图第一页| 美女一区二区视频| 久久久99久久| 91福利在线播放| 日本aⅴ免费视频一区二区三区| 久久综合一区二区| www.亚洲色图| 婷婷激情综合网| 精品sm在线观看| av在线不卡网| 日韩精品一级二级| 欧美激情一区二区| 欧美在线播放高清精品| 精一区二区三区| 国产精品夫妻自拍| 欧美伦理影视网| 国产成人欧美日韩在线电影| 一区二区三区欧美久久| 欧美成人精精品一区二区频| 精彩视频一区二区三区| 老司机精品视频一区二区三区| 久久人人超碰精品| 成+人+亚洲+综合天堂| 午夜视频一区在线观看| 国产欧美日韩三级| 欧美人与禽zozo性伦| 国产乱码精品一区二区三区忘忧草 | 亚洲国产欧美一区二区三区丁香婷| 欧美另类videos死尸| 成人影视亚洲图片在线| 亚洲国产精品久久久男人的天堂| 久久青草国产手机看片福利盒子| 在线精品亚洲一区二区不卡| 极品少妇xxxx偷拍精品少妇| 一区二区三区四区av| 欧美不卡视频一区| 91精品办公室少妇高潮对白| 狠狠狠色丁香婷婷综合久久五月| 亚洲伦理在线精品| 久久久久久久网| 欧美一级夜夜爽| 欧美午夜精品一区二区三区 | 欧美日韩精品免费|