- Timestamp:
- Dec 9, 2009, 1:22:19 PM (16 years ago)
- Location:
- trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java
r212 r238 471 471 472 472 //@@TODO (dmik): debug code, remove when no more necessary 473 / /System.out.println (474 //"Control.createHandle(): Window has been created:\n" +475 //" hwnd = " + Integer.toHexString (handle) + "\n" +476 //" hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" +477 //" class = " + windowClass() + "\n" +478 //" style = " + Integer.toHexString (widgetStyle())479 //);480 473 /* System.out.println ( 474 "Control.createHandle(): Window has been created:\n" + 475 " hwnd = " + Integer.toHexString (handle) + "\n" + 476 " hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" + 477 " class = " + windowClass() + "\n" + 478 " style = " + Integer.toHexString (widgetStyle()) 479 ); 480 */ 481 481 //@@TODO(dmik): DBCS handling? 482 482 // if (OS.IsDBLocale && parent != null) { … … 2949 2949 // case OS.WM_CTLCOLORSTATIC: result = WM_CTLCOLOR (wParam, lParam); break; 2950 2950 // case OS.WM_CUT: result = WM_CUT (wParam, lParam); break; 2951 // case OS.WM_DESTROY: result = WM_DESTROY (wParam, lParam); break;2951 case OS.WM_DESTROY: result = WM_DESTROY (mp1, mp2); break; 2952 2952 case OS.WM_DRAWITEM: result = WM_DRAWITEM (mp1, mp2); break; 2953 2953 // case OS.WM_ENDSESSION: result = WM_ENDSESSION (wParam, lParam); break; 2954 2954 case OS.WM_ERASEBACKGROUND: result = WM_ERASEBACKGROUND (mp1, mp2); break; 2955 case OS.WM_FOCUSCHANGE: result = WM_FOCUSCHANGE (mp1, mp2); break;2955 // case OS.WM_FOCUSCHANGE: result = WM_FOCUSCHANGE (mp1, mp2); break; 2956 2956 case OS.WM_QUERYDLGCODE: result = WM_QUERYDLGCODE (mp1, mp2); break; 2957 2957 // case OS.WM_HELP: result = WM_HELP (wParam, lParam); break; … … 3106 3106 // return control.wmColorChild (wParam, lParam); 3107 3107 //} 3108 // 3109 //LRESULT WM_CUT (int wParam, int lParam) { 3110 // return null; 3111 //} 3112 // 3113 //LRESULT WM_DESTROY (int wParam, int lParam) { 3114 // return null; 3115 //} 3116 // 3108 3109 MRESULT WM_DESTROY (int mp1, int mp2) { 3110 return null; 3111 } 3112 3117 3113 //LRESULT WM_DRAWITEM (int wParam, int lParam) { 3118 3114 // DRAWITEMSTRUCT struct = new DRAWITEMSTRUCT (); … … 3728 3724 3729 3725 MRESULT WM_SETFOCUS (int mp1, int mp2) { 3730 //System.out.println("Control::WM_SETFOCUS -> handle = " + Integer.toHexString(mp1));3726 // System.out.println("Control::WM_SETFOCUS -> handle = " + Integer.toHexString(mp1)); 3731 3727 // System.out.println("Control::WM_SETFOCUS -> mp2 = " + OS.SHORT1FROMMP (mp2)); 3732 callWindowProc (OS.WM_SETFOCUS, mp1, mp2);3728 int code = callWindowProc (OS.WM_SETFOCUS, mp1, mp2); 3733 3729 Shell shell = getShell (); 3734 3730 … … 3764 3760 } 3765 3761 } 3766 3762 if(isDisposed()) return MRESULT.ZERO; 3763 if(code == 0) return MRESULT.ZERO; 3767 3764 return MRESULT.ZERO; 3768 3765 } … … 3975 3972 } 3976 3973 3977 MRESULT WM_FOCUSCHANGE (int mp1, int mp2) {3974 /* MRESULT WM_FOCUSCHANGE (int mp1, int mp2) { 3978 3975 callWindowProc (OS.WM_FOCUSCHANGE, mp1, mp2); 3979 3976 return MRESULT.ZERO; 3980 3977 } 3981 3978 */ 3982 3979 //@@TODO(lpino): Consider the process in Menu controls and ListBoxes 3983 3980 //MRESULT WM_ADJUSTWINDOWPOS (int mp1, int mp2) { -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Shell.java
r212 r238 1070 1070 } 1071 1071 1072 //@@TODO (dmik): need? 1073 //LRESULT WM_CLOSE (int wParam, int lParam) { 1074 // if ((display.TrimEnabled && !isEnabled ()) || !isActive ()) { 1075 // return LRESULT.ZERO; 1076 // } 1077 // return super.WM_CLOSE (wParam, lParam); 1078 //} 1072 MRESULT WM_CLOSE (int mp1, int mp2) { 1073 if ((display.TrimEnabled && !isEnabled ()) || !isActive ()) { 1074 return MRESULT.ZERO; 1075 } 1076 return super.WM_CLOSE (mp1, mp2); 1077 } 1079 1078 1080 1079 MRESULT WM_COMMAND (int mp1, int mp2) { … … 1082 1081 } 1083 1082 1084 //LRESULT WM_DESTROY (int wParam, int lParam) {1085 // LRESULT result = super.WM_DESTROY (wParam, lParam);1086 ///*1087 //* When the shell is a WS_CHILD window of a non-SWT1088 //* window, the destroy code does not get called because1089 //* the non-SWT window does not call dispose (). Instead,1090 //* the destroy code is called here in WM_DESTROY.1091 //*/1083 MRESULT WM_DESTROY (int mp1, int mp2) { 1084 MRESULT result = super.WM_DESTROY (mp1, mp2); 1085 /* 1086 * When the shell is a WS_CHILD window of a non-SWT 1087 * window, the destroy code does not get called because 1088 * the non-SWT window does not call dispose (). Instead, 1089 * the destroy code is called here in WM_DESTROY. 1090 */ 1092 1091 // int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); 1093 1092 // if ((bits & OS.WS_CHILD) != 0) { … … 1095 1094 // releaseWidget (); 1096 1095 // } 1097 //return result;1098 //}1099 // 1096 return result; 1097 } 1098 1100 1099 //LRESULT WM_MOUSEACTIVATE (int wParam, int lParam) { 1101 1100 // LRESULT result = super.WM_MOUSEACTIVATE (wParam, lParam);
Note:
See TracChangeset
for help on using the changeset viewer.