2 * AxWin3 Interface Library
3 * - By John Hodge (thePowersGang)
6 * - Core window management functions
8 #include <axwin3/axwin.h>
12 tHWND AxWin3_CreateWindow(tHWND Parent, const char *Renderer, int Flags)
14 int dataSize = sizeof(tIPCMsg_CreateWin) + strlen(Renderer) + 1;
15 tAxWin_IPCMessage *msg;
16 tIPCMsg_CreateWin *create_win;
18 msg = alloca( sizeof(tAxWin_IPCMessage) + dataSize );
19 create_win = msg->Data;
21 msg->ID = IPCMSG_CREATEWIN;
23 msg->Window = Parent; // TODO: Validation
26 create_win->NewWinID = AxWin3_int_AllocateWindowID();
27 create_win->Flags = Flags;
28 strcpy(create_win->Renderer, Renderer);
33 void AxWin3_DestroyWindow(tHWND Window)