...
This commit is contained in:
parent
935cdaf178
commit
c830d2cc7d
|
@ -1268,14 +1268,14 @@ LRESULT CustomDraw (LPARAM lParam)
|
||||||
lplvcd->clrTextBk = RGB(248, 248, 255);
|
lplvcd->clrTextBk = RGB(248, 248, 255);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
lplvcd->clrTextBk = RGB(216, 203, 253); break;
|
lplvcd->clrTextBk = CHEAT_1BYTE_BG; break;
|
||||||
case 2:
|
case 2:
|
||||||
lplvcd->clrTextBk = RGB(195, 186, 253); break;
|
lplvcd->clrTextBk = CHEAT_2BYTE_BG; break;
|
||||||
case 3:
|
case 3:
|
||||||
lplvcd->clrTextBk = RGB(176, 139, 252); break;
|
lplvcd->clrTextBk = CHEAT_3BYTE_BG; break;
|
||||||
case 4:
|
case 4:
|
||||||
lplvcd->clrTextBk = RGB(175, 94, 253);
|
lplvcd->clrTextBk = CHEAT_4BYTE_BG;
|
||||||
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
|
lplvcd->clrText = CHEAT_4BYTE_TEXT; break; // use a more visual color in dark background
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!IsSatisfied(lplvcd->nmcd.dwItemSpec))
|
if(!IsSatisfied(lplvcd->nmcd.dwItemSpec))
|
||||||
|
|
|
@ -37,4 +37,10 @@ extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
|
||||||
// static int CALLBACK RamSearchItemSortFunc(LPARAM lp1, LPARAM lp2, LPARAM lpSort);
|
// static int CALLBACK RamSearchItemSortFunc(LPARAM lp1, LPARAM lp2, LPARAM lpSort);
|
||||||
// extern void UpdateSortColumnIcon(HWND hwndListView, int sortColumn, bool sortAsc);
|
// extern void UpdateSortColumnIcon(HWND hwndListView, int sortColumn, bool sortAsc);
|
||||||
|
|
||||||
|
#define CHEAT_1BYTE_BG RGB(216, 203, 253)
|
||||||
|
#define CHEAT_2BYTE_BG RGB(195, 186, 253)
|
||||||
|
#define CHEAT_3BYTE_BG RGB(176, 139, 252)
|
||||||
|
#define CHEAT_4BYTE_BG RGB(175, 94, 253)
|
||||||
|
#define CHEAT_4BYTE_TEXT RGB(255, 255, 255)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1219,14 +1219,14 @@ INT_PTR CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_DODEFAULT);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_DODEFAULT);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case 1:
|
case 1:
|
||||||
lplvcd->clrTextBk = RGB(216, 203, 253); break;
|
lplvcd->clrTextBk = CHEAT_1BYTE_BG; break;
|
||||||
case 2:
|
case 2:
|
||||||
lplvcd->clrTextBk = RGB(195, 186, 253); break;
|
lplvcd->clrTextBk = CHEAT_2BYTE_BG; break;
|
||||||
case 3:
|
case 3:
|
||||||
lplvcd->clrTextBk = RGB(176, 139, 252); break;
|
lplvcd->clrTextBk = CHEAT_3BYTE_BG; break;
|
||||||
case 4:
|
case 4:
|
||||||
lplvcd->clrTextBk = RGB(175, 94, 253);
|
lplvcd->clrTextBk = CHEAT_4BYTE_BG;
|
||||||
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
|
lplvcd->clrText = CHEAT_4BYTE_TEXT; break; // use a more visual color in dark background
|
||||||
}
|
}
|
||||||
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NEWFONT);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NEWFONT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue