mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 11:07:54 +08:00
use RGBA_xxx instead of COLOR_xxxx
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ void OnModeDrawText (HDC hdc)
|
|||||||
rc3.left = 0; rc3.top = 361; rc3.right = 401; rc3.bottom = 451;
|
rc3.left = 0; rc3.top = 361; rc3.right = 401; rc3.bottom = 451;
|
||||||
rc4.left = 0; rc4.top = 461; rc4.right = 401; rc4.bottom = 551;
|
rc4.left = 0; rc4.top = 461; rc4.right = 401; rc4.bottom = 551;
|
||||||
|
|
||||||
SetBkColor (hdc, DWORD2Pixel (hdc, COLOR_lightwhite));
|
SetBkColor (hdc, DWORD2Pixel (hdc, RGBA_lightwhite));
|
||||||
|
|
||||||
Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);
|
Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);
|
||||||
Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);
|
Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);
|
||||||
|
|||||||
@@ -92,13 +92,13 @@ StaticControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
/* DK[01/11/10]: For bug 4336 */
|
/* DK[01/11/10]: For bug 4336 */
|
||||||
switch (pCtrl->dwStyle & SS_TYPEMASK) {
|
switch (pCtrl->dwStyle & SS_TYPEMASK) {
|
||||||
case SS_GRAYRECT:
|
case SS_GRAYRECT:
|
||||||
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_lightgray);
|
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_lightgray);
|
||||||
break;
|
break;
|
||||||
case SS_BLACKRECT:
|
case SS_BLACKRECT:
|
||||||
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_black);
|
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_black);
|
||||||
break;
|
break;
|
||||||
case SS_WHITERECT:
|
case SS_WHITERECT:
|
||||||
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, COLOR_lightwhite);
|
pCtrl->iBkColor = DWORD2PixelByWindow (hwnd, RGBA_lightwhite);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
+1
-1
@@ -109,7 +109,7 @@ static LRESULT AboutWinProc (HWND hWnd, UINT message,
|
|||||||
rcClient.bottom -= 50;
|
rcClient.bottom -= 50;
|
||||||
rcClient.left = 10;
|
rcClient.left = 10;
|
||||||
rcClient.right -= 10;
|
rcClient.right -= 10;
|
||||||
SetTextColor (hdc, DWORD2Pixel (hdc, COLOR_black));
|
SetTextColor (hdc, DWORD2Pixel (hdc, RGBA_black));
|
||||||
SetBkMode (hdc, BM_TRANSPARENT);
|
SetBkMode (hdc, BM_TRANSPARENT);
|
||||||
DrawText (hdc,
|
DrawText (hdc,
|
||||||
"MiniGUI -- a mature cross-platform windowing system "
|
"MiniGUI -- a mature cross-platform windowing system "
|
||||||
|
|||||||
Reference in New Issue
Block a user