Skip to content

Commit e4f9851

Browse files
committed
fix hung up
1 parent 68456fa commit e4f9851

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/MAddBitmapDlg.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ class MAddBitmapDlg : public MDialogBase
7676
HWND hwndEdit = info.hwndItem;
7777
m_pAutoComplete->bind(hwndEdit);
7878

79-
DoFile(hwnd, m_file);
80-
8179
CenterWindowDx();
8280

8381
if (m_file)
8482
{
83+
DoFile(hwnd, m_file);
8584
SetFocus(hCmb2);
8685
return FALSE;
8786
}
87+
8888
return TRUE;
8989
}
9090

src/MAddCursorDlg.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class MAddCursorDlg : public MDialogBase
8181

8282
CenterWindowDx();
8383

84-
DoFile(hwnd, m_file);
85-
8684
if (m_file)
8785
{
86+
DoFile(hwnd, m_file);
8887
SetFocus(hCmb2);
8988
return FALSE;
9089
}
90+
9191
return TRUE;
9292
}
9393

src/MAddIconDlg.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class MAddIconDlg : public MDialogBase
8181

8282
CenterWindowDx();
8383

84-
DoFile(hwnd, m_file);
85-
8684
if (m_file)
8785
{
86+
DoFile(hwnd, m_file);
8887
SetFocus(hCmb2);
8988
return FALSE;
9089
}
90+
9191
return TRUE;
9292
}
9393

src/MAddResDlg.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class MAddResDlg : public MDialogBase
9090
if (m_file)
9191
{
9292
SetDlgItemTextW(hwnd, edt1, m_file);
93+
DoFile(hwnd, m_file);
9394
}
9495

9596
// do centering the dialog
@@ -114,8 +115,6 @@ class MAddResDlg : public MDialogBase
114115
HWND hwndEdit = info.hwndItem;
115116
m_pAutoComplete->bind(hwndEdit);
116117

117-
DoFile(hwnd, m_file);
118-
119118
return FALSE;
120119
}
121120

src/MRadWindow.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "Res.hpp"
3232
#include "IconRes.hpp"
3333
#include <map>
34+
#include <memory>
3435
#include <unordered_set> // for std::unordered_set
3536
#include <climits>
3637
#include "MOleHost.hpp"

0 commit comments

Comments
 (0)