GetWindowPlacement(hwnd, &old_wind_placement); SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~((cfg.scrollbar_in_fullscreen ? 0 : WS_VSCROLL) | WS_CAPTION | WS_BORDER | WS_THICKFRAME));  SetWindowPos(hwnd, HWND_TOP, x, y, cx, cy, SWP_FRAMECHANGED);
wp.showCmd = SW_SHOWMAXIMIZED; SetWindowPlacement(hwnd, &wp);
static void flip_full_screen(void){    want_full_screen = !want_full_screen;    if (full_screen == want_full_screen)	return;    full_screen = want_full_screen;    old_wind_placement.length = sizeof(old_wind_placement);    if (full_screen) {	int x, y, cx, cy;#if !defined(NO_MULTIMON) && defined(MONITOR_DEFAULTTONEAREST)	/* The multi-monitor safe way of doing things */	HMONITOR	mon;	MONITORINFO	mi;	mon = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST);	mi.cbSize = sizeof(mi);	GetMonitorInfo(mon, &mi);	x = mi.rcMonitor.left;	y = mi.rcMonitor.top;	cx = mi.rcMonitor.right;	cy = mi.rcMonitor.bottom;#else	/* good old fashioned way of doing it */	x = 0;	y = 0;	cx = GetSystemMetrics(SM_CXSCREEN);	cy = GetSystemMetrics(SM_CYSCREEN);#endif	/* save rows for when we "restore" back down again */	pre_fs_rows = rows;	pre_fs_cols = cols;	GetWindowPlacement(hwnd, &old_wind_placement);	SetWindowLong(hwnd, GWL_STYLE,		      GetWindowLong(hwnd, GWL_STYLE)		      & ~((cfg.scrollbar_in_fullscreen ? 0 : WS_VSCROLL)			  | WS_CAPTION | WS_BORDER | WS_THICKFRAME));	/* become topmost */	SetWindowPos(hwnd, HWND_TOP, x, y, cx, cy, SWP_FRAMECHANGED);    } else {	was_full_screen = 1;	SetWindowLong(hwnd, GWL_STYLE,		      GetWindowLong(hwnd, GWL_STYLE)		      | (cfg.scrollbar ? WS_VSCROLL : 0)		      | WS_CAPTION | WS_BORDER | WS_THICKFRAME);	SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0,		     SWP_NOMOVE|SWP_NOSIZE|SWP_FRAMECHANGED);	SetWindowPlacement(hwnd,&old_wind_placement);    }    CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,		  MF_BYCOMMAND| full_screen ? MF_CHECKED : MF_UNCHECKED);}