	HINSTANCE hinst;
	HWND hwndMain;
	HWND hwndDlg;
	RECT dlgRect;
	POINT initDragMouse;
	POINT windowSize;
	RECT  videoWindow;
	RECT  borders;

	DEVMODE *devmodes;		// windows video modes, used by opengl
	long	choosen_mode;	// the offset of the selected video mode
	long    num_modes;		// total number of video modes in windows


	void onlyVideoWindow( RECT *videoWindow)
	{
		videoWindow->left  += borders.left;
		videoWindow->right -= borders.right;
		videoWindow->top   += borders.top;
		videoWindow->bottom-= borders.bottom;
	}
