Skip to content

Commit

Permalink
3.6 beta 4 fixes: make menu settings option persist; fix title case b…
Browse files Browse the repository at this point in the history
…ug with apostrophe
  • Loading branch information
alexd committed Mar 12, 2011
1 parent e99a519 commit 1d41b71
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions metapad.c
Expand Up @@ -143,9 +143,9 @@ extern atoi(const char*);
#endif #endif
#else #else
#ifdef USE_RICH_EDIT #ifdef USE_RICH_EDIT
#define STR_ABOUT_NORMAL _T("metapad 3.6 beta 3") #define STR_ABOUT_NORMAL _T("metapad 3.6 beta 4")
#else #else
#define STR_ABOUT_NORMAL _T("metapad LE 3.6 beta 3") #define STR_ABOUT_NORMAL _T("metapad LE 3.6 beta 4")
#endif #endif
#endif #endif


Expand Down Expand Up @@ -4984,6 +4984,7 @@ BOOL CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
SetDlgItemText(hwndDlg, IDC_EDIT_ARGS2, options.szArgs2); SetDlgItemText(hwndDlg, IDC_EDIT_ARGS2, options.szArgs2);
SetDlgItemText(hwndDlg, IDC_EDIT_QUOTE, options.szQuote); SetDlgItemText(hwndDlg, IDC_EDIT_QUOTE, options.szQuote);
SendDlgItemMessage(hwndDlg, IDC_CHECK_QUICKEXIT, BM_SETCHECK, (WPARAM) options.bQuickExit, 0); SendDlgItemMessage(hwndDlg, IDC_CHECK_QUICKEXIT, BM_SETCHECK, (WPARAM) options.bQuickExit, 0);
SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEMENUSETTINGS, BM_SETCHECK, (WPARAM) options.bSaveMenuSettings, 0);
SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEWINDOWPLACEMENT, BM_SETCHECK, (WPARAM) options.bSaveWindowPlacement, 0); SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEWINDOWPLACEMENT, BM_SETCHECK, (WPARAM) options.bSaveWindowPlacement, 0);
SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEDIRECTORY, BM_SETCHECK, (WPARAM) options.bSaveDirectory, 0); SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEDIRECTORY, BM_SETCHECK, (WPARAM) options.bSaveDirectory, 0);
SendDlgItemMessage(hwndDlg, IDC_CHECK_LAUNCH_CLOSE, BM_SETCHECK, (WPARAM) options.bLaunchClose, 0); SendDlgItemMessage(hwndDlg, IDC_CHECK_LAUNCH_CLOSE, BM_SETCHECK, (WPARAM) options.bLaunchClose, 0);
Expand Down Expand Up @@ -6945,14 +6946,16 @@ LONG WINAPI MainWndProc(HWND hwndMain, UINT Msg, WPARAM wParam, LPARAM lParam)
} }
} }
else { else {
if (LOWORD(wParam) == ID_MAKE_TITLE if (LOWORD(wParam) == ID_MAKE_TITLE && szDest[i] != '\'') {
|| szDest[i] == '.' bNextUpper = TRUE;
}
else if (szDest[i] == '.'
|| szDest[i] == '?' || szDest[i] == '?'
|| szDest[i] == '!' || szDest[i] == '!'
|| szDest[i] == '\r' || szDest[i] == '\r') {
) {
bNextUpper = TRUE; bNextUpper = TRUE;
} }

} }
} }
} }
Expand Down

0 comments on commit 1d41b71

Please sign in to comment.