Changeset 16
- Timestamp:
- 01/19/08 17:31:22 (9 months ago)
- Files:
-
- trunk/win32/dfl/control.d (modified) (7 diffs)
- trunk/win32/dfl/form.d (modified) (4 diffs)
- trunk/win32/dfl/groupbox.d (modified) (1 diff)
- trunk/win32/dfl/panel.d (modified) (1 diff)
- trunk/win32/dfl/tabcontrol.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/control.d
r15 r16 4668 4668 //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 4669 4669 m._reflectMenu(msg); 4670 return;4670 //return; // ? 4671 4671 } 4672 4672 } … … 4719 4719 //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 4720 4720 m._reflectMenu(msg); 4721 return;4721 //return; 4722 4722 } 4723 4723 } … … 4739 4739 //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 4740 4740 m._reflectMenu(msg); 4741 return;4741 //return; 4742 4742 } 4743 4743 } … … 4753 4753 //msg.result = m.customMsg(*(cast(CustomMsg*)&msg)); 4754 4754 m._reflectMenu(msg); 4755 return;4755 //return; 4756 4756 } 4757 4757 } … … 5069 5069 5070 5070 // Only want chars if ALT isn't down, because it would break mnemonics. 5071 if(!(Get AsyncKeyState(VK_MENU) & 0x8000))5071 if(!(GetKeyState(VK_MENU) & 0x8000)) 5072 5072 msg.result |= DLGC_WANTCHARS; 5073 5073 … … 6458 6458 6459 6459 /// 6460 // Return true if processed. 6460 6461 protected bool processKeyEventArgs(inout Message msg) 6461 6462 { … … 6497 6498 break; 6498 6499 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 6513 6500 default: ; 6514 6501 } 6515 6502 6516 /+6517 if(Application._compat & DflCompat.CONTROL_KEYEVENT_096)6518 goto def_action;6519 6520 // ?6521 if(!parent6522 || (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 else6532 {6533 //if(parent)6534 assert(parent !is null);6535 return parent.processKeyEventArgs(msg);6536 }6537 6538 return false;6539 +/6540 6503 defWndProc(msg); 6541 //return true;6542 6504 return !msg.result; 6543 6505 } trunk/win32/dfl/form.d
r13 r16 891 891 892 892 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. 894 900 protected MdiClient createMdiClient() 895 901 { … … 2398 2404 return; 2399 2405 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 2423 2406 case WM_DESTROY: 2424 2407 /+ … … 2690 2673 protected bool preFilterMessage(inout Message m) 2691 2674 { 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) 2693 2681 { 2694 2682 } … … 2803 2791 } 2804 2792 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: ; 2810 2809 } 2811 2810 trunk/win32/dfl/groupbox.d
r7 r16 59 59 wstyle |= BS_GROUPBOX /+ | WS_TABSTOP +/; // Should WS_TABSTOP be set? 60 60 //wstyle |= BS_GROUPBOX | WS_TABSTOP; 61 wexstyle |= WS_EX_CONTROLPARENT;61 //wexstyle |= WS_EX_CONTROLPARENT; // ? 62 62 wclassStyle = buttonClassStyle; 63 63 ctrlStyle |= ControlStyles.CONTAINER_CONTROL; trunk/win32/dfl/panel.d
r5 r16 54 54 ctrlStyle |= ControlStyles.SELECTABLE | ControlStyles.CONTAINER_CONTROL; 55 55 /+ 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. ? 57 57 } 58 58 } trunk/win32/dfl/tabcontrol.d
r7 r16 370 370 371 371 wstyle |= WS_TABSTOP; 372 wexstyle |= WS_EX_CONTROLPARENT;372 //wexstyle |= WS_EX_CONTROLPARENT; // ? 373 373 ctrlStyle |= ControlStyles.SELECTABLE; // Not considered a container control even though it contains TabPage`s or whatever. 374 374 wclassStyle = tabcontrolClassStyle;
