Usermode/AxWin3 - Adding pop-up menu support (via a new window type)
[tpg/acess2.git] / Usermode / include / axwin3 / axwin.h
index b4ad45a..4ad955d 100644 (file)
@@ -13,13 +13,17 @@ typedef unsigned int        tAxWin3_Colour; // TODO: Actual 32-bit
 
 typedef void   (*tAxWin3_MessageCallback)(int SourceTID, int Length);
 
-typedef int    (*tAxWin3_WindowMessageHandler)(tHWND Window, int Length, void *Data);
+typedef int    (*tAxWin3_WindowMessageHandler)(tHWND Window, int Message, int Length, void *Data);
 
 // --- Connection management
 extern void    AxWin3_Connect(const char *ServerDesc);
 extern tAxWin3_MessageCallback AxWin3_SetMessageCallback(tAxWin3_MessageCallback Callback);
 extern void    AxWin3_MainLoop(void);
 
+// --- Non-Window based functions
+extern int     AxWin3_GetDisplayCount(void);
+extern int     AxWin3_GetDisplayDims(int Display, int *X, int *Y, int *Width, int *Height);
+
 // --- Window creation/deletion
 /**
  * \brief Create a new window (with the required client structures)
@@ -44,7 +48,7 @@ extern tHWND  AxWin3_CreateWindow(
 extern void    AxWin3_DestroyWindow(tHWND Window);
 
 // --- Core window management functions
-extern void    AxWin3_SendMessage(tHWND Window, int Length, void *Data);
+extern void    AxWin3_SendMessage(tHWND Window, tHWND Dest, int Message, int Length, void *Data);
 extern void    AxWin3_ShowWindow(tHWND Window, int bShow);
 extern void    AxWin3_SetWindowPos(tHWND Window, short X, short Y, short W, short H);
 extern void    AxWin3_MoveWindow(tHWND Window, short X, short Y);

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