Changeset 27
- Timestamp:
- 02/20/08 01:23:27 (8 months ago)
- Files:
-
- trunk/win32/dfl/application.d (modified) (1 diff)
- trunk/win32/dfl/form.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/application.d
r26 r27 123 123 124 124 125 // Compatibility with previous DFL versions. 126 // Set version=DFL_NO_COMPAT to disable. 125 127 deprecated enum DflCompat 126 128 { 127 129 NONE = 0, 128 MENU_092 = 0x1, // Adding to menus is the old way. 129 CONTROL_RECREATE_095 = 0x2, // Controls don't recreate automatically when necessary. 130 CONTROL_KEYEVENT_096 = 0x4, // Nothing. 131 FORM_DIALOGRESULT_096 = 0x8, // When a Form is in showDialog, changing the dialogResult from NONE doesn't close the form. 130 131 // Adding to menus is the old way. 132 MENU_092 = 0x1, 133 134 // Controls don't recreate automatically when necessary. 135 CONTROL_RECREATE_095 = 0x2, 136 137 // Nothing. 138 CONTROL_KEYEVENT_096 = 0x4, 139 140 // When a Form is in showDialog, changing the dialogResult from NONE doesn't close the form. 141 FORM_DIALOGRESULT_096 = 0x8, 132 142 } 133 143 trunk/win32/dfl/form.d
r26 r27 660 660 { 661 661 vis = true; 662 cbits |= CBits.RECREATING; 662 663 // Do it directly so that DFL code can't prevent it. 663 cbits |= CBits.RECREATING;664 doHide();664 //doHide(); 665 ShowWindow(hwnd, SW_HIDE); 665 666 } 666 667 scope(exit) … … 753 754 //show(); 754 755 SetWindowPos(hwnd, HWND.init, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE 755 | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); // Recalculate the frame while hidden. 756 | SWP_NOSIZE | SWP_NOZORDER); // Recalculate the frame while hidden. 757 _resetSystemMenu(); 756 758 // Do it directly so that DFL code can't prevent it. 757 759 doShow(); 760 invalidate(true); 758 761 } 759 762 else … … 761 764 SetWindowPos(hwnd, HWND.init, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE 762 765 | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); // Recalculate the frame. 763 } 764 765 invalidate(true); 766 767 _resetSystemMenu(); 766 _resetSystemMenu(); 767 } 768 768 } 769 769 } … … 2531 2531 } 2532 2532 return; 2533 2534 case WM_ENABLE: 2535 if(msg.wParam) 2536 { 2537 if(!GetFocus()) 2538 SetFocus(msg.hWnd); 2539 } 2540 break; 2533 2541 2534 2542 default:
