|
From: Ralph T. <ra...@us...> - 2005-04-02 01:04:13
|
Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/sources/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27491/adobe-source/adobe/test/visual/sources/win Modified Files: metrics.cpp Log Message: Basic set of default values for Windows systems with visual styles disabled, or without UxTheme.dll. Index: metrics.cpp =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/sources/win/metrics.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** metrics.cpp 2 Apr 2005 00:45:22 -0000 1.2 --- metrics.cpp 2 Apr 2005 01:04:03 -0000 1.3 *************** *** 125,128 **** --- 125,133 ---- bool get_integer(int widget_type, int measurement, int& out_val) const { + if ((widget_type == CP_DROPDOWNBUTTON) && (measurement == TMT_BORDERSIZE) && (class_name_m == L"ComboBox")) + { + out_val = 1; + return true; + } out_val = 0; return false; *************** *** 130,133 **** --- 135,157 ---- bool get_size(int widget_type, THEMESIZE measurement, SIZE& out_size) const { + if (class_name_m == L"Button") + { + if ((widget_type == BP_CHECKBOX) || (widget_type == BP_RADIOBUTTON)) + { + // + // Strictly the width of the checkbox widget is 13 pixels. + // This adds some padding so that letters don't get clipped. + // + out_size.cx = 23; out_size.cy = 13; + return true; + } + if (widget_type == BP_GROUPBOX) + { + out_size.cx = 8; out_size.cy = 8; + return true; + } + out_size.cx = 0; out_size.cy = 0; + return true; + } out_size.cx = 0; out_size.cy = 0; return false; *************** *** 135,140 **** bool get_margins(int widget_type, MARGINS& out_margins) const { ! out_margins.cxLeftWidth = 0; out_margins.cxRightWidth = 0; ! out_margins.cyTopHeight = 0; out_margins.cyBottomHeight = 0; return false; } --- 159,168 ---- bool get_margins(int widget_type, MARGINS& out_margins) const { ! if ((class_name_m == L"Button") && (widget_type == BP_PUSHBUTTON)) ! { ! out_margins.cxLeftWidth = 3; out_margins.cxRightWidth = 3; ! out_margins.cyTopHeight = 3; out_margins.cyBottomHeight = 3; ! return true; ! } return false; } |