Skip to content

Commit

Permalink
Merge df44223 into 526f512
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoide authored Dec 9, 2020
2 parents 526f512 + df44223 commit 6073a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sakura_core/dlg/CDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,11 @@ LRESULT CALLBACK SubEditProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
void CDialog::SetComboBoxDeleter(HWND hwndCtl, CRecent* pRecent)
{
assert(pRecent);
assert((::GetWindowLongPtr(hwndCtl, GWL_STYLE) & 0b11) != CBS_DROPDOWNLIST);

COMBOBOXINFO info = { sizeof(COMBOBOXINFO) };
if (!::GetComboBoxInfo(hwndCtl, &info))
return;
assert(info.hwndCombo != info.hwndItem);
::SetWindowSubclass(info.hwndItem, SubEditProc, 0, (DWORD_PTR)pRecent);
}
3 changes: 0 additions & 3 deletions sakura_core/dlg/CDlgOpenFile_CommonFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,6 @@ UINT_PTR CALLBACK OFNHookProc(

/* ビューモードの初期値セット */
::CheckDlgButton( pData->m_hwndOpenDlg, chx1, pData->m_bViewMode );

CDialog::SetComboBoxDeleter(pData->m_hwndComboMRU, &pData->m_cRecentFile);
CDialog::SetComboBoxDeleter(pData->m_hwndComboOPENFOLDER, &pData->m_cRecentFolder);
}
break;

Expand Down

0 comments on commit 6073a73

Please sign in to comment.