Usermode/AxWin3 - Implemented Focus/Raising support
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / wm_messages.h
index 0bebfda..df20d77 100644 (file)
@@ -8,6 +8,9 @@
 #ifndef _WM_MESSAGES_H_
 #define _WM_MESSAGES_H_
 
+/**
+ * \brief Messages delivered to windows
+ */
 enum eWM_WindowMessages
 {
        WNDMSG_NULL,
@@ -16,6 +19,8 @@ enum eWM_WindowMessages
        WNDMSG_DESTROY,
        WNDMSG_FOCUS,   // Called on change
        WNDMSG_SHOW,    // Called on change
+
+       WNDMSG_RESIZE,
        
        WNDMSG_MOUSEMOVE,
        WNDMSG_MOUSEBTN,
@@ -27,4 +32,27 @@ enum eWM_WindowMessages
        WNDMSG_CLASS_MAX = 0x2000,
 };
 
+struct sWndMsg_Bool
+{
+        uint8_t        Val;
+};
+
+struct sWndMsg_Resize
+{
+       uint16_t        W, H;
+};
+
+struct sWndMsg_MouseMove
+{
+        int16_t        X, Y;
+        int16_t        dX, dY;
+};
+
+struct sWndMsg_MouseButton
+{
+       uint16_t        X, Y;
+       uint8_t         Button;
+       uint8_t         bPressed;
+};
+
 #endif

UCC git Repository :: git.ucc.asn.au