Skip to content

Commit a4ca434

Browse files
committed
Fixed an issue where the button appeared smaller than the default button, despite having the same size values.
1 parent cb06489 commit a4ca434

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ColorButton.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ class _BtnColor extends Gui.Button
198198
*/
199199
SetBackColor(btnBgColor, colorBehindBtn?, roundedCorner?, showFocusedBorder := true)
200200
{
201-
static BS_FLAT := 0x8000
202201
static BS_BITMAP := 0x0080
202+
static BS_FLAT := 0x8000
203203
static IS_WIN11 := (VerCompare(A_OSVersion, "10.0.22200") >= 0)
204-
static WM_CTLCOLORBTN := 0x0135
205204
static NM_CUSTOMDRAW := -12
205+
static WM_CTLCOLORBTN := 0x0135
206206
static WM_DESTROY := 0x0002
207-
static WS_EX_COMPOSITED := 0x02000000
208207
static WS_CLIPSIBLINGS := 0x04000000
208+
static WS_EX_COMPOSITED := 0x02000000
209209
static BTN_STYLE := (WS_CLIPSIBLINGS | BS_FLAT | BS_BITMAP)
210210

211211
clr := IsNumber(btnBgColor) ? btnBgColor : ColorHex(btnBgColor)

0 commit comments

Comments
 (0)