comparison dwt/widgets/Combo.d @ 115:640928daee8c

Revert the reverting changes Backed out changeset f353be82b6be
author Frank Benoit <benoit@tionex.de>
date Mon, 11 Feb 2008 04:05:55 +0100
parents f353be82b6be
children 25f88bf5a6df
comparison
equal deleted inserted replaced
113:f353be82b6be 115:640928daee8c
1606 * 1606 *
1607 * @since 2.1.2 1607 * @since 2.1.2
1608 */ 1608 */
1609 public void setOrientation (int orientation) { 1609 public void setOrientation (int orientation) {
1610 checkWidget(); 1610 checkWidget();
1611 static if (OS.IsWinCE) return; 1611 if (OS.IsWinCE) return;
1612 if (OS.WIN32_VERSION < OS.VERSION (4, 10)) return; 1612 if (OS.WIN32_VERSION < OS.VERSION (4, 10)) return;
1613 int flags = DWT.RIGHT_TO_LEFT | DWT.LEFT_TO_RIGHT; 1613 int flags = DWT.RIGHT_TO_LEFT | DWT.LEFT_TO_RIGHT;
1614 if ((orientation & flags) is 0 || (orientation & flags) is flags) return; 1614 if ((orientation & flags) is 0 || (orientation & flags) is flags) return;
1615 style &= ~flags; 1615 style &= ~flags;
1616 style |= orientation & flags; 1616 style |= orientation & flags;
2170 * the size has changed. 2170 * the size has changed.
2171 */ 2171 */
2172 if ((style & DWT.SIMPLE) !is 0) { 2172 if ((style & DWT.SIMPLE) !is 0) {
2173 LRESULT result = super.WM_SIZE (wParam, lParam); 2173 LRESULT result = super.WM_SIZE (wParam, lParam);
2174 if (OS.IsWindowVisible (handle)) { 2174 if (OS.IsWindowVisible (handle)) {
2175 static if (OS.IsWinCE) { 2175 if (OS.IsWinCE) {
2176 auto hwndText = OS.GetDlgItem (handle, CBID_EDIT); 2176 auto hwndText = OS.GetDlgItem (handle, CBID_EDIT);
2177 if (hwndText !is null) OS.InvalidateRect (hwndText, null, true); 2177 if (hwndText !is null) OS.InvalidateRect (hwndText, null, true);
2178 auto hwndList = OS.GetDlgItem (handle, CBID_LIST); 2178 auto hwndList = OS.GetDlgItem (handle, CBID_LIST);
2179 if (hwndList !is null) OS.InvalidateRect (hwndList, null, true); 2179 if (hwndList !is null) OS.InvalidateRect (hwndList, null, true);
2180 } else { 2180 } else {