Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
{
HWND h = CreateWindowExW(0, L"BUTTON", txt,
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
20, y, 260, 35, hwnd, (HMENU)(INT_PTR)id,
20, y, 350, 35, hwnd, (HMENU)(INT_PTR)id,
GetModuleHandleW(nullptr), nullptr);
if (DarkMode::IsActive())
{
Expand Down Expand Up @@ -433,6 +433,9 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
// ─── WinMain ─────────────────────────────────────────────────────────────────
int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInstance, _In_ PWSTR pCmdLine, _In_ int nShow)
{
SetProcessDpiAwarenessContext(
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
Comment on lines +436 to +437
Comment on lines +436 to +437

INITCOMMONCONTROLSEX icc = { sizeof(icc), ICC_WIN95_CLASSES | ICC_STANDARD_CLASSES };
InitCommonControlsEx(&icc);

Expand All @@ -448,7 +451,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInstance, _In_
g_hwnd = CreateWindowExW(0, L"DarkTDDemo",
L"Dark TaskDialog Demo",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 320, 290,
CW_USEDEFAULT, CW_USEDEFAULT, 400, 290,
nullptr, nullptr, hInst, nullptr);
if (DarkMode::IsActive())
{
Expand Down