~NativeWindowClass()
        {
            if (atom != 0)
                UnregisterClass (getWindowClassName(), (HINSTANCE) Process::getCurrentModuleInstanceHandle());

            clearSingletonInstance();
        }
Exemplo n.º 2
0
void OptionsWindow::_registerWindowClassName()
{
	WNDCLASSEX wcex;

	String windowClassName = getWindowClassName();

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= CustomWindow::preCreateWindowProcedure;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= _application->getHandle();
	wcex.hIcon			= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_LIGHTFOCUS));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_BTNFACE+1);
	wcex.lpszMenuName	= 0;
	wcex.lpszClassName	= windowClassName.c_str();
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

	RegisterClassEx(&wcex);
}
Exemplo n.º 3
0
void OverlayWindow::_registerWindowClassName()
{
	WNDCLASSEX wcex;

	String windowClassName = getWindowClassName();

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= CustomWindow::preCreateWindowProcedure;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= _application->getHandle();
	wcex.hIcon			= 0;
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)GetStockObject(NULL_BRUSH);
	wcex.lpszMenuName	= 0;
	wcex.lpszClassName	= windowClassName.c_str();
	wcex.hIconSm		= 0;

	RegisterClassEx(&wcex);
}
Exemplo n.º 4
0
void BackgroundWindow::_registerWindowClassName()
{
	WNDCLASSEX wcex;

	String windowClassName = getWindowClassName();

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_SAVEBITS;
	wcex.lpfnWndProc	= DefWindowProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= _application->getHandle();
	wcex.hIcon			= 0;
	wcex.hCursor		= 0;
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= 0;
	wcex.lpszClassName	= windowClassName.c_str();
	wcex.hIconSm		= 0;

	RegisterClassEx(&wcex);
}