Commit a933d540 authored by Filipe Ferreira's avatar Filipe Ferreira Committed by Alexandre Julliard

winecfg: Added Windows registration information setting.

parent 2aba9f7f
......@@ -42,6 +42,11 @@ BEGIN
*/
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -44,6 +44,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Dette bibliotek er fri software; du m re-distribuere det og/eller modificere det under betingelserne givet i GNU Lesser General Public License som publiceret af Free Software Foundation; enten version 2.1, eller (efter dit valg) en senere version.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows registreringsoplysninger ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Ejer:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisationen:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Diese Bibliothek ist freie Software; Sie drfen sie unter den Bedingungen der GNU Lesser General Public License, wie von der Free Software Foundation verffentlicht, weiterverteilen und/oder modifizieren; entweder gem Version 2.1 der Lizenz oder (nach Ihrer Option) jeder spteren Version.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows-Registrierungs-Informationen ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Eigentmer:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisation:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -41,6 +41,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Informacin de Registro de Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Propietario:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organizacin:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -40,6 +40,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Omistaja:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisaatio:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Ce programme est un logiciel libre; vous pouvez le redistribuer et/ou le modifier suivant les termes de la Licence Gnrale Publique Limite, telle que publie par la Free Software Foundation; soit la version 2.1 de la License, soit ( votre gr) toute version ultrieure."
IDC_STATIC,119,44,124,72
GROUPBOX " Les renseignements pour l'inscription Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Propritaire:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisation:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Ez a fggvnyknvtr szabad szoftver; szabadon terjesztheti, vagy mdosthatja a GNU Lesser General Public Liszenc felttelei szerint, amit a Free Software Foundation ksztett; mind a 2.1 verzij licensz, vagy (vlasztsa szerint) brmely ksbbi verzi hasznlhat.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -31,6 +31,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows informazioni di registrazione ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Proprietario:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organizzazione:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -41,6 +41,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -42,6 +42,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "이 라이브러리는 자유 소프트웨어입니다. 당신은 자유 소프트웨어 재단(Free Software Foundation)에서 만든 GNU LGPL(Lesser General Public License) 아래에서 이 프로그램을 재배포 또는 수정할 수 있습니다. 라이센스의 버전은 2.1 또는 (선택적으로) 그 이후 버전을 따르면 됩니다.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -41,6 +41,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,124,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows registratie-informatie ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Eigenaar:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisatie:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Dette biblioteket er fri programvarer; det kan redistribueres i henhold til vilkrene i GNU Lesser General Public License utgitt av the Free Software Foundation, enten versjon 2.1 av denne Lisensen, eller (hvis du nsker det) en nyere versjon.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Pmelding Informasjon ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Eier:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organisasjon:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -42,6 +42,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Ta biblioteka jest wolnym oprogramowaniem; moesz j rozpowszechnia i/lub modyfikowa pod warunkami licencji GNU Lesser General Public License opublikowanej przez Free Software Foundation; licencji w wersji 2.1, lub (wedug wasnego uznania) dowolnej pniejszej.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -43,6 +43,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Informaes de registro do Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Proprietrio:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organizao:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
......@@ -56,6 +61,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Esta biblioteca de cdigo livre; pode-a redistribuir e/ou modificar nos termos da Licena Publica Geral Lesser GNU como publicado pela Fundao de Programas Livres; tambm a verso 2.1 da Licena, ou (na sua opinio) qualquer verso posterior.",
IDC_STATIC,119,44,124,72
GROUPBOX " Informaes de registro do Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Proprietrio:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organizao:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
......
......@@ -41,6 +41,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -43,6 +43,11 @@ BEGIN
*/
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -41,6 +41,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Detta bibliotek r fri programvara. Du kan distribuera det och/eller modifiera det under villkoren i GNU Lesser General Public License, publicerad av Free Software Foundation, antingen version 2.1 eller (om du s vill) ngon senare version.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "This program 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.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "這一函式庫是自由軟體, 你可以遵照自由軟體基金會出版的 GNU 較寬鬆通用公共許\可證條款 來修改和重新發佈這一程式, 或者是許\可證的2.1版, 或是 (根據你的選擇) 任何更新的版本。",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20
EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP
END
IDD_APPCFG DIALOG DISCARDABLE 0, 0, 260, 250
......
......@@ -59,20 +59,59 @@ PropSheetCallback (HWND hWnd, UINT uMsg, LPARAM lParam)
static INT_PTR CALLBACK
AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
char *owner, *org;
switch (uMsg) {
case WM_NOTIFY:
if (((LPNMHDR)lParam)->code != PSN_SETACTIVE) break;
/* otherwise fall through, we want to refresh the page as well */
case WM_INITDIALOG:
break;
switch(((LPNMHDR)lParam)->code)
{
case PSN_APPLY:
/*save registration info to registry */
owner = get_text(hDlg, IDC_ABT_OWNER);
org = get_text(hDlg, IDC_ABT_ORG);
set_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion",
"RegisteredOwner", owner ? owner : "");
set_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion",
"RegisteredOrganization", org ? org : "");
set_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion",
"RegisteredOwner", owner ? owner : "");
set_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion",
"RegisteredOrganization", org ? org : "");
apply();
HeapFree(GetProcessHeap(), 0, owner);
HeapFree(GetProcessHeap(), 0, org);
break;
}
break;
case WM_INITDIALOG:
/* read owner and organization info from registry, load it into text box */
owner = get_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion",
"RegisteredOwner", "");
org = get_reg_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion",
"RegisteredOrganization", "");
SetDlgItemText(hDlg, IDC_ABT_OWNER, owner);
SetDlgItemText(hDlg, IDC_ABT_ORG, org);
SendMessage(GetParent(hDlg), PSM_UNCHANGED, 0, 0);
HeapFree(GetProcessHeap(), 0, owner);
HeapFree(GetProcessHeap(), 0, org);
break;
case WM_COMMAND:
break;
default:
break;
switch(HIWORD(wParam))
{
case EN_CHANGE:
/* enable apply button */
SendMessage(GetParent(hDlg), PSM_CHANGED, 0, 0);
break;
}
break;
}
return FALSE;
}
......
......@@ -249,3 +249,7 @@
#define IDC_SYSPARAMS_INACTIVE_TITLE_GRADIENT 8429
#define IDC_SYSPARAMS_MENU_HILIGHT 8430
#define IDC_SYSPARAMS_MENUBAR 8431
/* About tab */
#define IDC_ABT_OWNER 8432
#define IDC_ABT_ORG 8433
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment