Exemple #1
0
void dDll::changeHWND( HWND hwnd )
{
	m_hwnd = hwnd;

	if ( m_dUploadDll.isLoaded() )
		setHWND( m_hwnd );
}
Exemple #2
0
bool D3DWindow::initalize(bool VSync, bool FullScreen)
{
    setHWND( Window::createHWND( 0, L"D3DWindow" ) );
    D3D11::ScreenMode sm;

    // Get the screen mode settings
    d3d->getScreenSettings(sm ,1024,768);

    return d3d->initalizeDisplay( getHWND(), VSync, FullScreen, sm );
}
Exemple #3
0
//
//   FUNCTION: InitInstance(HINSTANCE, int)
//
//   PURPOSE: Saves instance handle and creates main window
//
//   COMMENTS:
//
//        In this function, we save the instance handle in a global variable and
//        create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
	HWND hWnd;

	hInst = hInstance; // Store instance handle in our global variable

	hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
		CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

	if (!hWnd)
	{
		return FALSE;
	}

	setHWND(hWnd);
	initialize();

	ShowWindow(hWnd, nCmdShow);
	UpdateWindow(hWnd);

	return TRUE;
}