提交测试,基本完成
This commit is contained in:
@ -2,9 +2,16 @@
|
||||
#include <QApplication>
|
||||
#include <Windows.h>
|
||||
double scale;
|
||||
bool autostart = false;
|
||||
bool agree = false;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
QStringList args = a.arguments();
|
||||
if(args.contains("autostart"))
|
||||
{
|
||||
autostart = true;
|
||||
}
|
||||
HDC hdc = GetDC(NULL);
|
||||
scale = GetDeviceCaps(hdc, LOGPIXELSX)/96;
|
||||
ReleaseDC(NULL,hdc);
|
||||
|
Reference in New Issue
Block a user