2004-01-07 01:43:40 +01:00
|
|
|
/*
|
|
|
|
* WineCfg libraries tabsheet
|
|
|
|
*
|
|
|
|
* Copyright 2004 Robert van Herk
|
2004-09-28 05:55:16 +02:00
|
|
|
* Copyright 2004 Mike Hearn
|
2004-01-07 01:43:40 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define NONAMELESSUNION
|
|
|
|
#include <windows.h>
|
|
|
|
#include <commdlg.h>
|
|
|
|
#include <wine/debug.h>
|
|
|
|
#include <stdio.h>
|
2004-09-28 05:55:16 +02:00
|
|
|
#include <assert.h>
|
2004-01-07 01:43:40 +01:00
|
|
|
#include "winecfg.h"
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
enum dllmode
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-02-17 21:26:15 +01:00
|
|
|
BUILTIN_NATIVE,
|
|
|
|
NATIVE_BUILTIN,
|
2004-01-07 01:43:40 +01:00
|
|
|
BUILTIN,
|
2004-02-17 21:26:15 +01:00
|
|
|
NATIVE,
|
|
|
|
DISABLE,
|
2004-09-28 05:55:16 +02:00
|
|
|
UNKNOWN /* Special value indicating an erronous DLL override mode */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct dll
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
enum dllmode mode;
|
|
|
|
};
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
/* Convert a registry string to a dllmode */
|
|
|
|
static enum dllmode string_to_mode(char *in)
|
2004-02-17 21:26:15 +01:00
|
|
|
{
|
2005-01-14 20:48:41 +01:00
|
|
|
int i, j, len;
|
2004-09-28 05:55:16 +02:00
|
|
|
char *out;
|
2005-01-14 20:48:41 +01:00
|
|
|
enum dllmode res;
|
2004-09-28 05:55:16 +02:00
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
len = strlen(in);
|
|
|
|
out = HeapAlloc(GetProcessHeap(), 0, len);
|
2004-09-28 05:55:16 +02:00
|
|
|
|
|
|
|
/* remove the spaces */
|
2005-01-14 20:48:41 +01:00
|
|
|
for (i = j = 0; i <= len; ++i) {
|
|
|
|
if (in[i] != ' ') {
|
|
|
|
out[j++] = in[i];
|
2004-09-28 05:55:16 +02:00
|
|
|
}
|
2004-02-17 21:26:15 +01:00
|
|
|
}
|
2004-09-28 05:55:16 +02:00
|
|
|
|
|
|
|
/* parse the string */
|
2005-01-14 20:48:41 +01:00
|
|
|
res = UNKNOWN;
|
|
|
|
if (strcmp(out, "builtin,native") == 0) res = BUILTIN_NATIVE;
|
|
|
|
if (strcmp(out, "native,builtin") == 0) res = NATIVE_BUILTIN;
|
|
|
|
if (strcmp(out, "builtin") == 0) res = BUILTIN;
|
|
|
|
if (strcmp(out, "native") == 0) res = NATIVE;
|
|
|
|
if (strcmp(out, "") == 0) res = DISABLE;
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, out);
|
|
|
|
return res;
|
|
|
|
}
|
2004-02-17 21:26:15 +01:00
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
/* Convert a dllmode to a registry string. */
|
|
|
|
static char* mode_to_string(enum dllmode mode)
|
|
|
|
{
|
2005-01-17 14:41:58 +01:00
|
|
|
switch( mode )
|
|
|
|
{
|
|
|
|
case NATIVE: return "native";
|
|
|
|
case BUILTIN: return "builtin";
|
|
|
|
case NATIVE_BUILTIN: return "native,builtin";
|
|
|
|
case BUILTIN_NATIVE: return "builtin,native";
|
|
|
|
case DISABLE: return "";
|
|
|
|
default: assert(FALSE); return "";
|
|
|
|
}
|
2004-02-17 21:26:15 +01:00
|
|
|
}
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
/* Convert a dllmode to a pretty string for display. TODO: use translations. */
|
2004-09-28 05:55:16 +02:00
|
|
|
static char* mode_to_label(enum dllmode mode)
|
2004-02-17 21:26:15 +01:00
|
|
|
{
|
2005-01-14 20:48:41 +01:00
|
|
|
WINE_FIXME("translate me");
|
|
|
|
return mode_to_string(mode);
|
|
|
|
}
|
2004-09-28 05:55:16 +02:00
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
/* Convert a control id (IDC_ constant) to a dllmode */
|
|
|
|
static enum dllmode id_to_mode(DWORD id)
|
|
|
|
{
|
2005-01-17 14:41:58 +01:00
|
|
|
switch( id )
|
|
|
|
{
|
|
|
|
case IDC_RAD_BUILTIN: return BUILTIN;
|
|
|
|
case IDC_RAD_NATIVE: return NATIVE;
|
|
|
|
case IDC_RAD_NATIVE_BUILTIN: return NATIVE_BUILTIN;
|
|
|
|
case IDC_RAD_BUILTIN_NATIVE: return BUILTIN_NATIVE;
|
|
|
|
case IDC_RAD_DISABLE: return DISABLE;
|
|
|
|
default: assert( FALSE ); return 0; /* should not be reached */
|
|
|
|
}
|
2005-01-14 20:48:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Convert a dllmode to a control id (IDC_ constant) */
|
|
|
|
static DWORD mode_to_id(enum dllmode mode)
|
|
|
|
{
|
2005-01-17 14:41:58 +01:00
|
|
|
switch( mode )
|
|
|
|
{
|
|
|
|
case BUILTIN: return IDC_RAD_BUILTIN;
|
|
|
|
case NATIVE: return IDC_RAD_NATIVE;
|
|
|
|
case NATIVE_BUILTIN: return IDC_RAD_NATIVE_BUILTIN;
|
|
|
|
case BUILTIN_NATIVE: return IDC_RAD_BUILTIN_NATIVE;
|
|
|
|
case DISABLE: return IDC_RAD_DISABLE;
|
|
|
|
default: assert( FALSE ); return 0; /* should not be reached */
|
|
|
|
}
|
2004-02-17 21:26:15 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void set_controls_from_selection(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
int index = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
|
|
|
struct dll *dll;
|
|
|
|
DWORD id;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
if (index == -1) /* no selection */
|
|
|
|
{
|
|
|
|
for (i = IDC_RAD_BUILTIN; i <= IDC_RAD_DISABLE; i++)
|
|
|
|
disable(i);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
CheckRadioButton(dialog, IDC_RAD_BUILTIN, IDC_RAD_DISABLE, -1);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
/* enable the controls */
|
|
|
|
for (i = IDC_RAD_BUILTIN; i <= IDC_RAD_DISABLE; i++)
|
|
|
|
enable(i);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
dll = (struct dll *) SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, index, 0);
|
2005-01-14 20:48:41 +01:00
|
|
|
|
|
|
|
id = mode_to_id(dll->mode);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
CheckRadioButton(dialog, IDC_RAD_BUILTIN, IDC_RAD_DISABLE, id);
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void clear_settings(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
int count = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCOUNT, 0, 0);
|
|
|
|
int i;
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
WINE_TRACE("count=%d\n", count);
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
struct dll *dll = (struct dll *) SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, 0, 0);
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_DELETESTRING, 0, 0);
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll->name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll);
|
|
|
|
}
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void load_library_settings(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
char **overrides = enumerate_values(keypath("DllOverrides"));
|
|
|
|
char **p;
|
|
|
|
int sel, count = 0;
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
sel = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
WINE_TRACE("sel=%d\n", sel);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
clear_settings(dialog);
|
|
|
|
|
|
|
|
if (!overrides || *overrides == NULL)
|
|
|
|
{
|
|
|
|
set_controls_from_selection(dialog);
|
|
|
|
disable(IDC_DLLS_REMOVEDLL);
|
|
|
|
HeapFree(GetProcessHeap(), 0, overrides);
|
|
|
|
return;
|
|
|
|
}
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
enable(IDC_DLLS_REMOVEDLL);
|
|
|
|
|
|
|
|
for (p = overrides; *p != NULL; p++)
|
|
|
|
{
|
|
|
|
int index;
|
|
|
|
char *str, *value, *label;
|
|
|
|
struct dll *dll;
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
value = get(keypath("DllOverrides"), *p, NULL);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
label = mode_to_label(string_to_mode(value));
|
2004-09-28 05:55:16 +02:00
|
|
|
|
|
|
|
str = HeapAlloc(GetProcessHeap(), 0, strlen(*p) + 2 + strlen(label) + 2);
|
|
|
|
strcpy(str, *p);
|
|
|
|
strcat(str, " (");
|
|
|
|
strcat(str, label);
|
|
|
|
strcat(str, ")");
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
dll = HeapAlloc(GetProcessHeap(), 0, sizeof(struct dll));
|
|
|
|
dll->name = *p;
|
2005-01-14 20:48:41 +01:00
|
|
|
dll->mode = string_to_mode(value);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
index = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_ADDSTRING, (WPARAM) -1, (LPARAM) str);
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SETITEMDATA, index, (LPARAM) dll);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, str);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
count++;
|
|
|
|
}
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, overrides);
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
/* restore the previous selection, if possible */
|
|
|
|
if (sel >= count - 1) sel = count - 1;
|
|
|
|
else if (sel == -1) sel = 0;
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SETCURSEL, sel, 0);
|
2004-02-17 21:26:15 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
set_controls_from_selection(dialog);
|
2004-02-17 21:26:15 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
/* Called when the application is initialized (cannot reinit!) */
|
|
|
|
static void init_libsheet(HWND dialog)
|
2004-02-17 21:26:15 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
/* clear the add dll controls */
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_SETTEXT, 1, (LPARAM) "");
|
|
|
|
disable(IDC_DLLS_ADDDLL);
|
2004-02-17 21:26:15 +01:00
|
|
|
}
|
|
|
|
|
2004-01-07 01:43:40 +01:00
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void on_add_combo_change(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
char buffer[1024];
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_GETTEXT, sizeof(buffer), (LPARAM) buffer);
|
|
|
|
|
|
|
|
if (strlen(buffer))
|
|
|
|
enable(IDC_DLLS_ADDDLL)
|
|
|
|
else
|
|
|
|
disable(IDC_DLLS_ADDDLL);
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void set_dllmode(HWND dialog, DWORD id)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
enum dllmode mode;
|
|
|
|
struct dll *dll;
|
|
|
|
int sel;
|
|
|
|
char *str;
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
mode = id_to_mode(id);
|
2004-09-28 05:55:16 +02:00
|
|
|
|
|
|
|
sel = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
|
|
|
if (sel == -1) return;
|
|
|
|
|
|
|
|
dll = (struct dll *) SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, sel, 0);
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
str = mode_to_string(mode);
|
2004-09-28 05:55:16 +02:00
|
|
|
WINE_TRACE("Setting %s to %s\n", dll->name, str);
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
SendMessage(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2004-09-28 05:55:16 +02:00
|
|
|
set(keypath("DllOverrides"), dll->name, str);
|
|
|
|
|
|
|
|
load_library_settings(dialog); /* ... and refresh */
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void on_add_click(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
char buffer[1024];
|
|
|
|
|
|
|
|
ZeroMemory(buffer, sizeof(buffer));
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_GETTEXT, sizeof(buffer), (LPARAM) buffer);
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_SETTEXT, 0, (LPARAM) "");
|
|
|
|
disable(IDC_DLLS_ADDDLL);
|
|
|
|
|
|
|
|
WINE_TRACE("Adding %s as native, builtin", buffer);
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
SendMessage(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2004-09-28 05:55:16 +02:00
|
|
|
set(keypath("DllOverrides"), buffer, "native,builtin");
|
|
|
|
|
|
|
|
load_library_settings(dialog);
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, (WPARAM) 0, (LPARAM) buffer);
|
|
|
|
|
|
|
|
set_controls_from_selection(dialog);
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
2004-09-28 05:55:16 +02:00
|
|
|
static void on_remove_click(HWND dialog)
|
2004-01-07 01:43:40 +01:00
|
|
|
{
|
2004-09-28 05:55:16 +02:00
|
|
|
int sel = SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
|
|
|
struct dll *dll;
|
|
|
|
|
|
|
|
if (sel == LB_ERR) return;
|
|
|
|
|
|
|
|
dll = (struct dll *) SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, sel, 0);
|
|
|
|
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_DELETESTRING, sel, 0);
|
|
|
|
|
2005-01-14 20:48:41 +01:00
|
|
|
SendMessage(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2004-09-28 05:55:16 +02:00
|
|
|
set(keypath("DllOverrides"), dll->name, NULL);
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll->name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll);
|
|
|
|
|
|
|
|
if (SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_GETCOUNT, 0, 0) > 0)
|
|
|
|
SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SETCURSEL, max(sel - 1, 0), 0);
|
|
|
|
else
|
|
|
|
disable(IDC_DLLS_REMOVEDLL);
|
|
|
|
|
|
|
|
set_controls_from_selection(dialog);
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
LibrariesDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
switch (uMsg)
|
|
|
|
{
|
|
|
|
case WM_INITDIALOG:
|
2004-09-28 05:55:16 +02:00
|
|
|
init_libsheet(hDlg);
|
|
|
|
break;
|
|
|
|
case WM_SHOWWINDOW:
|
|
|
|
set_window_title(hDlg);
|
|
|
|
break;
|
2004-01-07 01:43:40 +01:00
|
|
|
case WM_NOTIFY:
|
|
|
|
switch (((LPNMHDR)lParam)->code) {
|
2004-09-28 05:55:16 +02:00
|
|
|
case PSN_SETACTIVE:
|
|
|
|
load_library_settings(hDlg);
|
|
|
|
break;
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case WM_COMMAND:
|
|
|
|
switch(HIWORD(wParam)) {
|
2004-09-28 05:55:16 +02:00
|
|
|
|
|
|
|
/* FIXME: when the user hits enter in the DLL combo box we should invoke the add
|
|
|
|
* add button, rather than the propsheet OK button. But I don't know how to do that!
|
|
|
|
*/
|
|
|
|
|
|
|
|
case CBN_EDITCHANGE:
|
|
|
|
if(LOWORD(wParam) == IDC_DLLCOMBO)
|
|
|
|
{
|
|
|
|
on_add_combo_change(hDlg);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2004-01-07 01:43:40 +01:00
|
|
|
case BN_CLICKED:
|
|
|
|
switch(LOWORD(wParam)) {
|
|
|
|
case IDC_RAD_BUILTIN:
|
|
|
|
case IDC_RAD_NATIVE:
|
2004-02-17 21:26:15 +01:00
|
|
|
case IDC_RAD_BUILTIN_NATIVE:
|
|
|
|
case IDC_RAD_NATIVE_BUILTIN:
|
|
|
|
case IDC_RAD_DISABLE:
|
2004-09-28 05:55:16 +02:00
|
|
|
set_dllmode(hDlg, LOWORD(wParam));
|
|
|
|
break;
|
|
|
|
|
2004-01-07 01:43:40 +01:00
|
|
|
case IDC_DLLS_ADDDLL:
|
2004-09-28 05:55:16 +02:00
|
|
|
on_add_click(hDlg);
|
|
|
|
break;
|
2004-01-07 01:43:40 +01:00
|
|
|
case IDC_DLLS_REMOVEDLL:
|
2004-09-28 05:55:16 +02:00
|
|
|
on_remove_click(hDlg);
|
|
|
|
break;
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
break;
|
2004-09-28 05:55:16 +02:00
|
|
|
case LBN_SELCHANGE:
|
|
|
|
set_controls_from_selection(hDlg);
|
|
|
|
break;
|
2004-01-07 01:43:40 +01:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|