8764cd97c332a11506e7efb06d508a8ada932afb
[tpg/acess2.git] / Usermode / Libraries / libaxwin3.so_src / wm.c
1 /*
2  * AxWin3 Interface Library
3  * - By John Hodge (thePowersGang)
4  *
5  * wm.c
6  * - Core window management functions
7  */
8 #include <axwin3/axwin.h>
9 #include <stdlib.h>
10
11 // === CODE ===
12 tHWND AxWin3_CreateWindow(tHWND Parent, const char *Renderer, int Flags)
13 {
14          int    dataSize = sizeof(tIPCMsg_CreateWin) + strlen(Renderer) + 1;
15         tAxWin_IPCMessage       *msg;
16         tIPCMsg_CreateWin       *create_win;
17
18         msg = alloca( sizeof(tAxWin_IPCMessage) + dataSize );
19         create_win = msg->Data;
20         
21         msg->ID = IPCMSG_CREATEWIN;
22         msg->Flags = 0;
23         msg->Window = Parent;   // TODO: Validation
24         msg->Size = dataSize;
25
26         create_win->NewWinID = AxWin3_int_AllocateWindowID();
27         create_win->Flags = Flags;
28         strcpy(create_win->Renderer, Renderer);
29
30         return NULL;
31 }
32
33 void AxWin3_DestroyWindow(tHWND Window)
34 {
35 }

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