Skip to content

Commit

Permalink
Make maximum history files configurable, issue #886.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Oct 16, 2024
1 parent 75a543a commit b1b1f95
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 39 deletions.
2 changes: 2 additions & 0 deletions locale/de/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "&Verlauf beim Beenden speichern",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>Verlauf löschen</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "Abbrechen",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/fr/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "Mémoriser les fichiers récemment ouvert à la fermeture.",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>Effacer l'historique</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "Annuler",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/it/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "&Ricorda file recenti all'uscita.",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>Elimina Cronologia</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,157,169,64,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "Annulla",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/ja/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "終了時に最近使ったファイル一覧を保存(&R)",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>履歴を消去</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "キャンセル",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/ko/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "종료 시 최근 파일 기억(&R)",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>기록 지우기</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "확인",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "취소",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/pt-BR/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "&Remember recent files on exit.",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>Clear History</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "Cancel",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/zh-Hans/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "退出时记住最近的文件(&R)",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "最大文件数:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>清除历史</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "确定",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "取消",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions locale/zh-Hant/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "離開時記住最近的檔案(&R)",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "最大檔案數:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>清除歷史</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "確定",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "取消",IDCANCEL,169,183,50,14
Expand Down
6 changes: 6 additions & 0 deletions src/Dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ bool AddToFavDlg(HWND hwnd, LPCWSTR lpszName, LPCWSTR lpszTarget) {
//
extern MRUList mruFile;
extern bool bSaveRecentFiles;
extern int iMaxRecentFiles;
extern int cxFileMRUDlg;
extern int cyFileMRUDlg;

Expand Down Expand Up @@ -1092,6 +1093,7 @@ static INT_PTR CALLBACK FileMRUDlgProc(HWND hwnd, UINT umsg, WPARAM wParam, LPAR

// Update view
SendWMCommand(hwnd, IDC_FILEMRU_UPDATE_VIEW);
SetDlgItemInt(hwnd, IDC_MRU_COUNT_VALUE, iMaxRecentFiles, FALSE);

if (bSaveRecentFiles) {
CheckDlgButton(hwnd, IDC_SAVEMRU, BST_CHECKED);
Expand All @@ -1108,6 +1110,8 @@ static INT_PTR CALLBACK FileMRUDlgProc(HWND hwnd, UINT umsg, WPARAM wParam, LPAR
GlobalFree(worker);

bSaveRecentFiles = IsButtonChecked(hwnd, IDC_SAVEMRU);
iMaxRecentFiles = GetDlgItemInt(hwnd, IDC_MRU_COUNT_VALUE, nullptr, FALSE);
iMaxRecentFiles = max(iMaxRecentFiles, MRU_MAXITEMS);

ResizeDlg_Destroy(hwnd, &cxFileMRUDlg, &cyFileMRUDlg);
}
Expand All @@ -1126,6 +1130,8 @@ static INT_PTR CALLBACK FileMRUDlgProc(HWND hwnd, UINT umsg, WPARAM wParam, LPAR
hdwp = DeferCtlPos(hdwp, hwnd, IDC_FILEMRU, dx, dy, SWP_NOMOVE);
hdwp = DeferCtlPos(hdwp, hwnd, IDC_EMPTY_MRU, dx, dy, SWP_NOSIZE);
hdwp = DeferCtlPos(hdwp, hwnd, IDC_SAVEMRU, 0, dy, SWP_NOSIZE);
hdwp = DeferCtlPos(hdwp, hwnd, IDC_MRU_COUNT_LABEL, 0, dy, SWP_NOSIZE);
hdwp = DeferCtlPos(hdwp, hwnd, IDC_MRU_COUNT_VALUE, 0, dy, SWP_NOSIZE);
EndDeferWindowPos(hdwp);
ListView_SetColumnWidth(GetDlgItem(hwnd, IDC_FILEMRU), 0, LVSCW_AUTOSIZE_USEHEADER);
}
Expand Down
55 changes: 28 additions & 27 deletions src/Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2296,11 +2296,12 @@ void ComboBox_AddStringA2W(UINT uCP, HWND hwnd, LPCSTR lpString) noexcept {
//
// MRU functions
//
void MRUList::Init(LPCWSTR pszRegKey, int flags) noexcept {
void MRUList::Init(LPCWSTR pszRegKey, int capacity_, int flags) noexcept {
iSize = 0;
capacity = capacity_;
iFlags = flags;
szRegKey = pszRegKey;
memset(AsVoidPointer(pszItems), 0, sizeof(pszItems));
pszItems = static_cast<LPWSTR *>(NP2HeapAlloc(sizeof(LPWSTR) * capacity_));
Load();
}

Expand All @@ -2316,7 +2317,7 @@ void MRUList::Add(LPCWSTR pszNew) noexcept {
const int flags = iFlags;
LPWSTR tchItem = nullptr;
int i;
for (i = 0; i < MRU_MAXITEMS; i++) {
for (i = 0; i < capacity; i++) {
WCHAR * const item = pszItems[i];
if (item == nullptr) {
break;
Expand All @@ -2326,7 +2327,7 @@ void MRUList::Add(LPCWSTR pszNew) noexcept {
break;
}
}
if (i == MRU_MAXITEMS) {
if (i == capacity) {
--i;
LocalFree(pszItems[i]);
} else if (i == iSize) {
Expand Down Expand Up @@ -2364,7 +2365,7 @@ void MRUList::Delete(int iIndex) noexcept {

void MRUList::DeleteFileFromStore(LPCWSTR pszFile) const noexcept {
MRUList mruStore;
mruStore.Init(szRegKey, iFlags);
mruStore.Init(szRegKey, capacity, iFlags);
int deleted = 0;

for (int index = 0; index < mruStore.iSize; ) {
Expand All @@ -2384,10 +2385,10 @@ void MRUList::DeleteFileFromStore(LPCWSTR pszFile) const noexcept {

mruStore.iSize -= deleted;
mruStore.Save();
mruStore.Empty(false);
mruStore.Empty(false, true);
}

void MRUList::Empty(bool save) noexcept {
void MRUList::Empty(bool save, bool destroy) noexcept {
for (int i = 0; i < iSize; i++) {
LocalFree(pszItems[i]);
pszItems[i] = nullptr;
Expand All @@ -2396,6 +2397,10 @@ void MRUList::Empty(bool save) noexcept {
if (save && StrNotEmpty(szIniFile)) {
IniClearSection(szRegKey);
}
if (destroy) {
NP2HeapFree(AsVoidPointer(pszItems));
pszItems = nullptr;
}
}

void MRUList::Load() noexcept {
Expand All @@ -2404,10 +2409,10 @@ void MRUList::Load() noexcept {
}

IniSectionParser section;
WCHAR *pIniSectionBuf = static_cast<WCHAR *>(NP2HeapAlloc(sizeof(WCHAR) * MAX_INI_SECTION_SIZE_MRU));
WCHAR *pIniSectionBuf = static_cast<WCHAR *>(NP2HeapAlloc(sizeof(WCHAR) * MAX_MRU_ITEM_SIZE * capacity));
const DWORD cchIniSection = static_cast<DWORD>(NP2HeapSize(pIniSectionBuf) / sizeof(WCHAR));

section.Init(MRU_MAXITEMS);
section.Init(capacity);
LoadIniSection(szRegKey, pIniSectionBuf, cchIniSection);
section.ParseArray(pIniSectionBuf, iFlags & MRUFlags_QuoteValue);
UINT n = 0;
Expand Down Expand Up @@ -2439,7 +2444,7 @@ void MRUList::Save() const noexcept {
}

WCHAR tchName[16];
WCHAR *pIniSectionBuf = static_cast<WCHAR *>(NP2HeapAlloc(sizeof(WCHAR) * MAX_INI_SECTION_SIZE_MRU));
WCHAR *pIniSectionBuf = static_cast<WCHAR *>(NP2HeapAlloc(sizeof(WCHAR) * MAX_MRU_ITEM_SIZE * capacity));
IniSectionBuilder section = { pIniSectionBuf };

for (int i = 0; i < iSize; i++) {
Expand All @@ -2464,23 +2469,19 @@ void MRUList::Save() const noexcept {
}

void MRUList::MergeSave(bool keep) noexcept {
if (!keep || StrIsEmpty(szIniFile)) {
Empty(true);
return;
}
if (iSize <= 0) {
return;
}

MRUList mruBase;
mruBase.Init(szRegKey, iFlags);
for (int i = iSize - 1; i >= 0; i--) {
mruBase.Add(pszItems[i]);
}

mruBase.Save();
mruBase.Empty(false);
Empty(false);
if (keep && iSize > 0 && StrNotEmpty(szIniFile)) {
LPWSTR * const current = pszItems;
const int count = iSize;
Init(szRegKey, capacity, iFlags);
for (int i = count - 1; i >= 0; i--) {
LPWSTR path = current[i];
Add(path);
LocalFree(path);
}
NP2HeapFree(AsVoidPointer(current));
Save();
}
Empty(!keep, true);
}

void MRUList::AddToCombobox(HWND hwnd) const noexcept {
Expand Down
11 changes: 6 additions & 5 deletions src/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,21 +789,22 @@ enum {
MRUFlags_PortableMyDocs = 8,
};

// MRU_MAXITEMS * (MAX_PATH + 4)
#define MAX_INI_SECTION_SIZE_MRU (8 * 1024)
// num=path\0
#define MAX_MRU_ITEM_SIZE (MAX_PATH + 5)

struct MRUList {
int iSize;
int capacity;
int iFlags;
LPCWSTR szRegKey;
LPWSTR pszItems[MRU_MAXITEMS];
LPWSTR *pszItems;

void Init(LPCWSTR pszRegKey, int flags) noexcept;
void Init(LPCWSTR pszRegKey, int capacity_, int flags) noexcept;
void Add(LPCWSTR pszNew) noexcept;
void AddMultiline(LPCWSTR pszNew) noexcept;
void Delete(int iIndex) noexcept;
void DeleteFileFromStore(LPCWSTR pszFile) const noexcept;
void Empty(bool save) noexcept;
void Empty(bool save, bool destroy = false) noexcept;
void Load() noexcept;
void Save() const noexcept;
void MergeSave(bool keep) noexcept;
Expand Down
19 changes: 12 additions & 7 deletions src/Notepad4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ WCHAR szIniFile[MAX_PATH] = L"";
static WCHAR szIniFile2[MAX_PATH] = L"";
static bool bSaveSettings;
bool bSaveRecentFiles;
int iMaxRecentFiles;
static bool bSaveFindReplace;
static WCHAR tchLastSaveCopyDir[MAX_PATH] = L"";
WCHAR tchOpenWithDir[MAX_PATH];
Expand Down Expand Up @@ -1884,9 +1885,9 @@ LRESULT MsgCreate(HWND hwnd, WPARAM wParam, LPARAM lParam) noexcept {

// File MRU
const int flags = MRUFlags_FilePath | (static_cast<int>(flagRelativeFileMRU) * MRUFlags_RelativePath) | (static_cast<int>(flagPortableMyDocs) * MRUFlags_PortableMyDocs);
mruFile.Init(MRU_KEY_RECENT_FILES, flags);
mruFind.Init(MRU_KEY_RECENT_FIND, MRUFlags_QuoteValue);
mruReplace.Init(MRU_KEY_RECENT_REPLACE, MRUFlags_QuoteValue);
mruFile.Init(MRU_KEY_RECENT_FILES, iMaxRecentFiles, flags);
mruFind.Init(MRU_KEY_RECENT_FIND, MRU_MAXITEMS, MRUFlags_QuoteValue);
mruReplace.Init(MRU_KEY_RECENT_REPLACE, MRU_MAXITEMS, MRUFlags_QuoteValue);
return 0;
}

Expand Down Expand Up @@ -5055,7 +5056,8 @@ LRESULT MsgNotify(HWND hwnd, WPARAM wParam, LPARAM lParam) {
MENUITEMINFO mii;
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_STRING | MIIM_BITMAP;
for (int i = 0; i < mruFile.iSize; i++) {
const int count = min(mruFile.iSize, MRU_MAXITEMS);
for (int i = 0; i < count; i++) {
LPCWSTR path = mruFile.pszItems[i];
HBITMAP hbmp = bitmapCache.Get(path);
mii.wID = i + IDM_RECENT_HISTORY_START;
Expand Down Expand Up @@ -5222,7 +5224,9 @@ void LoadSettings() noexcept {
pt.x = section.GetInt(L"WindowPosX", 0);
pt.y = section.GetInt(L"WindowPosY", 0);

bSaveRecentFiles = section.GetBool(L"SaveRecentFiles", false);
iValue = section.GetInt(L"SaveRecentFiles", MRU_MAXITEMS << 1);
bSaveRecentFiles = iValue & true;
iMaxRecentFiles = max(iValue >> 1, MRU_MAXITEMS);
bSaveFindReplace = section.GetBool(L"SaveFindReplace", false);
iValue = section.GetInt(L"FindReplaceOption", FindReplaceOption_Default);
iFindReplaceOption = iValue & 15;
Expand Down Expand Up @@ -5566,9 +5570,10 @@ void SaveSettings(bool bSaveSettingsNow) noexcept {
section.SetInt(L"WindowPosY", wi.y);
}

section.SetBoolEx(L"SaveRecentFiles", bSaveRecentFiles, false);
int iValue = (iMaxRecentFiles << 1) | static_cast<int>(bSaveRecentFiles);
section.SetIntEx(L"SaveRecentFiles", iValue, MRU_MAXITEMS << 1);
section.SetBoolEx(L"SaveFindReplace", bSaveFindReplace, false);
int iValue = iFindReplaceOption | ((efrData.option & FindReplaceOption_BehaviorMask) << 4);
iValue = iFindReplaceOption | ((efrData.option & FindReplaceOption_BehaviorMask) << 4);
section.SetIntEx(L"FindReplaceOption", iValue, FindReplaceOption_Default);
if (bSaveFindReplace) {
iValue = efrData.fuFlags | ((efrData.option & FindReplaceOption_SearchMask) << 10);
Expand Down
2 changes: 2 additions & 0 deletions src/Notepad4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_FILEMRU,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,7,212,158
AUTOCHECKBOX "&Remember recent files on exit.",IDC_SAVEMRU,7,169,155,10,WS_TABSTOP
LTEXT "Maximum files:",IDC_MRU_COUNT_LABEL,7,185,64,8
EDITTEXT IDC_MRU_COUNT_VALUE,73,183,30,13,ES_NUMBER | ES_AUTOHSCROLL
CONTROL "<a>Clear History</a>",IDC_EMPTY_MRU,"SysLink",WS_TABSTOP,172,169,48,10
DEFPUSHBUTTON "OK",IDOK,113,183,50,14,WS_DISABLED
PUSHBUTTON "Cancel",IDCANCEL,169,183,50,14
Expand Down
2 changes: 2 additions & 0 deletions src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
#define IDC_FILEMRU 100
#define IDC_SAVEMRU 102
#define IDC_EMPTY_MRU 103
#define IDC_MRU_COUNT_LABEL 104
#define IDC_MRU_COUNT_VALUE 105
#define IDC_FILEMRU_UPDATE_VIEW 110 // pseudo control
// File Change Notification
#define IDD_CHANGENOTIFY 110
Expand Down

0 comments on commit b1b1f95

Please sign in to comment.