summaryrefslogtreecommitdiff
path: root/common_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-11-05 12:59:44 -0500
committerPietro Gagliardi <[email protected]>2014-11-05 12:59:44 -0500
commit5fc368fc23f0720fc193883d0709df8417268987 (patch)
treebd929349e56551dbca795300457232093d6047b3 /common_windows.c
parent0bd58006a6001f830413bb4dcbb7bcad6aea3cc9 (diff)
Started adding TextField.ReadOnly() and implemented it (mostly) on Windows.
Diffstat (limited to 'common_windows.c')
-rw-r--r--common_windows.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common_windows.c b/common_windows.c
index ca42eab..207b691 100644
--- a/common_windows.c
+++ b/common_windows.c
@@ -85,6 +85,7 @@ BOOL sharedWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *
return TRUE;
case WM_CTLCOLORSTATIC:
case WM_CTLCOLORBTN:
+ // TODO exempt read-only textboxes
if (SetBkMode((HDC) wParam, TRANSPARENT) == 0)
xpanic("error setting transparent background mode to Labels", GetLastError());
paintControlBackground((HWND) lParam, (HDC) wParam);