comparison win/dw.c @ 2218:10a44abd0e83

Win: Fix building in Windows 2000, move _dw_show_margins() into AEROGLASS.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 15 Dec 2020 08:06:54 +0000
parents 62e5cc4bc347
children abbda3db3a3c
comparison
equal deleted inserted replaced
2217:6cdb907755cb 2218:10a44abd0e83
2134 is_checked = (is_checked) ? DW_MIS_UNCHECKED : DW_MIS_CHECKED; 2134 is_checked = (is_checked) ? DW_MIS_UNCHECKED : DW_MIS_CHECKED;
2135 dw_menu_item_set_state( window, id, is_checked ); 2135 dw_menu_item_set_state( window, id, is_checked );
2136 } 2136 }
2137 } 2137 }
2138 2138
2139 #ifdef AEROGLASS
2139 void _dw_show_margins(HWND handle, MARGINS mar, int line) 2140 void _dw_show_margins(HWND handle, MARGINS mar, int line)
2140 { 2141 {
2141 #ifdef DEBUG 2142 #ifdef DEBUG
2142 char *title = dw_window_get_text(handle); 2143 char *title = dw_window_get_text(handle);
2143 dw_debug("_DwmExtendFrameIntoClientArea(\"%s\",%d,%d,%d,%d) line %d\n", title, 2144 dw_debug("_DwmExtendFrameIntoClientArea(\"%s\",%d,%d,%d,%d) line %d\n", title,
2144 mar.cxLeftWidth, mar.cxRightWidth, 2145 mar.cxLeftWidth, mar.cxRightWidth,
2145 mar.cyTopHeight, mar.cyBottomHeight, line); 2146 mar.cyTopHeight, mar.cyBottomHeight, line);
2146 dw_free(title); 2147 dw_free(title);
2147 #endif 2148 #endif
2148 } 2149 }
2150 #endif
2149 2151
2150 /* The main window procedure for Dynamic Windows, all the resizing code is done here. */ 2152 /* The main window procedure for Dynamic Windows, all the resizing code is done here. */
2151 LRESULT CALLBACK _wndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2) 2153 LRESULT CALLBACK _wndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2)
2152 { 2154 {
2153 int result = -1, taskbar = FALSE; 2155 int result = -1, taskbar = FALSE;