Skip to content

Commit

Permalink
Use same syntax style for checkboxs in resource file.
Browse files Browse the repository at this point in the history
Variable name update.
  • Loading branch information
MojaveWastelander committed Nov 3, 2016
1 parent fbd5205 commit 2d1389d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PowerEditor/src/NppNotification.cpp
Expand Up @@ -739,14 +739,14 @@ BOOL Notepad_plus::notify(SCNotification *notification)
autoC->update(0);

// update quick find marks when scrolling document
bool bFindNextInFocus = ::GetForegroundWindow() == _findReplaceDlg.getHSelf();
bool bFindRepDlgInFocus = ::GetForegroundWindow() == _findReplaceDlg.getHSelf();
if (::IsWindowVisible(_findReplaceDlg.getHSelf())
&& (notification->updated & SC_UPDATE_V_SCROLL)
&& _findReplaceDlg._options._quickFind
&& (::GetFocus() == _mainEditView.getHSelf()
|| bFindNextInFocus))
|| bFindRepDlgInFocus))
{
_findReplaceDlg.quickFindAndMarkAll({}, !bFindNextInFocus);
_findReplaceDlg.quickFindAndMarkAll({}, !bFindRepDlgInFocus);
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/src/ScitillaComponent/FindReplaceDlg.rc
Expand Up @@ -37,7 +37,7 @@ EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Replace"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
AUTOCHECKBOX "&Quick find", ID_QUICK_FIND, 129, 115, 125, 8, 0, WS_EX_LEFT
CONTROL "&Quick find", ID_QUICK_FIND, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 129, 115, 125, 8
RTEXT "&Find what :",IDFINDWHAT_STATIC,6,22,75,8
COMBOBOX IDFINDWHAT,83,20,178,150,CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_TABSTOP
RTEXT "Rep&lace with :",ID_STATICTEXT_REPLACE,6,40,75,8
Expand Down

0 comments on commit 2d1389d

Please sign in to comment.