Changeset 32
- Timestamp:
- 02/22/08 03:25:16 (7 months ago)
- Files:
-
- trunk/win32/dfl/application.d (modified) (4 diffs)
- trunk/win32/dfl/control.d (modified) (3 diffs)
- trunk/win32/dfl/form.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/application.d
r30 r32 632 632 errdone = true; 633 633 ctnu = true; 634 close(); 634 //close(); 635 dispose(); 635 636 } 636 637 … … 640 641 errdone = true; 641 642 ctnu = false; 642 close(); 643 //close(); 644 dispose(); 643 645 } 644 646 … … 698 700 699 701 702 /+ 700 703 private int inThread2() 701 704 { … … 762 765 } 763 766 while(thread1); 767 768 return ctnu; 769 } 770 +/ 771 772 bool doContinue() 773 { 774 assert(!isHandleCreated); 775 776 show(); 777 778 Message msg; 779 while(GetMessageA(&msg._winMsg, handle, 0, 0)) 780 { 781 /+ 782 //if(!IsDialogMessageA(handle, &msg._winMsg)) // Back to the old problems. 783 { 784 TranslateMessage(&msg._winMsg); 785 DispatchMessageA(&msg._winMsg); 786 } 787 +/ 788 gotMessage(msg); 789 790 if(!isHandleCreated) 791 break; 792 } 764 793 765 794 return ctnu; trunk/win32/dfl/control.d
r31 r32 4259 4259 4260 4260 visibleChanged(this, ea); 4261 4262 if(visible) 4263 { 4264 // If no focus or the focused control is hidden, try to select something... 4265 HWND hwfocus = GetFocus(); 4266 if(!hwfocus 4267 || (hwfocus == hwnd && !getStyle(ControlStyles.SELECTABLE)) 4268 || !IsWindowVisible(hwfocus)) 4269 { 4270 selectNextControl(null, true, true, true, false); 4271 } 4272 } 4261 4273 } 4262 4274 … … 6188 6200 } 6189 6201 6202 bool vis = (style & WS_VISIBLE) != 0; 6203 6190 6204 Application.creatingControl(this); 6191 hwnd = dfl.internal.utf.createWindowEx(exStyle, className, caption, style, x, y,6205 hwnd = dfl.internal.utf.createWindowEx(exStyle, className, caption, (style & ~WS_VISIBLE), x, y, 6192 6206 width, height, parent, menu, inst, param); 6193 6207 if(!hwnd) … … 6217 6231 goto create_err; 6218 6232 } 6233 6234 if(vis) 6235 doShow(); // Properly fires onVisibleChanged. 6219 6236 } 6220 6237 trunk/win32/dfl/form.d
r30 r32 505 505 if(recreatingHandle) 506 506 goto show_normal; 507 // These fire onVisibleChanged as needed... 507 508 switch(windowState) 508 509 { … … 1816 1817 } 1817 1818 1819 // Ensure Control.onVisibleChanged is called AFTER onLoad, so onLoad can set the selection first. 1818 1820 super.onVisibleChanged(ea); 1819 1821 } … … 2154 2156 load(this, ea); 2155 2157 2158 /+ // Moved to Control.onVisibleChanged 2156 2159 if(!(Application._compat & DflCompat.FORM_LOAD_096)) 2157 2160 { 2158 2161 _selonecontrol(); 2159 2162 } 2163 +/ 2160 2164 } 2161 2165 … … 2563 2567 } 2564 2568 +/ 2565 _selonecontrol();2569 //_selonecontrol(); 2566 2570 // Prevent DefDlgProc from getting this message because it'll focus controls it shouldn't. 2567 2571 return;
