hi,
i was wondering if it was at all possible to include a function that will detect the screen width and height, so that windows can be automatically opened at a maximum size,
i did do a bit of research on the topic, if you do consider adding this feature this might help,
On windows:
screenwidth = (GetSystemMetrics( SM_CXFULLSCREEN ));
screenheight = (GetSystemMetrics( SM_CYFULLSCREEN ));
On X11:
Display *display_name;
display_name = XOpenDisplay(NULL);
screenwidth = DisplayWidth(display_name,screen);
screenheight = DisplayHeight(display_name,screen);
On mac, using carbon
Rect outAvailableRect;
GetAvailableWindowPositioningBounds ( GetMainDevice(), &outAvailableRect);
screenwidth = outAvailableRect.right - outAvailableRect.left;
screenheight = outAvailableRect.bottom - outAvailableRect.top;
I am not sure if these are totally correct or if it is covers all that is needed, but please consider this.
later
vurentjie