use dwBkColor for compositing schema

This commit is contained in:
Vincent Wei
2020-02-11 18:09:30 +08:00
parent b7f1c15a2a
commit b7965b3940
32 changed files with 180 additions and 42 deletions
+1 -1
View File
@@ -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);
+8 -5
View File
@@ -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);
}