//***********************************************************//
// Demo:    Lens Flare Editor
// Author:  terror
// Spec:    demo for gamedev.ru
//***********************************************************//
#include <windows.h>
#include "dlgref.h"


bool window_t::DLG_CreateDialog ( int DialogID, DLGPROC dlgProc, HINSTANCE	hInstance, bool show )
{
	RECT r;
	int	 desktop_height,desktop_width;

	DlgID = DialogID;
	GetWindowRect(GetDesktopWindow(), &r);
	desktop_width = r.right - r.left;
	desktop_height = r.bottom - r.top;
	hWnd = CreateDialog ( hInstance, MAKEINTRESOURCE(DlgID), GetDesktopWindow(), dlgProc );
	GetWindowRect ( hWnd, &r );
	Width = r.right - r.left;
	Height = r.bottom - r.top;
	hDC = GetDC ( hWnd );

	if ( show )
		ShowWindow ( hWnd, SW_SHOW );

	return true;
}


bool window_t::DLG_ReleaseDialog ( void )
{
	ReleaseDC ( hWnd, hDC );
	return true;
}


void window_t::Visible ( bool visible )
{

}

