Skip to content

Commit

Permalink
CHexDlgModify is now MFC free. Child dialogs (tabs) keyboard navigati…
Browse files Browse the repository at this point in the history
…on now works correctly.

wnd::CWndTab class added.
  • Loading branch information
jovibor committed Dec 23, 2024
1 parent 59bc632 commit e0cee8f
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 304 deletions.
6 changes: 3 additions & 3 deletions HexCtrl/src/CHexCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ auto CHexCtrl::GetWndHandle(EHexWnd eWnd, bool fCreate)const->HWND
}
return m_pDlgDataInterp->m_hWnd;
case EHexWnd::DLG_MODIFY:
if (!IsWindow(m_pDlgModify->m_hWnd) && fCreate) {
m_pDlgModify->Create(IDD_HEXCTRL_MODIFY, CWnd::FromHandle(m_hWnd));
if (!IsWindow(m_pDlgModify->GetHWND()) && fCreate) {
m_pDlgModify->CreateDlg();
}
return m_pDlgModify->m_hWnd;
return m_pDlgModify->GetHWND();
case EHexWnd::DLG_SEARCH:
if (!IsWindow(m_pDlgSearch->m_hWnd) && fCreate) {
m_pDlgSearch->Create(IDD_HEXCTRL_SEARCH, CWnd::FromHandle(m_hWnd));
Expand Down
2 changes: 1 addition & 1 deletion HexCtrl/src/Dialogs/CHexDlgDataInterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ BOOL CHexDlgDataInterp::ShowWindow(int nCmdShow)

void CHexDlgDataInterp::UpdateData()
{
if (!::IsWindowVisible(m_hWnd)) {
if (!::IsWindow(m_hWnd) || !::IsWindowVisible(m_hWnd)) {
return;
}

Expand Down
Loading

0 comments on commit e0cee8f

Please sign in to comment.