summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
committerrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
commit935434333badb8376f9dde535ddc50c18e9af3aa (patch)
treea5bdbc9159ef2a9e4438fbff08ec11d3adba7744 /src/window_gui.h
parentf23026cce8fa49974e3dd06e00dd073cb45f906b (diff)
downloadopenttd-935434333badb8376f9dde535ddc50c18e9af3aa.tar.xz
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index cafd5b060..ebe2f4a49 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -131,7 +131,6 @@ enum WindowEventCodes {
WE_PLACE_PRESIZE,
WE_DROPDOWN_SELECT,
WE_RESIZE, ///< Request to resize the window, @see WindowEvent.we.resize
- WE_MESSAGE, ///< Receipt of a message from another window. @see WindowEvent.we.message, SendWindowMessage(), SendWindowMessageClass()
WE_SCROLL,
WE_INVALIDATE_DATA, ///< Notification that data displayed by the window is obsolete
WE_CTRL_CHANGED, ///< CTRL key has changed state
@@ -192,10 +191,8 @@ struct WindowEvent {
} keypress;
struct {
- int msg; ///< message to be sent
- int wparam; ///< additional message-specific information
- int lparam; ///< additional message-specific information
- } message;
+ int data;
+ } invalidate;
struct {
Point delta; ///< delta position against position of last call
@@ -274,16 +271,6 @@ struct ResizeInfo {
};
/**
- * Message data structure for messages sent between winodows
- * @see SendWindowMessageW()
- */
-struct WindowMessage {
- int msg;
- int wparam;
- int lparam;
-};
-
-/**
* Data structure for an opened window
*/
struct Window : ZeroedMemoryAllocator {
@@ -322,7 +309,6 @@ public:
uint widget_count; ///< Number of widgets of the window
uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag
- WindowMessage message; ///< Buffer for storing received messages (for communication between different window events)
Window *parent; ///< Parent window
byte custom[WINDOW_CUSTOM_SIZE]; ///< Additional data depending on window type