void __stdcall ResizeMainWindow(int Xsize,int Ysize)

Resize the backbuffer. It call the message handler, so that must be active.
Parameters:
New size of the backbuffer:
int Xsize:
int Ysize: