Changeset 35
- Timestamp:
- 02/23/08 04:03:19 (7 months ago)
- Files:
-
- trunk/win32/dfl/form.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/form.d
r34 r35 2158 2158 load(this, ea); 2159 2159 2160 /+ // Moved to Control.onVisibleChanged2161 2160 if(!(Application._compat & DflCompat.FORM_LOAD_096)) 2162 2161 { 2163 _selonecontrol(); 2164 } 2165 +/ 2162 // Needed anyway because MDI client form needs it. 2163 HWND hwfocus = GetFocus(); 2164 if(!hwfocus || !IsChild(hwnd, hwfocus)) 2165 _selectNextControl(this, null, true, true, true, false); 2166 } 2166 2167 } 2167 2168 … … 2551 2552 acceptButton.notifyDefault(false); 2552 2553 } 2554 _lastSel = GetFocus(); 2553 2555 } 2554 2556 … … 2721 2723 case WA_INACTIVE: 2722 2724 _seldeactivate(); 2723 _lastSel = GetFocus();2724 2725 break; 2725 2726 … … 2728 2729 return; 2729 2730 2730 default: 2731 // Note: WM_MDIACTIVATE here is to the MDI child forms. 2732 case WM_MDIACTIVATE: 2733 if(cast(HWND)msg.lParam == hwnd) 2734 { 2735 _selactivate(); 2736 } 2737 else if(cast(HWND)msg.wParam == hwnd) 2738 { 2739 _seldeactivate(); 2740 } 2741 goto def_def; 2742 2743 default: def_def: 2731 2744 version(NO_MDI) 2732 2745 { … … 2872 2885 const bool mdistuff = false; 2873 2886 else 2874 bool mdistuff = form.mdiClient && form.mdiClient.isHandleCreated && IsChild(form.mdiClient.handle, m.hWnd); 2887 bool mdistuff = form.mdiClient && form.mdiClient.isHandleCreated 2888 && (form.mdiClient.handle == m.hWnd || IsChild(form.mdiClient.handle, m.hWnd)); 2875 2889 2876 2890 if(mdistuff)
