[winecfg 16] Complete support DOS version and winelook settings

Mike Hearn mike at theoretic.com
Fri Oct 17 13:29:04 CDT 2003


- Complete support DOS version and winelook settings

diff -ur --exclude-from=diff-exclusions ../head/programs/winecfg/main.c programs/winecfg/main.c
--- ../head/programs/winecfg/main.c	2003-09-30 01:27:55.000000000 +0100
+++ programs/winecfg/main.c	2003-10-17 19:27:17.000000000 +0100
@@ -136,6 +136,30 @@
 		    addTransaction("Version", "Windows", ACTION_SET, desc->szVersion);
 		}
 	        break;
+
+		case IDC_WINELOOK: if (HIWORD(wParam) == CBN_SELCHANGE) {
+		    /* user changed the wine look combo box */
+		    int selection = SendDlgItemMessage( hDlg, IDC_WINELOOK, CB_GETCURSEL, 0, 0);
+		    VERSION_DESC *desc = getWinelook();
+
+		    while (selection > 0) {
+			desc++; selection--;
+		    }
+		    addTransaction("Tweak.Layout", "WineLook", ACTION_SET, desc->szVersion);
+		}
+		break;
+
+		case IDC_DOSVER: if (HIWORD(wParam) == CBN_SELCHANGE) {
+		    /* user changed the dos version combo box */
+		    int selection = SendDlgItemMessage( hDlg, IDC_WINELOOK, CB_GETCURSEL, 0, 0);
+		    VERSION_DESC *desc = getDOSVersions();
+
+		    while (selection > 0) {
+			desc++; selection--;
+		    }
+		    addTransaction("Version", "DOS", ACTION_SET, desc->szVersion);
+		    
+		}
 	    }
 	    break;
 	    





More information about the wine-patches mailing list