OfficeAssistant_Win10/OfficeAssistant_msvc/main.cpp

16 lines
305 B
C++
Raw Normal View History

2023-07-26 19:48:14 +08:00
#include "mainwindow.h"
#include <QApplication>
2023-07-27 13:44:54 +08:00
#include <Windows.h>
double scale;
2023-07-26 19:48:14 +08:00
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
2023-07-27 13:44:54 +08:00
HDC hdc = GetDC(NULL);
scale = GetDeviceCaps(hdc, LOGPIXELSX)/96;
ReleaseDC(NULL,hdc);
2023-07-26 19:48:14 +08:00
MainWindow w;
w.show();
return a.exec();
}