Example #1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    ClockWindow w;
    w.show();

    return a.exec();
}
Example #2
0
int main(int argc, char **argv) {
	QApplication app(argc, argv);
	ClockWindow window;

	app.setApplicationName("DeskClock");
	app.setApplicationVersion("1.0");
	app.setOrganizationDomain("http://seken.co.uk");
	app.setOrganizationName("Markit");

	if (QApplication::desktop()->width() <= 1024) {
		window.showFullScreen();
	} else {
		window.resize(1024, 600);
		window.show();
	}

	return app.exec();
}
Example #3
0
static void CALLBACK HookTaskbar(HWND taskbar, VOID* unused)
{
	ClockWindow* multiClock = new ClockWindow();
	HWND window = multiClock->Create(taskbar, nullptr, nullptr, WS_CHILD | WS_DISABLED, WS_EX_LAYERED | WS_EX_TRANSPARENT, 0U, nullptr);
	if (window == nullptr)
	{
#if _DEBUG
		DWORD error = GetLastError();
		MessageBoxError(error);
#endif
		delete multiClock;
		return;
	}

	multiClock->RepositionIn(taskbar);
	multiClock->ShowWindow(SW_SHOW);
	multiClock->Refresh(true);
}