Changeset 37
- Timestamp:
- 02/26/08 06:19:03 (8 months ago)
- Files:
-
- trunk/win32/dfl/application.d (modified) (1 diff)
- trunk/win32/dfl/control.d (modified) (1 diff)
- trunk/win32/dfl/form.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/application.d
r33 r37 143 143 // Call onLoad/load and focus a control at old time. 144 144 FORM_LOAD_096 = 0x10, 145 146 // Parent controls now need to be container-controls; this removes that limit. 147 CONTROL_PARENT_096 = 0x20, 145 148 } 146 149 trunk/win32/dfl/control.d
r36 r37 969 969 private void _ctrladded(ControlEventArgs cea) 970 970 { 971 /+ 972 if(!(_exStyle() & WS_EX_CONTROLPARENT)) 973 { 974 if(!(cbits & CBits.FORM)) 975 { 976 //if((cea.control._style() & WS_TABSTOP) || (cea.control._exStyle() & WS_EX_CONTROLPARENT)) 977 _exStyle(_exStyle() | WS_EX_CONTROLPARENT); 978 } 979 } 980 +/ 981 assert(getStyle(ControlStyles.CONTAINER_CONTROL), "Control added to non-container parent"); 971 if(Application._compat & DflCompat.CONTROL_PARENT_096) 972 { 973 if(!(_exStyle() & WS_EX_CONTROLPARENT)) 974 { 975 if(!(cbits & CBits.FORM)) 976 { 977 //if((cea.control._style() & WS_TABSTOP) || (cea.control._exStyle() & WS_EX_CONTROLPARENT)) 978 _exStyle(_exStyle() | WS_EX_CONTROLPARENT); 979 } 980 } 981 } 982 else 983 { 984 assert(getStyle(ControlStyles.CONTAINER_CONTROL), "Control added to non-container parent"); 985 } 982 986 983 987 onControlAdded(cea); trunk/win32/dfl/form.d
r36 r37 2896 2896 else if(m.hWnd == form.handle || IsChild(form.handle, m.hWnd)) 2897 2897 { 2898 { 2899 HWND hwfocus = GetFocus(); 2900 if(IsChild(form.handle, hwfocus)) 2901 form._lastSel = hwfocus; // ? 2902 } 2903 2898 2904 switch(m.msg) 2899 2905 {
