winecfg: Added Windows registration information setting.

This commit is contained in:
Filipe Ferreira 2008-06-23 22:27:46 -04:00 committed by Alexandre Julliard
parent 2aba9f7fcb
commit a933d5401e
24 changed files with 167 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Diese Bibliothek ist freie Software; Sie dürfen sie unter den Bedingungen der GNU Lesser General Public License, wie von der Free Software Foundation veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß Version 2.1 der Lizenz oder (nach Ihrer Option) jeder späteren Version.",
IDC_STATIC,119,44,124,72
GROUPBOX " Windows-Registrierungs-Informationen ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Eigentümer:", 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

View File

@ -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

View File

@ -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 " Información de Registro de Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Propietario:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organización:", 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

View File

@ -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

View File

@ -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 Générale Publique Limitée, telle que publiée par la Free Software Foundation ; soit la version 2.1 de la License, soit (à votre gré) toute version ultérieure."
IDC_STATIC,119,44,124,72
GROUPBOX " Les renseignements pour l'inscription Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Propriétaire:", 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

View File

@ -39,6 +39,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Ez a függvénykönvtár szabad szoftver; szabadon terjesztheti, vagy módosíthatja a GNU Lesser General Public Liszenc feltételei szerint, amit a Free Software Foundation készített; mind a 2.1 verziójú licensz, vagy (választása szerint) bármely későbbi verzió használható.",
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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 vilkårene 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 Påmelding 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

View File

@ -42,6 +42,11 @@ BEGIN
LTEXT "http://www.winehq.org/",IDC_STATIC,119,31,106,8
LTEXT "Ta biblioteka jest wolnym oprogramowaniem; możesz ją rozpowszechniać i/lub modyfikować pod warunkami licencji GNU Lesser General Public License opublikowanej przez Free Software Foundation; licencji w wersji 2.1, lub (według własnego uznania) dowolnej późniejszej.",
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

View File

@ -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 " Informações de registro do Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Proprietário:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organização:", 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 código livre; pode-a redistribuir e/ou modificar nos termos da Licença Publica Geral Lesser GNU como publicado pela Fundação de Programas Livres; também a versão 2.1 da Licença, ou (na sua opinião) qualquer versão posterior.",
IDC_STATIC,119,44,124,72
GROUPBOX " Informações de registro do Windows ", IDC_STATIC, 15, 110, 230, 55
LTEXT "Proprietário:", IDC_STATIC, 22, 126, 40, 20
LTEXT "Organização:", 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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) någon 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

View File

@ -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

View File

@ -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

View File

@ -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;
}

View File

@ -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