• R/O
  • SSH
  • HTTPS

jyeipegyuu: 提交


Commit MetaInfo

修订版19 (tree)
时间2010-10-12 12:41:14
作者berupon

Log Message

設定画面でタブキーによるフォーカス移動が働くように処理追加。

更改概述

差异

--- ImageCompressionAnalyzer/SettingView.cpp (revision 18)
+++ ImageCompressionAnalyzer/SettingView.cpp (revision 19)
@@ -15,6 +15,11 @@
1515 {
1616 }
1717
18+BOOL CSettingView::PreTranslateMessage(MSG* pMsg)
19+{
20+ return CWindow::IsDialogMessage(pMsg);
21+}
22+
1823 LRESULT CSettingView::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
1924 {
2025 DoDataExchange();
--- ImageCompressionAnalyzer/SettingView.h (revision 18)
+++ ImageCompressionAnalyzer/SettingView.h (revision 19)
@@ -29,6 +29,8 @@
2929 ~CSettingView();
3030 enum { IDD = IDD_SETTING };
3131
32+ BOOL PreTranslateMessage(MSG* pMsg);
33+
3234 BEGIN_MSG_MAP(CSettingView)
3335 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
3436 MSG_WM_COMMAND(OnCommand)
--- ImageCompressionAnalyzer/MainFrm.cpp (revision 18)
+++ ImageCompressionAnalyzer/MainFrm.cpp (revision 19)
@@ -28,6 +28,9 @@
2828 if(CFrameWindowImpl<CMainFrame>::PreTranslateMessage(pMsg))
2929 return TRUE;
3030
31+ if (m_pSettingView->PreTranslateMessage(pMsg)) {
32+ return TRUE;
33+ }
3134 return m_pImageView->PreTranslateMessage(pMsg);
3235 }
3336
Show on old repository browser