mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
use dwBkColor for compositing schema
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;
|
||||
rc4.left = 0; rc4.top = 461; rc4.right = 401; rc4.bottom = 551;
|
||||
|
||||
SetBkColor (hdc, COLOR_lightwhite);
|
||||
SetBkColor (hdc, DWORD2Pixel (hdc, COLOR_lightwhite));
|
||||
|
||||
Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);
|
||||
Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);
|
||||
|
||||
@@ -17,7 +17,7 @@ static LRESULT StepControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM l
|
||||
info = (HELPWININFO*)GetWindowAdditionalData (hwnd);
|
||||
|
||||
/* Draw the step information. */
|
||||
......
|
||||
...
|
||||
|
||||
EndPaint (hwnd, hdc);
|
||||
break;
|
||||
@@ -43,8 +43,7 @@ static LRESULT StepControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM l
|
||||
return DefaultControlProc (hwnd, message, wParam, lParam);
|
||||
}
|
||||
|
||||
|
||||
static BOOL RegisterStepControl ()
|
||||
static BOOL RegisterStepControl (void)
|
||||
{
|
||||
int result;
|
||||
WNDCLASS StepClass;
|
||||
@@ -52,13 +51,17 @@ static BOOL RegisterStepControl ()
|
||||
StepClass.spClassName = STEP_CTRL_NAME;
|
||||
StepClass.dwStyle = 0;
|
||||
StepClass.hCursor = GetSystemCursor (IDC_ARROW);
|
||||
StepClass.iBkColor = COLOR_lightwhite;
|
||||
#ifdef _MGSCHEMA_COMPOSITING
|
||||
StepClass.dwBkRGBA = COLOR_lightwhite;
|
||||
#else
|
||||
StepClass.iBkColor = PIXEL_lightwhite;
|
||||
#endif
|
||||
StepClass.WinProc = StepControlProc;
|
||||
|
||||
return RegisterWindowClass (&StepClass);
|
||||
}
|
||||
|
||||
static void UnregisterStepControl ()
|
||||
static void UnregisterStepControl (void)
|
||||
{
|
||||
UnregisterWindowClass (STEP_CTRL_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user