Change xterm mouse tracking mode to BTN_EVENT_MOUSE (track if pressed).
[wine.git] / programs / control / control.c
blob448581436bde3d9f3f8e07d61a93302ecf2cc04e
1 /*
2 * Control
3 * Copyright (C) 1998 by Marcel Baur <mbaur@g26.ethz.ch>
4 * To be distributed under the Wine license
5 */
7 #include <stdio.h>
8 #include <string.h>
9 #include <windows.h>
10 #include <shellapi.h>
11 #include "params.h"
13 void launch(char what[255])
15 HINSTANCE hChild;
16 char szArgs[255];
18 lstrcpy(szArgs, szEXEC_ARGS);
19 strcat(szArgs, what);
21 hChild = ShellExecute((HWND)0, 0, szEXEC_PREFIX, szArgs, "", SW_SHOWNORMAL);
22 exit(0);
25 int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, CHAR *szParam, INT argc)
28 char szParams[255];
29 lstrcpy(szParams, szParam);
30 CharUpper(szParams);
32 switch (argc) {
33 case 0: /* no parameters - pop up whole "Control Panel" by default */
34 launch("");
35 break;
37 case 1: /* check for optional parameter */
38 if (strcmp(szParams,szP_DESKTOP) ==0) launch(szC_DESKTOP);
39 if (strcmp(szParams,szP_COLOR) ==0) launch(szC_COLOR);
40 if (strcmp(szParams,szP_DATETIME) ==0) launch(szC_DATETIME);
41 if (strcmp(szParams,szP_DESKTOP) ==0) launch(szC_DESKTOP);
42 if (strcmp(szParams,szP_INTERNATIONAL)==0) launch(szC_INTERNATIONAL);
43 if (strcmp(szParams,szP_KEYBOARD) ==0) launch(szC_KEYBOARD);
44 if (strcmp(szParams,szP_MOUSE) ==0) launch(szC_MOUSE);
45 if (strcmp(szParams,szP_PORTS) ==0) launch(szC_PORTS);
46 if (strcmp(szParams,szP_PRINTERS) ==0) launch(szC_PRINTERS);
48 /* couldn't recognize desired panel, going default mode */
49 launch("");
50 break;
52 default: printf("Syntax error.");
54 return 0;