Skip to content
This repository
Browse code

Also prevent ctrl+shift+enter adding bad characters. Win98 compatibil…

…ity docs.
  • Loading branch information...
commit 0c7d368bd0a83a711a3b030b3e3fdcd513584e3a 1 parent 6e7f48b
Alexander Davidson authored February 24, 2011
4  VisualStudio2010_setup.txt
@@ -9,4 +9,6 @@ Release builds (ensure linking dynamically with OS copy of msvcrt.dll):
9 9
 6) Add DDK lib to front of Library Directories (e.g., C:\WinDDK\7600.16385.1\lib\Crt\i386;)
10 10
 7) Disable _ftol2_sse by adding "/QIfist" to Additional Options under C/C++ Command Line
11 11
 8) Allow Windows 2000 compatibility by adding the following to linker command line:
12  
-/SUBSYSTEM:WINDOWS,5.00 /OSVERSION:5.00
  12
+   /SUBSYSTEM:WINDOWS,5.00 /OSVERSION:5.00
  13
+9) To allow Win98 compatibility, edit the binary with PETools or the like and change 
  14
+   optional header "major subsystem version" from 05 to 04. Ick!
3  metapad.c
@@ -372,7 +372,7 @@ LPTSTR GetString(UINT uID)
372 372
 HINSTANCE LoadAndVerifyLanguagePlugin(LPCTSTR szPlugin)
373 373
 {
374 374
 	HINSTANCE hinstTemp;
375  
-
  375
+	
376 376
 	hinstTemp = LoadLibrary(szPlugin);
377 377
 	if (hinstTemp == NULL) {
378 378
 		ERROROUT(GetString(IDS_INVALID_PLUGIN_ERROR));
@@ -7235,6 +7235,7 @@ LONG WINAPI MainWndProc(HWND hwndMain, UINT Msg, WPARAM wParam, LPARAM lParam)
7235 7235
 				}
7236 7236
 				break;
7237 7237
 			case ID_SHIFT_ENTER:
  7238
+			case ID_CONTROL_SHIFT_ENTER:
7238 7239
 #ifdef USE_RICH_EDIT
7239 7240
 			{
7240 7241
 				BYTE keys[256]; 
1  metapad.rc
@@ -915,6 +915,7 @@ BEGIN
915 915
     VK_MULTIPLY,    ID_HACKER,              VIRTKEY, CONTROL, NOINVERT
916 916
     VK_RETURN,      ID_VIEW_OPTIONS,        VIRTKEY, ALT, NOINVERT
917 917
     VK_RETURN,      ID_SHIFT_ENTER,         VIRTKEY, SHIFT, NOINVERT
  918
+    VK_RETURN,      ID_CONTROL_SHIFT_ENTER, VIRTKEY, CONTROL, SHIFT, NOINVERT
918 919
     VK_RIGHT,       ID_SCROLLRIGHT,         VIRTKEY, ALT, NOINVERT
919 920
     VK_SPACE,       ID_EDIT_SELECTWORD,     VIRTKEY, CONTROL, NOINVERT
920 921
     VK_TAB,         ID_INDENT,              VIRTKEY, NOINVERT
1  resource.h
@@ -309,6 +309,7 @@
309 309
 #define ID_SCROLLRIGHT                  40107
310 310
 #define ID_SAVE_AND_QUIT                40108
311 311
 #define ID_UTF_8_FILE                   40109
  312
+#define ID_CONTROL_SHIFT_ENTER          40110
312 313
 #define ID_MRU_BASE                     44000
313 314
 #define ID_MRU_1                        44001
314 315
 #define ID_MRU_2                        44002

0 notes on commit 0c7d368

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