Changeset 16

Show
Ignore:
Timestamp:
01/19/08 17:31:22 (9 months ago)
Author:
Chris Miller
Message:

Minor changes.

Files:

Legend:

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

    r15 r16  
    46684668                                //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 
    46694669                                m._reflectMenu(msg); 
    4670                                 return; 
     4670                                //return; // ? 
    46714671                            } 
    46724672                        } 
     
    47194719                            //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 
    47204720                            m._reflectMenu(msg); 
    4721                             return; 
     4721                            //return; 
    47224722                        } 
    47234723                    } 
     
    47394739                            //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 
    47404740                            m._reflectMenu(msg); 
    4741                             return; 
     4741                            //return; 
    47424742                        } 
    47434743                    } 
     
    47534753                            //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 
    47544754                            m._reflectMenu(msg); 
    4755                             return; 
     4755                            //return; 
    47564756                        } 
    47574757                    } 
     
    50695069                     
    50705070                    // Only want chars if ALT isn't down, because it would break mnemonics. 
    5071                     if(!(GetAsyncKeyState(VK_MENU) & 0x8000)) 
     5071                    if(!(GetKeyState(VK_MENU) & 0x8000)) 
    50725072                        msg.result |= DLGC_WANTCHARS; 
    50735073                     
     
    64586458     
    64596459    /// 
     6460    // Return true if processed. 
    64606461    protected bool processKeyEventArgs(inout Message msg) 
    64616462    { 
     
    64976498                break; 
    64986499             
    6499             /+ 
    6500             case WM_SYSKEYDOWN: 
    6501             case WM_SYSKEYUP: 
    6502             case WM_SYSCHAR: 
    6503                 // Note: move to processMnemonic if/when used. 
    6504                 //if(msg.hWnd == hwnd) 
    6505                 { 
    6506                     //defwproc(msg.msg, msg.wParam, msg.lParam); // ? 
    6507                     defWndProc(msg); // ? 
    6508                     //return true; // ? 
    6509                 } 
    6510                 break; 
    6511             +/ 
    6512              
    65136500            default: ; 
    65146501        } 
    65156502         
    6516         /+ 
    6517         if(Application._compat & DflCompat.CONTROL_KEYEVENT_096) 
    6518             goto def_action; 
    6519          
    6520         // ? 
    6521         if(!parent 
    6522             || (IsWindowVisible(hwnd) 
    6523                 && ((ctrlStyle & ControlStyles.SELECTABLE) 
    6524                     || (SendMessageA(hwnd, WM_GETDLGCODE, 0, 0) & DLGC_WANTALLKEYS)))) 
    6525         { 
    6526             def_action: 
    6527             defWndProc(msg); 
    6528             //return true; 
    6529             return !msg.result; 
    6530         } 
    6531         else 
    6532         { 
    6533             //if(parent) 
    6534             assert(parent !is null); 
    6535                 return parent.processKeyEventArgs(msg); 
    6536         } 
    6537          
    6538         return false; 
    6539         +/ 
    65406503        defWndProc(msg); 
    6541         //return true; 
    65426504        return !msg.result; 
    65436505    } 
  • trunk/win32/dfl/form.d

    r13 r16  
    891891     
    892892     
    893     /// 
     893    version(NO_MDI) 
     894    { 
     895        private alias Control MdiClient; // ? 
     896    } 
     897     
     898    /// 
     899    // Note: keeping this here for NO_MDI to keep the vtable. 
    894900    protected MdiClient createMdiClient() 
    895901    { 
     
    23982404                return; 
    23992405             
    2400             /+ 
    2401             // This isn't working correctly. Execution is entering the right spots, but the menu isn't right. 
    2402             case WM_INITMENUPOPUP: 
    2403                 if(HIWORD(msg.lParam)) 
    2404                 { 
    2405                     // System menu. 
    2406                     if(msg.wParam) 
    2407                     { 
    2408                         HMENU hwm; 
    2409                         hwm = cast(HMENU)msg.wParam; 
    2410                         assert(IsMenu(hwm)); 
    2411                         _fixSystemMenu(hwm); 
    2412                     } 
    2413                 } 
    2414                 break; 
    2415             +/ 
    2416              
    2417             /+ // Not working either. 
    2418             case WM_INITMENU: 
    2419                 _fixSystemMenu(GetSystemMenu(msg.hWnd, FALSE)); // Might leak a copy? 
    2420                 break; 
    2421             +/ 
    2422              
    24232406            case WM_DESTROY: 
    24242407                /+ 
     
    26902673        protected bool preFilterMessage(inout Message m) 
    26912674        { 
    2692             if(form.mdiClient && form.mdiClient.isHandleCreated && IsChild(form.mdiClient.handle, m.hWnd)) 
     2675            version(NO_MDI) 
     2676                const bool mdistuff = false; 
     2677            else 
     2678                bool mdistuff = form.mdiClient && form.mdiClient.isHandleCreated && IsChild(form.mdiClient.handle, m.hWnd); 
     2679             
     2680            if(mdistuff) 
    26932681            { 
    26942682            } 
     
    28032791                } 
    28042792                 
    2805                 // isDialogMessage seems to be eating WM_CHAR in some cases, so see for myself if it should get it. 
    2806                 if(WM_CHAR == m.msg) 
    2807                 { 
    2808                     // ? ... 
    2809                     return false; // Continue. 
     2793                switch(m.msg) 
     2794                { 
     2795                    case WM_CHAR: 
     2796                        // isDialogMessage seems to be eating WM_CHAR in some cases, so see for myself if it should get it. 
     2797                        // ? ... 
     2798                        return false; // Continue. 
     2799                     
     2800                    /+ 
     2801                    case WM_SYSKEYDOWN: 
     2802                    case WM_SYSKEYUP: 
     2803                    case WM_SYSCHAR: 
     2804                        // isDialogMessage returning true seems to be breaking menu mnemonics. 
     2805                        return false; // Continue. 
     2806                    +/ 
     2807                     
     2808                    default: ; 
    28102809                } 
    28112810                 
  • trunk/win32/dfl/groupbox.d

    r7 r16  
    5959        wstyle |= BS_GROUPBOX /+ | WS_TABSTOP +/; // Should WS_TABSTOP be set? 
    6060        //wstyle |= BS_GROUPBOX | WS_TABSTOP; 
    61         wexstyle |= WS_EX_CONTROLPARENT; 
     61        //wexstyle |= WS_EX_CONTROLPARENT; // ? 
    6262        wclassStyle = buttonClassStyle; 
    6363        ctrlStyle |= ControlStyles.CONTAINER_CONTROL; 
  • trunk/win32/dfl/panel.d

    r5 r16  
    5454        ctrlStyle |= ControlStyles.SELECTABLE | ControlStyles.CONTAINER_CONTROL; 
    5555        /+ wstyle |= WS_TABSTOP; +/ // Should WS_TABSTOP be set? 
    56         wexstyle |= WS_EX_CONTROLPARENT; // Allow tabbing through children. 
     56        //wexstyle |= WS_EX_CONTROLPARENT; // Allow tabbing through children. ? 
    5757    } 
    5858} 
  • trunk/win32/dfl/tabcontrol.d

    r7 r16  
    370370         
    371371        wstyle |= WS_TABSTOP; 
    372         wexstyle |= WS_EX_CONTROLPARENT; 
     372        //wexstyle |= WS_EX_CONTROLPARENT; // ? 
    373373        ctrlStyle |= ControlStyles.SELECTABLE; // Not considered a container control even though it contains TabPage`s or whatever. 
    374374        wclassStyle = tabcontrolClassStyle;