Skip to content

Commit

Permalink
some change idk i forgot what this does tbh
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed Nov 9, 2020
1 parent 5f711d0 commit 28c6c06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dominohook/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Common.h"
#include "INIReader.h"
#include "resource.h"
#include "CMainFrame.h"
#include "Settings.h"

Settings* Settings::m_pInstance;
Expand Down Expand Up @@ -79,7 +80,7 @@ INT_PTR CALLBACK SettingsDlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPar
void Settings::OpenDialog() {
auto& hwnd = GetInstance()->m_hWnd;
if (!hwnd)
hwnd = CreateDialogA((HINSTANCE)&__ImageBase, MAKEINTRESOURCEA(IDD_SETTINGS), NULL, SettingsDlgProc);
hwnd = CreateDialogA((HINSTANCE)&__ImageBase, MAKEINTRESOURCEA(IDD_SETTINGS), (*g_pMainFrame)->m_hWnd, SettingsDlgProc);
ShowWindow(hwnd, TRUE);
SetFocus(hwnd);
}

0 comments on commit 28c6c06

Please sign in to comment.