summaryrefslogtreecommitdiff
path: root/redo/common_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-28 15:38:47 -0400
committerPietro Gagliardi <[email protected]>2014-08-28 15:38:47 -0400
commit555b6ebcbd16a933f23f03db0d8118e6d984d5d2 (patch)
treeb1997658cc94ad56fee2399a2e7bd13535e6e953 /redo/common_windows.c
parent4d8911fe7ebc232acd11d39eb9a87758d7a188f1 (diff)
Implemented WM_PRINTCLIENT on Window and cleaned up the WM_CTLCOLOR*** message handler; both are on the Windows backend.
Diffstat (limited to 'redo/common_windows.c')
-rw-r--r--redo/common_windows.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/redo/common_windows.c b/redo/common_windows.c
index d89cb21..13997c7 100644
--- a/redo/common_windows.c
+++ b/redo/common_windows.c
@@ -79,8 +79,6 @@ static LRESULT forwardNotify(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL sharedWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult)
{
- DWORD exstyle;
-
switch (uMsg) {
case WM_COMMAND:
*lResult = forwardCommand(hwnd, uMsg, wParam, lParam);
@@ -90,16 +88,11 @@ BOOL sharedWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *
return TRUE;
case WM_CTLCOLORSTATIC:
case WM_CTLCOLORBTN:
- exstyle = (DWORD) GetWindowLongPtrW((HWND) lParam, GWL_EXSTYLE);
- // TODO clean this up
-{// if ((exstyle & WS_EX_TRANSPARENT) != 0) {
- if (SetBkMode((HDC) wParam, TRANSPARENT) == 0)
- xpanic("error setting transparent background mode to Labels", GetLastError());
- paintControlBackground((HWND) lParam, (HDC) wParam);
- *lResult = (LRESULT) hollowBrush;
- return TRUE;
- }
- return FALSE;
+ if (SetBkMode((HDC) wParam, TRANSPARENT) == 0)
+ xpanic("error setting transparent background mode to Labels", GetLastError());
+ paintControlBackground((HWND) lParam, (HDC) wParam);
+ *lResult = (LRESULT) hollowBrush;
+ return TRUE;
}
return FALSE;
}
@@ -112,7 +105,6 @@ void paintControlBackground(HWND hwnd, HDC dc)
int saved;
WCHAR classname[128] = L""; // more than enough to avoid collisions
- // TODO implement WM_PRINTCLIENT in window_windows.c
parent = hwnd;
do {
parent = GetParent(parent);