File tree Expand file tree Collapse file tree 8 files changed +35
-14
lines changed Expand file tree Collapse file tree 8 files changed +35
-14
lines changed Original file line number Diff line number Diff line change @@ -3341,7 +3341,8 @@ VOID PhDrawProcessIcon(
3341
3341
hdc ,
3342
3342
rect .left ,
3343
3343
rect .top ,
3344
- ILD_NORMAL | ILD_TRANSPARENT
3344
+ ILD_NORMAL | ILD_TRANSPARENT ,
3345
+ FALSE
3345
3346
);
3346
3347
}
3347
3348
}
@@ -3355,7 +3356,8 @@ VOID PhDrawProcessIcon(
3355
3356
hdc ,
3356
3357
rect .left ,
3357
3358
rect .top ,
3358
- ILD_NORMAL | ILD_TRANSPARENT
3359
+ ILD_NORMAL | ILD_TRANSPARENT ,
3360
+ FALSE
3359
3361
);
3360
3362
}
3361
3363
}
Original file line number Diff line number Diff line change @@ -2892,7 +2892,8 @@ INT_PTR CALLBACK PhpRunFileWndProc(
2892
2892
customDraw -> hdc ,
2893
2893
customDraw -> rc .left ,
2894
2894
customDraw -> rc .top + 1 , // offset
2895
- ILD_TRANSPARENT
2895
+ ILD_TRANSPARENT ,
2896
+ FALSE
2896
2897
);
2897
2898
2898
2899
SetWindowLongPtr (hwndDlg , DWLP_MSGRESULT , CDRF_SKIPDEFAULT );
Original file line number Diff line number Diff line change @@ -326,7 +326,8 @@ VOID PhpSearchDrawButton(
326
326
Hdc ,
327
327
ButtonRect .left + 1 , // offset
328
328
ButtonRect .top ,
329
- ILD_TRANSPARENT
329
+ ILD_TRANSPARENT ,
330
+ FALSE
330
331
);
331
332
}
332
333
else
@@ -337,7 +338,8 @@ VOID PhpSearchDrawButton(
337
338
Hdc ,
338
339
ButtonRect .left + 2 , // offset
339
340
ButtonRect .top + 1 , // offset
340
- ILD_TRANSPARENT
341
+ ILD_TRANSPARENT ,
342
+ FALSE
341
343
);
342
344
}
343
345
}
Original file line number Diff line number Diff line change @@ -2377,7 +2377,8 @@ BOOLEAN PhImageListDrawIcon(
2377
2377
_In_ HDC Hdc ,
2378
2378
_In_ INT x ,
2379
2379
_In_ INT y ,
2380
- _In_ UINT Style
2380
+ _In_ UINT Style ,
2381
+ _In_ BOOLEAN Disabled
2381
2382
)
2382
2383
{
2383
2384
return PhImageListDrawEx (
@@ -2390,7 +2391,8 @@ BOOLEAN PhImageListDrawIcon(
2390
2391
0 ,
2391
2392
CLR_DEFAULT ,
2392
2393
CLR_DEFAULT ,
2393
- Style
2394
+ Style ,
2395
+ Disabled ? ILS_SATURATE : ILS_NORMAL
2394
2396
);
2395
2397
}
2396
2398
@@ -2404,7 +2406,8 @@ BOOLEAN PhImageListDrawEx(
2404
2406
_In_ INT dy ,
2405
2407
_In_ COLORREF BackColor ,
2406
2408
_In_ COLORREF ForeColor ,
2407
- _In_ UINT Style
2409
+ _In_ UINT Style ,
2410
+ _In_ DWORD State
2408
2411
)
2409
2412
{
2410
2413
IMAGELISTDRAWPARAMS imagelistDraw ;
@@ -2421,6 +2424,7 @@ BOOLEAN PhImageListDrawEx(
2421
2424
imagelistDraw .rgbBk = BackColor ;
2422
2425
imagelistDraw .rgbFg = ForeColor ;
2423
2426
imagelistDraw .fStyle = Style ;
2427
+ imagelistDraw .fState = State ;
2424
2428
2425
2429
return SUCCEEDED (IImageList2_Draw ((IImageList2 * )ImageListHandle , & imagelistDraw ));
2426
2430
}
Original file line number Diff line number Diff line change @@ -1061,7 +1061,8 @@ PhImageListDrawIcon(
1061
1061
_In_ HDC Hdc ,
1062
1062
_In_ INT x ,
1063
1063
_In_ INT y ,
1064
- _In_ UINT Style
1064
+ _In_ UINT Style ,
1065
+ _In_ BOOLEAN Disabled
1065
1066
);
1066
1067
1067
1068
PHLIBAPI
@@ -1077,7 +1078,8 @@ PhImageListDrawEx(
1077
1078
_In_ INT dy ,
1078
1079
_In_ COLORREF BackColor ,
1079
1080
_In_ COLORREF ForeColor ,
1080
- _In_ UINT Style
1081
+ _In_ UINT Style ,
1082
+ _In_ DWORD State
1081
1083
);
1082
1084
1083
1085
#define PH_DRAW_TIMELINE_OVERFLOW 0x1
Original file line number Diff line number Diff line change @@ -1752,6 +1752,12 @@ LRESULT CALLBACK PhThemeWindowDrawToolbar(
1752
1752
DrawInfo -> nmcd .dwItemSpec ,
1753
1753
0
1754
1754
) == 0 ;
1755
+ BOOLEAN isEnabled = SendMessage (
1756
+ DrawInfo -> nmcd .hdr .hwndFrom ,
1757
+ TB_ISBUTTONENABLED ,
1758
+ DrawInfo -> nmcd .dwItemSpec ,
1759
+ 0
1760
+ ) != 0 ;
1755
1761
1756
1762
if (SendMessage (
1757
1763
DrawInfo -> nmcd .hdr .hwndFrom ,
@@ -1878,7 +1884,8 @@ LRESULT CALLBACK PhThemeWindowDrawToolbar(
1878
1884
DrawInfo -> nmcd .hdc ,
1879
1885
x ,
1880
1886
y ,
1881
- ILD_NORMAL
1887
+ ILD_NORMAL ,
1888
+ !isEnabled
1882
1889
);
1883
1890
}
1884
1891
}
Original file line number Diff line number Diff line change @@ -5704,7 +5704,8 @@ VOID PhTnpDrawCell(
5704
5704
SmallIconHeight ,
5705
5705
CLR_DEFAULT ,
5706
5706
CLR_NONE ,
5707
- ILD_NORMAL | ILD_TRANSPARENT
5707
+ ILD_NORMAL | ILD_TRANSPARENT ,
5708
+ ILS_NORMAL
5708
5709
);
5709
5710
5710
5711
textRect .left += SmallIconWidth + TNP_ICON_RIGHT_PADDING ;
Original file line number Diff line number Diff line change @@ -495,7 +495,8 @@ VOID PhpSearchDrawButton(
495
495
Hdc ,
496
496
ButtonRect .left + 1 , // offset
497
497
ButtonRect .top ,
498
- ILD_TRANSPARENT
498
+ ILD_TRANSPARENT ,
499
+ FALSE
499
500
);
500
501
}
501
502
else
@@ -506,7 +507,8 @@ VOID PhpSearchDrawButton(
506
507
Hdc ,
507
508
ButtonRect .left + 2 , // offset
508
509
ButtonRect .top + 1 , // offset
509
- ILD_TRANSPARENT
510
+ ILD_TRANSPARENT ,
511
+ FALSE
510
512
);
511
513
}
512
514
}
You can’t perform that action at this time.
0 commit comments