use RGBA_xxx instead of COLOR_xxxx

This commit is contained in:
Vincent Wei
2020-02-11 21:20:18 +08:00
parent 53033675ad
commit 46d30558b1
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -92,13 +92,13 @@ StaticControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
/* DK[01/11/10]: For bug 4336 */
switch (pCtrl->dwStyle & SS_TYPEMASK) {
case SS_GRAYRECT:
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_lightgray);
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_lightgray);
break;
case SS_BLACKRECT:
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_black);
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_black);
break;
case SS_WHITERECT:
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_lightwhite);
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_lightwhite);
break;
default:
break;
+1 -1
View File
@@ -109,7 +109,7 @@ static LRESULT AboutWinProc (HWND hWnd, UINT message,
rcClient.bottom -= 50;
rcClient.left = 10;
rcClient.right -= 10;
SetTextColor (hdc, DWORD2Pixel (hdc, COLOR_black));
SetTextColor (hdc, DWORD2Pixel (hdc, RGBA_black));
SetBkMode (hdc, BM_TRANSPARENT);
DrawText (hdc,
"MiniGUI -- a mature cross-platform windowing system "