設定画面でタブキーによるフォーカス移動が働くように処理追加。
@@ -15,6 +15,11 @@ | ||
15 | 15 | { |
16 | 16 | } |
17 | 17 | |
18 | +BOOL CSettingView::PreTranslateMessage(MSG* pMsg) | |
19 | +{ | |
20 | + return CWindow::IsDialogMessage(pMsg); | |
21 | +} | |
22 | + | |
18 | 23 | LRESULT CSettingView::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) |
19 | 24 | { |
20 | 25 | DoDataExchange(); |
@@ -29,6 +29,8 @@ | ||
29 | 29 | ~CSettingView(); |
30 | 30 | enum { IDD = IDD_SETTING }; |
31 | 31 | |
32 | + BOOL PreTranslateMessage(MSG* pMsg); | |
33 | + | |
32 | 34 | BEGIN_MSG_MAP(CSettingView) |
33 | 35 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) |
34 | 36 | MSG_WM_COMMAND(OnCommand) |
@@ -28,6 +28,9 @@ | ||
28 | 28 | if(CFrameWindowImpl<CMainFrame>::PreTranslateMessage(pMsg)) |
29 | 29 | return TRUE; |
30 | 30 | |
31 | + if (m_pSettingView->PreTranslateMessage(pMsg)) { | |
32 | + return TRUE; | |
33 | + } | |
31 | 34 | return m_pImageView->PreTranslateMessage(pMsg); |
32 | 35 | } |
33 | 36 |