Skip to content

Commit

Permalink
Merge pull request #316 from m-tmatma/feature/reorder-tab-order-about…
Browse files Browse the repository at this point in the history
…-dlg

バージョンダイアログのタブオーダーを変える (#233 の準備)
  • Loading branch information
m-tmatma authored Aug 7, 2018
2 parents 96ab230 + 2a5122d commit 0c190ff
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion sakura_core/dlg/CDlgAbout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,16 @@ BOOL CDlgAbout::OnInitDialog( HWND hwndDlg, WPARAM wParam, LPARAM lParam )
//m_UrlOrgWnd.SubclassWindow( GetItemHwnd(IDC_STATIC_URL_ORG ) );

/* 基底クラスメンバ */
return CDialog::OnInitDialog( GetHwnd(), wParam, lParam );
(void)CDialog::OnInitDialog( GetHwnd(), wParam, lParam );

/* デフォルトでは一番最初のタブオーダーの要素になるので明示的に OK ボタンにフォーカスを合わせる */
::SetFocus(GetItemHwnd(IDOK));

/*
SetFocus() の効果を有効にするために FALSE を返す
参考: https://msdn.microsoft.com/ja-jp/library/fwz35s59.aspx
*/
return FALSE;
}


Expand Down
4 changes: 2 additions & 2 deletions sakura_core/sakura_rc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "バージョン情報"
FONT 9, "MS Pゴシック"
BEGIN
DEFPUSHBUTTON "&OK", IDOK, 97, 188, 50, 14
PUSHBUTTON "情報をコピー(&C)", IDC_BUTTON_COPY, 178, 188, 60, 14
ICON IDI_ICON_STD, IDC_STATIC_MYICON, 5, 5, 20, 20, SS_NOTIFY
EDITTEXT IDC_EDIT_VER, 33, 6, 204, 51, ES_MULTILINE | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
LTEXT S_COPYRIGHT, IDC_STATIC, 33, 61, 205, 8, NOT WS_GROUP | SS_NOPREFIX
Expand All @@ -118,6 +116,8 @@ BEGIN
LTEXT "Commit", IDC_STATIC_URL_GITHUB_COMMIT, 101, 118, 30, 8, SS_NOTIFY | NOT WS_GROUP | WS_TABSTOP
LTEXT "PR.", IDC_STATIC_URL_GITHUB_PR, 150, 118, 30, 8, SS_NOTIFY | NOT WS_GROUP | WS_TABSTOP
EDITTEXT IDC_EDIT_ABOUT, 5, 131, 233, 53, ES_MULTILINE | ES_READONLY | WS_VSCROLL | NOT WS_TABSTOP
DEFPUSHBUTTON "&OK", IDOK, 97, 188, 50, 14
PUSHBUTTON "情報をコピー(&C)", IDC_BUTTON_COPY, 178, 188, 60, 14
END

IDD_JUMP DIALOGEX 0, 0, 252, 121
Expand Down
4 changes: 2 additions & 2 deletions sakura_lang_en_US/sakura_lang_rc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Version Information"
FONT 9, "Tahoma"
BEGIN
DEFPUSHBUTTON "&OK", IDOK, 97, 188, 50, 14
PUSHBUTTON "&Copy to Clipboard", IDC_BUTTON_COPY, 178, 188, 60, 14
ICON IDI_ICON_STD, IDC_STATIC_MYICON, 5, 5, 20, 20, SS_NOTIFY
EDITTEXT IDC_EDIT_VER, 33, 6, 204, 51, ES_MULTILINE | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
LTEXT S_COPYRIGHT, IDC_STATIC, 33, 61, 205, 8, NOT WS_GROUP | SS_NOPREFIX
Expand All @@ -120,6 +118,8 @@ BEGIN
LTEXT "Commit", IDC_STATIC_URL_GITHUB_COMMIT, 101, 118, 30, 8, SS_NOTIFY | NOT WS_GROUP | WS_TABSTOP
LTEXT "PR.", IDC_STATIC_URL_GITHUB_PR, 150, 118, 30, 8, SS_NOTIFY | NOT WS_GROUP | WS_TABSTOP
EDITTEXT IDC_EDIT_ABOUT, 5, 131, 233, 53, ES_MULTILINE | ES_READONLY | WS_VSCROLL | NOT WS_TABSTOP
DEFPUSHBUTTON "&OK", IDOK, 97, 188, 50, 14
PUSHBUTTON "&Copy to Clipboard", IDC_BUTTON_COPY, 178, 188, 60, 14
END

IDD_JUMP DIALOGEX 0, 0, 252, 121
Expand Down

0 comments on commit 0c190ff

Please sign in to comment.