I would use an init function to get things moving.
Code:
#include <acknex.h>
typedef struct
{
PANEL* tbar;
PANEL* tbuttons;
PANEL* content;
PANEL* mbar;
char tbar_string;
char mbar_options;
float sizex,sizey;
}XPWIN;
void win_init(XPWIN* win)
{
while(1)
{
win.tbuttons.pos_x= win.tbar.pos_x + (win.tbar.size_x - 16);
win.tbar.size_x= clamp(win.tbar.size_x,win.tbuttons.size_x,1024);
win.content.pos_x= win.tbar.pos_x;
win.content.size_x= win.tbar.size_x;
win.content.size_y= clamp (win.content.size_y,0.05,1024);
wait(1);
}
}
Re: the code: I was gonna try and "fake" a Windows window. But then I took the time to look through a Win32 API tutorial.
