Changeset 27

Show
Ignore:
Timestamp:
02/20/08 01:23:27 (8 months ago)
Author:
Chris Miller
Message:

Minor changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/win32/dfl/application.d

    r26 r27  
    123123 
    124124 
     125// Compatibility with previous DFL versions. 
     126// Set version=DFL_NO_COMPAT to disable. 
    125127deprecated enum DflCompat 
    126128{ 
    127129    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, 
    132142} 
    133143 
  • trunk/win32/dfl/form.d

    r26 r27  
    660660        { 
    661661            vis = true; 
     662            cbits |= CBits.RECREATING; 
    662663            // Do it directly so that DFL code can't prevent it. 
    663             cbits |= CBits.RECREATING
    664             doHide(); 
     664            //doHide()
     665            ShowWindow(hwnd, SW_HIDE); 
    665666        } 
    666667        scope(exit) 
     
    753754                //show(); 
    754755                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(); 
    756758                // Do it directly so that DFL code can't prevent it. 
    757759                doShow(); 
     760                invalidate(true); 
    758761            } 
    759762            else 
     
    761764                SetWindowPos(hwnd, HWND.init, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE 
    762765                    | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); // Recalculate the frame. 
    763             } 
    764              
    765             invalidate(true); 
    766              
    767             _resetSystemMenu(); 
     766                _resetSystemMenu(); 
     767            } 
    768768        } 
    769769    } 
     
    25312531                } 
    25322532                return; 
     2533             
     2534            case WM_ENABLE: 
     2535                if(msg.wParam) 
     2536                { 
     2537                    if(!GetFocus()) 
     2538                        SetFocus(msg.hWnd); 
     2539                } 
     2540                break; 
    25332541             
    25342542            default: