on_maximize
The event is executed after maximizing the engine window through clicking the maximize icon.
A7.80on_minimize
The event is executed after minimizing the engine window through clicking the minimize icon.
A7.80on_resize
The event is executed when the size of the application window was changed otherwise, f.i. by restoring from a maximized or minimized state, or by dragging the border.
A7.80Remarks:
- The new size of the inner window area can be retrieved through the GetClientRect Windows API function, and can be used for adapting the engine resolution to the new window size.
Example:
#include <windows.h>
...
function on_maximize_event() // adapt the engine resolution to the window size
{
RECT r;
GetClientRect(hWnd,&r);
video_set(r.right,r.bottom,0,0);
}
See also:
on_maximize, on_close, on_click, on_mouse_left, on_mouse_stop, on_joy,
on_f1, on_anykey
► latest
version online