Changeset 217:8efa9bb96c53
- Timestamp:
- 05/18/08 13:54:28
(3 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
added overrides and reverted OS.CallWindowProc?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r213 |
r217 |
|
| 12 | 12 | *******************************************************************************/ |
|---|
| 13 | 13 | module dwt.widgets.Composite; |
|---|
| 14 | | |
|---|
| 15 | 14 | |
|---|
| 16 | 15 | import dwt.DWT; |
|---|
| … | … | |
| 213 | 212 | } |
|---|
| 214 | 213 | |
|---|
| 215 | | void checkComposited () { |
|---|
| | 214 | override void checkComposited () { |
|---|
| 216 | 215 | if ((state & CANVAS) !is 0) { |
|---|
| 217 | 216 | if ((style & DWT.TRANSPARENT) !is 0) { |
|---|
| … | … | |
| 753 | 752 | } |
|---|
| 754 | 753 | |
|---|
| 755 | | void releaseParent () { |
|---|
| | 754 | override void releaseParent () { |
|---|
| 756 | 755 | super.releaseParent (); |
|---|
| 757 | 756 | if ((state & CANVAS) !is 0) { |
|---|
| … | … | |
| 870 | 869 | } |
|---|
| 871 | 870 | |
|---|
| 872 | | void sendResize () { |
|---|
| | 871 | override void sendResize () { |
|---|
| 873 | 872 | setResizeChildren (false); |
|---|
| 874 | 873 | super.sendResize (); |
|---|
| … | … | |
| 907 | 906 | } |
|---|
| 908 | 907 | |
|---|
| 909 | | void setBounds (int x, int y, int width, int height, int flags, bool defer) { |
|---|
| | 908 | override void setBounds (int x, int y, int width, int height, int flags, bool defer) { |
|---|
| 910 | 909 | if (display.resizeCount > Display.RESIZE_LIMIT) { |
|---|
| 911 | 910 | defer = false; |
|---|
| … | … | |
| 1645 | 1644 | } |
|---|
| 1646 | 1645 | |
|---|
| 1647 | | LRESULT wmNCPaint (HWND hwnd, int wParam, int lParam) { |
|---|
| | 1646 | override LRESULT wmNCPaint (HWND hwnd, int wParam, int lParam) { |
|---|
| 1648 | 1647 | LRESULT result = super.wmNCPaint (hwnd, wParam, lParam); |
|---|
| 1649 | 1648 | if (result !is null) return result; |
|---|
| r213 |
r217 |
|
| 28 | 28 | |
|---|
| 29 | 29 | import dwt.dwthelper.utils; |
|---|
| 30 | | import tango.util.log.Trace; |
|---|
| | 30 | //import tango.util.log.Trace; |
|---|
| 31 | 31 | void trc( long line ){ |
|---|
| 32 | 32 | //Trace.formatln( "Scrollable {}", line ); |
|---|
| … | … | |
| 401 | 401 | } |
|---|
| 402 | 402 | |
|---|
| 403 | | LRESULT wmNCPaint (HWND hwnd, int /*long*/ wParam, int /*long*/ lParam) { |
|---|
| | 403 | override LRESULT wmNCPaint (HWND hwnd, int /*long*/ wParam, int /*long*/ lParam) { |
|---|
| 404 | 404 | LRESULT result = super.wmNCPaint (hwnd, wParam, lParam); |
|---|
| 405 | 405 | if (result !is null) return result; |
|---|
| r214 |
r217 |
|
| 364 | 364 | PAINTSTRUCT ps; |
|---|
| 365 | 365 | auto hDC = OS.BeginPaint (hwnd, &ps); |
|---|
| 366 | | code = TableProc( hwnd, OS.WM_PAINT, cast(int)hDC, lParam); |
|---|
| | 366 | code = OS.CallWindowProc (TableProc, hwnd, OS.WM_PAINT, cast(int)hDC, lParam); |
|---|
| 367 | 367 | OS.EndPaint (hwnd, &ps); |
|---|
| 368 | 368 | } else { |
|---|
| 369 | | code = TableProc( hwnd, msg, wParam, lParam); |
|---|
| | 369 | code = OS.CallWindowProc (TableProc, hwnd, msg, wParam, lParam); |
|---|
| 370 | 370 | } |
|---|
| 371 | 371 | if (fixScroll) { |
|---|
| r213 |
r217 |
|
| 907 | 907 | default: |
|---|
| 908 | 908 | } |
|---|
| 909 | | return oldProc( hwnd, msg, wParam, lParam); |
|---|
| | 909 | return OS.CallWindowProc( oldProc, hwnd, msg, wParam, lParam); |
|---|
| 910 | 910 | } |
|---|
| 911 | 911 | |
|---|