Mercurial > dwindows
comparison win/dw.c @ 1514:f33dca736917
More work on Windows Aero Glass backgrounds...
needs more work but slowly getting there.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Dec 2011 03:46:51 +0000 |
parents | 50d972da558e |
children | a26edf086082 |
comparison
equal
deleted
inserted
replaced
1513:def1ca619ba2 | 1514:f33dca736917 |
---|---|
2262 DW_BLUE_VALUE(thiscinfo->back))); | 2262 DW_BLUE_VALUE(thiscinfo->back))); |
2263 SelectObject((HDC)mp1, thiscinfo->hbrush); | 2263 SelectObject((HDC)mp1, thiscinfo->hbrush); |
2264 return (LONG)thiscinfo->hbrush; | 2264 return (LONG)thiscinfo->hbrush; |
2265 } | 2265 } |
2266 } | 2266 } |
2267 | |
2268 } | 2267 } |
2269 break; | 2268 break; |
2270 } | 2269 } |
2271 if(result != -1) | 2270 if(result != -1) |
2272 { | 2271 { |
2296 case WM_COMMAND: | 2295 case WM_COMMAND: |
2297 case WM_NOTIFY: | 2296 case WM_NOTIFY: |
2298 case WM_MOUSEMOVE: | 2297 case WM_MOUSEMOVE: |
2299 _wndproc(hWnd, msg, mp1, mp2); | 2298 _wndproc(hWnd, msg, mp1, mp2); |
2300 break; | 2299 break; |
2301 #if 0 | |
2302 case WM_ERASEBKGND: | |
2303 { | |
2304 ColorInfo *thiscinfo = (ColorInfo *)GetWindowLongPtr(hWnd, GWLP_USERDATA); | |
2305 | |
2306 if(thiscinfo && thiscinfo->fore != -1 && thiscinfo->back != -1) | |
2307 return FALSE; | |
2308 } | |
2309 break; | |
2310 #endif | |
2311 case WM_PAINT: | 2300 case WM_PAINT: |
2312 { | 2301 { |
2313 ColorInfo *thiscinfo = (ColorInfo *)GetWindowLongPtr(hWnd, GWLP_USERDATA); | 2302 ColorInfo *thiscinfo = (ColorInfo *)GetWindowLongPtr(hWnd, GWLP_USERDATA); |
2314 | 2303 |
2315 if(thiscinfo && thiscinfo->fore != -1 && thiscinfo->back != -1) | 2304 if(thiscinfo && thiscinfo->fore != -1 && thiscinfo->back != -1) |
2753 DW_BLUE_VALUE(back))); | 2742 DW_BLUE_VALUE(back))); |
2754 SelectObject((HDC)mp1, thiscinfo->hbrush); | 2743 SelectObject((HDC)mp1, thiscinfo->hbrush); |
2755 return (LONG)thiscinfo->hbrush; | 2744 return (LONG)thiscinfo->hbrush; |
2756 } | 2745 } |
2757 } | 2746 } |
2758 } | 2747 #ifdef AEROGLASS |
2748 switch(msg) | |
2749 { | |
2750 case WM_CTLCOLORSTATIC: | |
2751 case WM_CTLCOLORBTN: | |
2752 case WM_CTLCOLORDLG: | |
2753 { | |
2754 if(thiscinfo && (thiscinfo->fore == -1 || thiscinfo->fore == DW_CLR_DEFAULT)) | |
2755 SetTextColor((HDC)mp1, RGB(128,128,128)); | |
2756 if(thiscinfo && (thiscinfo->back == -1 || thiscinfo->back == DW_RGB_TRANSPARENT)) | |
2757 { | |
2758 SetBkMode((HDC)mp1, TRANSPARENT); | |
2759 if(thiscinfo->hbrush) | |
2760 DeleteObject(thiscinfo->hbrush); | |
2761 thiscinfo->hbrush = 0; | |
2762 return (LONG)GetStockObject(NULL_BRUSH); | |
2763 } | |
2764 } | |
2765 } | |
2766 #endif | |
2767 } | |
2759 break; | 2768 break; |
2760 } | 2769 } |
2761 } | 2770 } |
2762 | 2771 |
2763 if(ret != TRUE) | 2772 if(ret != TRUE) |