Grep 置換ダイアログを表示すると,置換前 と 置換後の両方が選択状態になる現象が発生しないように修正 #1719
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR の目的
#1717 で報告された問題のうち、Grep置換ダイアログ表示した際に置換前と置換後の両方が選択状態になる現象が発生しないように修正するのが目的です。
カテゴリ
PR の影響範囲
CDlgGrepReplace::SetData
において置換後のコンボボックスに項目を追加するのではなく、WM_COMMAND
メッセージの通知コードがCBN_DROPDOWN
の場合に呼び出される仮想関数CDialog::OnCbnDropDown
を override したCDlgGrepReplace::OnCbnDropDown
で置換後のコンボボックスの項目を追加するようにしました。新しく追加した
CDlgGrepReplace::OnCbnDropDown
の処理内容はCDlgGrep::OnCbnDropDown
と同じように、まだコンボボックスに要素が追加されていない場合に設定するようにしています。テスト内容
テスト1
手順
関連 issue, PR
#1717
参考資料