加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gdipForm.bi 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Cm Wang 提交于 2024-01-26 15:16 . Happy Dragon Year and New Year
' Trans Form 透明窗口
' Copyright (c) 2024 CM.Wang
' Freeware. Use at your own risk.
#include once "win\GdiPlus.bi"
'建立gdip透明窗口
Type gdipForm
'UpdateLayeredWindow
hScrDC As HDC
hMemDC As HDC
hOldDC As HDC
ULWpptDst As Point
ULWpsize As tagSIZE
ULWpptSrc As Point
ULWcrKey As COLORREF
ULWpblend As BLENDFUNCTION
bmHeader As BITMAPINFO
hHBitmap As HBITMAP
mBitmap As GpBitmap Ptr
mImage As GpImage Ptr
sHeight As Single
sWidth As Single
mGraphics As GpGraphics Ptr
mEnabled As Boolean
mHandle As HWND
mBackColor As ARGB = &hFF808080
Declare Constructor
Declare Destructor
Declare Sub Create(Handle As HWND, Img As GpImage Ptr)
Declare Sub DrawImage(sImg As GpImage Ptr, sX As Single = 0, sY As Single = 0)
Declare Sub Initial()
Declare Sub Release()
Declare Property Enabled() As Boolean
Declare Property Enabled(val As Boolean)
Declare Property Graphic() As GpGraphics Ptr
Declare Sub Transform(ByVal Alpha As Integer = 255)
End Type
#ifndef __USE_MAKE__
#include once "gdipForm.bas"
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化