Quote Originally Posted by Lowercase
So the best way to prevent this problem would be to call another procedure than glresizewnd in the glcreatewnd function ?
no. but your GetClientRect solution is not proper either, since the dimensions will match those retrieved from the message queve and fix something that is not broken.

my solution:

find call to CreateWindowExA and make it use: Width - 1

after calling showwindow, setfocus and setforeground window, etc.. add this:

// fix the window and window projection, this will also call GLResizeWnd
MoveWindow(h_wnd,
(GetSystemMetrics(SM_CXSCREEN) div 2) - (Width div 2),
(GetSystemMetrics(SM_CYSCREEN) div 2) - (Height div 2),
Width, Height, True);