-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (23 loc) · 772 Bytes
/
main.cpp
File metadata and controls
25 lines (23 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "qplayer.h"
#include "Ini.h"
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
DuiLib::CPaintManagerUI::SetInstance(hInstance);
DuiLib::CPaintManagerUI::SetResourcePath(DuiLib::CPaintManagerUI::GetInstancePath() + _T("skin"));
QPlayer* dlg = new QPlayer(true);
if (dlg == NULL){
return 0;
}
dlg->Create(NULL, _T("QPlayer"),
UI_WNDSTYLE_FRAME, //WS_OVERLAPPEDWINDOW,
WS_EX_STATICEDGE | WS_EX_APPWINDOW | WS_EX_ACCEPTFILES);
dlg->CenterWindow();
dlg->ShowWindow(true);
if (lpCmdLine&&lpCmdLine[0])
dlg->OpenFile(lpCmdLine);
DuiLib::CPaintManagerUI::MessageLoop();
return 0;
}