Lines 5083-5093
Link Here
|
5083 |
* When there are many columns in a table, scrolling performance |
5083 |
* When there are many columns in a table, scrolling performance |
5084 |
* can be improved by temporarily unsubclassing the window proc |
5084 |
* can be improved by temporarily unsubclassing the window proc |
5085 |
* so that internal messages are dispatched directly to the table. |
5085 |
* so that internal messages are dispatched directly to the table. |
5086 |
* If the application expects to see a paint event, the window |
5086 |
* If the application expects to see a paint event or has a child |
5087 |
* proc cannot be unsubclassed or the event will not be seen. |
5087 |
* whose font, foreground or background color might be needed, |
|
|
5088 |
* the window proc cannot be unsubclassed. |
5088 |
*/ |
5089 |
*/ |
5089 |
if (!hooks (SWT.Paint) && !filters (SWT.Paint)) { |
5090 |
if (OS.GetWindow (handle, OS.GW_CHILD) == 0) { |
5090 |
unsubclass (); |
5091 |
if (!hooks (SWT.Paint) && !filters (SWT.Paint)) { |
|
|
5092 |
unsubclass (); |
5093 |
} |
5091 |
} |
5094 |
} |
5092 |
LRESULT result = super.WM_HSCROLL (wParam, lParam); |
5095 |
LRESULT result = super.WM_HSCROLL (wParam, lParam); |
5093 |
subclass (); |
5096 |
subclass (); |
Lines 5120-5130
Link Here
|
5120 |
* When there are many columns in a table, scrolling performance |
5123 |
* When there are many columns in a table, scrolling performance |
5121 |
* can be improved by temporarily unsubclassing the window proc |
5124 |
* can be improved by temporarily unsubclassing the window proc |
5122 |
* so that internal messages are dispatched directly to the table. |
5125 |
* so that internal messages are dispatched directly to the table. |
5123 |
* If the application expects to see a paint event, the window |
5126 |
* If the application expects to see a paint event or has a child |
5124 |
* proc cannot be unsubclassed or the event will not be seen. |
5127 |
* whose font, foreground or background color might be needed, |
|
|
5128 |
* the window proc cannot be unsubclassed. |
5125 |
*/ |
5129 |
*/ |
5126 |
if (!hooks (SWT.Paint) && !filters (SWT.Paint)) { |
5130 |
if (OS.GetWindow (handle, OS.GW_CHILD) == 0) { |
5127 |
unsubclass (); |
5131 |
if (!hooks (SWT.Paint) && !filters (SWT.Paint)) { |
|
|
5132 |
unsubclass (); |
5133 |
} |
5128 |
} |
5134 |
} |
5129 |
LRESULT result = super.WM_VSCROLL (wParam, lParam); |
5135 |
LRESULT result = super.WM_VSCROLL (wParam, lParam); |
5130 |
subclass (); |
5136 |
subclass (); |