point

OnMessage(0x201,"wm_Lbuttondown")
SplashImage ,% "HBITMAP:" CreateColoredBitmap(20, 20, 0xe81010),B M x100 y300 W20 H20 , , , TipImage_1

wm_Lbuttondown( p_w, p_l, p_m, p_hw){
	if WinExist("TipImage_1"){
		;MsgBox ,窗口TipImage_1
	}
	PostMessage, 0xA1, 2
}

CreateColoredBitmap(width, height, color) {
	hBitmap := CreateDIBSections(width, -height,, pBits)
	Loop % height {
		i := A_Index - 1
		Loop % width
			NumPut(color, pBits + width*4*i + (A_Index - 1)*4, "UInt")
	}
	Return hBitmap
}

CreateDIBSections(w, h, bpp := 32, ByRef ppvBits := 0)
{
	hdc := DllCall("GetDC", "Ptr", 0, "Ptr")
	VarSetCapacity(bi, 40, 0)
	NumPut( 40, bi,  0, "UInt")
	NumPut(  w, bi,  4, "UInt")
	NumPut(  h, bi,  8, "UInt")
	NumPut(  1, bi, 12, "UShort")
	NumPut(  0, bi, 16, "UInt")
	NumPut(bpp, bi, 14, "UShort")
	hbm := DllCall("CreateDIBSection", "Ptr", hdc, "Ptr", &bi, "UInt", 0, "PtrP", ppvBits, "Ptr", 0, "UInt", 0, "Ptr")
	DllCall("ReleaseDC", "Ptr", 0, "Ptr", hdc)
	return hbm
}

给TA捐赠
共{{data.count}}人
人已捐赠
其他

mode ahk

2021-12-2 15:23:54

其他

QQ当前聊天显示

2021-12-2 15:24:06

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索