Skip to content
This repository
Browse code

3.6 beta 4 fixes: make menu settings option persist; fix title case b…

…ug with apostrophe
  • Loading branch information...
commit 1d41b71fea0a157d7c0fdc780c65ba2efecec19a 1 parent e99a519
Alexander Davidson authored

Showing 1 changed file with 9 additions and 6 deletions. Show diff stats Hide diff stats

  1. +9 6 metapad.c
15 metapad.c
@@ -143,9 +143,9 @@ extern atoi(const char*);
143 143 #endif
144 144 #else
145 145 #ifdef USE_RICH_EDIT
146   -#define STR_ABOUT_NORMAL _T("metapad 3.6 beta 3")
  146 +#define STR_ABOUT_NORMAL _T("metapad 3.6 beta 4")
147 147 #else
148   -#define STR_ABOUT_NORMAL _T("metapad LE 3.6 beta 3")
  148 +#define STR_ABOUT_NORMAL _T("metapad LE 3.6 beta 4")
149 149 #endif
150 150 #endif
151 151
@@ -4984,6 +4984,7 @@ BOOL CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
4984 4984 SetDlgItemText(hwndDlg, IDC_EDIT_ARGS2, options.szArgs2);
4985 4985 SetDlgItemText(hwndDlg, IDC_EDIT_QUOTE, options.szQuote);
4986 4986 SendDlgItemMessage(hwndDlg, IDC_CHECK_QUICKEXIT, BM_SETCHECK, (WPARAM) options.bQuickExit, 0);
  4987 + SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEMENUSETTINGS, BM_SETCHECK, (WPARAM) options.bSaveMenuSettings, 0);
4987 4988 SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEWINDOWPLACEMENT, BM_SETCHECK, (WPARAM) options.bSaveWindowPlacement, 0);
4988 4989 SendDlgItemMessage(hwndDlg, IDC_CHECK_SAVEDIRECTORY, BM_SETCHECK, (WPARAM) options.bSaveDirectory, 0);
4989 4990 SendDlgItemMessage(hwndDlg, IDC_CHECK_LAUNCH_CLOSE, BM_SETCHECK, (WPARAM) options.bLaunchClose, 0);
@@ -6945,14 +6946,16 @@ LONG WINAPI MainWndProc(HWND hwndMain, UINT Msg, WPARAM wParam, LPARAM lParam)
6945 6946 }
6946 6947 }
6947 6948 else {
6948   - if (LOWORD(wParam) == ID_MAKE_TITLE
6949   - || szDest[i] == '.'
  6949 + if (LOWORD(wParam) == ID_MAKE_TITLE && szDest[i] != '\'') {
  6950 + bNextUpper = TRUE;
  6951 + }
  6952 + else if (szDest[i] == '.'
6950 6953 || szDest[i] == '?'
6951 6954 || szDest[i] == '!'
6952   - || szDest[i] == '\r'
6953   - ) {
  6955 + || szDest[i] == '\r') {
6954 6956 bNextUpper = TRUE;
6955 6957 }
  6958 +
6956 6959 }
6957 6960 }
6958 6961 }

0 comments on commit 1d41b71

Please sign in to comment.
Something went wrong with that request. Please try again.