Based on KRosUser's netcfx_alt.patch.
- Remove WS_GROUP flag of IDC_NODHCP control.
- Fix the extent of a groupbox.
- Half-implement TcpipAltConfDlg function.
CORE-19331
BEGIN
LTEXT "Ако компютърът се използва в повече от една мрежа, въведете заместващи IP настройки отдолу", -1, 9, 9, 220, 20
CONTROL "&Автоматични лични IP адреси", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "На&строено от потребителя", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "На&строено от потребителя", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "Адрес за IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Под&мрежова маска:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Pokud je tento počítač používán ve více než jedné síti, lze zadat alternativní nastavení níže", -1, 9, 9, 220, 20
CONTROL "Au&tomatická privátní IP adresa", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "&Uživatelské nastavení", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "&Uživatelské nastavení", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP adresa:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "&Maska podsítě:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Geben Sie alternative IP-Einstellungen an, falls dieser Computer in mehreren Netzwerken verwendet wird.", -1, 9, 9, 220, 20
CONTROL "Au&tomatisch zugewiesene, private IP-Adresse", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "B&enutzerdefiniert", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "B&enutzerdefiniert", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP-Adresse:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnetzmaske:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Escriba a continuación la configuración IP alternativa si este equipo se utiliza en más de una red.", -1, 9, 9, 220, 20
CONTROL "&Dirección IP privada automática", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 130, BS_GROUPBOX
- CONTROL "Configurada por el u&suario:", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 100, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Configurada por el u&suario:", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 100, 12
LTEXT "Dire&cción IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 140, 75, 85, 12
LTEXT "Máscara de s&ubred:", -1, 14, 95, 135, 8
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Si cet ordinateur est utilisé sur plusieurs réseaux, entrez les paramètres alternatifs IP ci-dessous", -1, 9, 9, 220, 20
- CONTROL "Adresse IP privée au&tomatique", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Utili&sateur configuré", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ CONTROL "Obtenir automatiquement l'adresse IP", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 43, 210, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "&Utiliser l'adresse IP suivante :", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 59, 120, 12
LTEXT "Adresse &IP :", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Masque de so&us-réseau :", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "כתובת IP פרטית אוטומטית", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "הגדרת משתמש", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "הגדרת משתמש", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "כתובת IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "מסכת רשת משנה:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Se questo computer viene utilizzato in più di una rete indicare di seguito le configurazioni di rete alternative", -1, 9, 9, 220, 20
CONTROL "Indirizzo IP privato &automatico", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Configurato dall'&utente", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Configurato dall'&utente", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&Indirizzo IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Hvis denne datamaskinen bruker mere en et nettverk, sett inn et alternativt IP adresse i innstilling under", -1, 9, 9, 220, 20
CONTROL "Au&tomatisk privat IP addresse", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "B&ruker konfigurert", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "B&ruker konfigurert", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP addresse:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet maske:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Jeśli ten komputer jest używany w więcej niż jednej sieci, wprowadź poniżej alternatywne ustawienia protokołu IP", -1, 9, 9, 220, 20
CONTROL "Au&tomatyczny prywatny adres IP", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "&Ustawienia konfigurowane przez użytkownika", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 210, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "&Ustawienia konfigurowane przez użytkownika", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 210, 12
LTEXT "Adres &IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "&Maska podsieci:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Se este computador for usado em mais de uma rede, insira as configurações de IP alternativas abaixo.", -1, 9, 9, 220, 20
CONTROL "IP privado &automático", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "&Config. do utilizador", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "&Config. do utilizador", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "Endereço &IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Máscara S&ubnet:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Dacă acest calculator este utilizat în mai multe rețele, puteți specifica mai jos o configurație alternativă.", -1, 9, 9, 220, 20
CONTROL "Adresă IP p&rivată obținută automat", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Configurată &manual", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 90, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Configurată &manual", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 90, 12
LTEXT "Adresă I&P:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Mască de su&brețea:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Если этот компьютер используется в нескольких сетях, введите параметры альтернативной конфигурации протокола IP:", -1, 9, 9, 230, 20
CONTROL "А&втоматический частный IP-адрес", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Настраиваем&ый пользователем", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 130, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Настраиваем&ый пользователем", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 130, 12
LTEXT "IP-&адрес:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Ма&ска подсети:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "Adresa &IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Në qoftë se ky kompjuter është përdorur në më shumë se një rrjet, futni cilësimet alternative IP poshtë", -1, 9, 9, 220, 20
CONTROL "Adresë IP private auto%matike", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Përdorue&si konfiguruar", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Përdorue&si konfiguruar", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "Adresa &IP:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "If this computer is used on more than one network, enter the alternate IP settings below", -1, 9, 9, 220, 20
CONTROL "Au&tomatic private IP address", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "U&ser configured", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP address:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "S&ubnet mask:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Eğer bu bilgisayar birden çok ağda kullanılıyorsa, aşağıya alternatif IP ayarlarını giriniz.", -1, 9, 9, 220, 20
CONTROL "&Otomatik özel IP adresi", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "K&ullanıcının yapılandırdığı", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "K&ullanıcının yapılandırdığı", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "&IP adresi:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "&Alt ağ maskesi:", -1, 14, 95, 135, 8
BEGIN
LTEXT "Якщо цей комп'ютер використовується в декількох мережах, введіть параметри альтернативної конфігурації IP", -1, 9, 9, 220, 20
CONTROL "А&втоматична приватна IP-адреса", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "Н&алаштована користувачем", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 120, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "Н&алаштована користувачем", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 120, 12
LTEXT "&IP-адреса:", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "Ма&ска підмережі:", -1, 14, 95, 135, 8
BEGIN
LTEXT "如果此计算机使用多个网络,输入下面的备用 IP 设置", -1, 9, 9, 220, 20
CONTROL "自动专用 IP 地址(&T)", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "用户配置(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "用户配置(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "IP 地址(&I):", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "子网掩码(&U):", -1, 14, 95, 135, 8
BEGIN
LTEXT "如果這台電腦是被用在多個網絡上,請在下列輸入其他 IP 設定", -1, 9, 9, 220, 20
CONTROL "自動專用 IP 位址(&T)", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "使用者設定(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "使用者設定(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "IP 位址(&I):", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "子網絡遮罩(&U):", -1, 14, 95, 135, 8
BEGIN
LTEXT "如果這台電腦是被用在多個網路上,在下列輸入其他 IP 設定", -1, 9, 9, 220, 20
CONTROL "自動專用 IP 位址(&T)", IDC_USEDHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 40, 210, 12
- GROUPBOX "", -1, 9, 55, 228, 80, BS_GROUPBOX
- CONTROL "使用者設定(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 14, 55, 70, 12
+ GROUPBOX "", -1, 9, 55, 228, 125, BS_GROUPBOX
+ CONTROL "使用者設定(&S)", IDC_NODHCP, "BUTTON", BS_AUTORADIOBUTTON, 14, 55, 70, 12
LTEXT "IP 位址(&I):", -1, 14, 75, 135, 8
CONTROL "", IDC_IPADDR, "SysIPAddress32", WS_TABSTOP, 144, 75, 85, 12
LTEXT "子網路遮罩(&U):", -1, 14, 95, 135, 8
DWORD IPSize;
DWORD TCPSize;
DWORD UDPSize;
-}TcpFilterSettings;
+} TcpFilterSettings;
// KEY: Tcpip\Parameter\{InstanceGuid}\IpAddress | DhcpIpAddress
// KEY: Tcpip\Parameter\{InstanceGuid}\SubnetMask | DhcpSubnetMask
DWORD UseDomainNameDevolution;
WCHAR szDomain[100];
LPWSTR szSearchList;
-}TcpipAdvancedDNSDlgSettings;
+} TcpipAdvancedDNSDlgSettings;
typedef struct tagIP_ADDR
{
{
DWORD Subnetmask;
USHORT Metric;
- }u;
+ } u;
ULONG NTEContext;
- struct tagIP_ADDR * Next;
-}IP_ADDR;
+ struct tagIP_ADDR *Next;
+} IP_ADDR;
typedef enum
{
METRIC = 1,
SUBMASK = 2,
IPADDR = 3
-}COPY_TYPE;
+} COPY_TYPE;
typedef struct
{
- IP_ADDR * Ip;
- IP_ADDR * Ns;
- IP_ADDR * Gw;
+ IP_ADDR *Ip;
+ IP_ADDR *Ns;
+ IP_ADDR *Gw;
UINT DhcpEnabled;
UINT AutoconfigActive;
DWORD Index;
- TcpFilterSettings * pFilter;
- TcpipAdvancedDNSDlgSettings * pDNS;
-}TcpipSettings;
+ TcpFilterSettings *pFilter;
+ TcpipAdvancedDNSDlgSettings *pDNS;
+} TcpipSettings;
typedef struct
{
- const INetCfgComponentPropertyUi * lpVtbl;
- const INetCfgComponentControl * lpVtblCompControl;
- LONG ref;
- IUnknown * pUnknown;
- INetCfg * pNCfg;
- INetCfgComponent * pNComp;
+ const INetCfgComponentPropertyUi *lpVtbl;
+ const INetCfgComponentControl *lpVtblCompControl;
+ LONG ref;
+ IUnknown *pUnknown;
+ INetCfg *pNCfg;
+ INetCfgComponent *pNComp;
TcpipSettings *pCurrentConfig;
CLSID NetCfgInstanceId;
-}TcpipConfNotifyImpl, *LPTcpipConfNotifyImpl;
+} TcpipConfNotifyImpl, *LPTcpipConfNotifyImpl;
typedef struct
{
HWND hDlgCtrl;
WCHAR szIP[16];
UINT Metric;
-}TcpipGwSettings;
+} TcpipGwSettings;
typedef struct
{
- BOOL bAdd;
+ BOOL bAdd;
HWND hDlgCtrl;
WCHAR szIP[16];
WCHAR szMask[16];
-}TcpipIpSettings;
+} TcpipIpSettings;
typedef struct
{
BOOL bAdd;
HWND hDlgCtrl;
WCHAR szIP[16];
-}TcpipDnsSettings;
+} TcpipDnsSettings;
typedef struct
{
BOOL bAdd;
HWND hDlgCtrl;
LPWSTR Suffix;
-}TcpipSuffixSettings;
+} TcpipSuffixSettings;
typedef struct
{
HWND hDlgCtrl;
UINT ResId;
UINT MaxNum;
-}TcpipPortSettings;
+} TcpipPortSettings;
static __inline LPTcpipConfNotifyImpl impl_from_INetCfgComponentControl(INetCfgComponentControl *iface)
{
}
}
+HRESULT
+InitializeTcpipAltDlgCtrls(
+ HWND hwndDlg,
+ TcpipSettings *pCurSettings)
+{
+ SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_SETRANGE, 0, MAKEIPRANGE(1, 223));
+ SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_SETRANGE, 1, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_SETRANGE, 2, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_SETRANGE, 3, MAKEIPRANGE(0, 255));
+
+ SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_SETRANGE, 0, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_SETRANGE, 1, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_SETRANGE, 2, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_SETRANGE, 3, MAKEIPRANGE(0, 255));
+
+ SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_SETRANGE, 0, MAKEIPRANGE(1, 223));
+ SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_SETRANGE, 1, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_SETRANGE, 2, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_SETRANGE, 3, MAKEIPRANGE(0, 255));
+
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_SETRANGE, 0, MAKEIPRANGE(1, 223));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_SETRANGE, 1, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_SETRANGE, 2, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_SETRANGE, 3, MAKEIPRANGE(0, 255));
+
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_SETRANGE, 0, MAKEIPRANGE(1, 223));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_SETRANGE, 1, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_SETRANGE, 2, MAKEIPRANGE(0, 255));
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_SETRANGE, 3, MAKEIPRANGE(0, 255));
+
+ if (pCurSettings->DhcpEnabled)
+ {
+ CheckRadioButton(hwndDlg, IDC_USEDHCP, IDC_NODHCP, IDC_USEDHCP);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_SUBNETMASK), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DEFGATEWAY), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), FALSE);
+ }
+ else
+ {
+ CheckRadioButton(hwndDlg, IDC_USEDHCP, IDC_NODHCP, IDC_NODHCP);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), TRUE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), TRUE);
+
+ if (pCurSettings->Ip)
+ {
+ /* Set current ip address */
+ SendDlgItemMessageA(hwndDlg, IDC_IPADDR, IPM_SETADDRESS, 0, (LPARAM)pCurSettings->Ip->IpAddress);
+ /* Set current hostmask */
+ SendDlgItemMessageA(hwndDlg, IDC_SUBNETMASK, IPM_SETADDRESS, 0, (LPARAM)pCurSettings->Ip->u.Subnetmask);
+ }
+ }
+
+ if (pCurSettings->Gw && pCurSettings->Gw->IpAddress)
+ {
+ /* Set current gateway */
+ SendDlgItemMessageA(hwndDlg, IDC_DEFGATEWAY, IPM_SETADDRESS, 0, (LPARAM)pCurSettings->Gw->IpAddress);
+ }
+
+ if (pCurSettings->Ns)
+ {
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_SETADDRESS, 0, (LPARAM)pCurSettings->Ns->IpAddress);
+ if (pCurSettings->Ns->Next)
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_SETADDRESS, 0, (LPARAM)pCurSettings->Ns->Next->IpAddress);
+ else
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_CLEARADDRESS, 0, 0);
+ }
+ else
+ {
+ SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_CLEARADDRESS, 0, 0);
+ SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_CLEARADDRESS, 0, 0);
+ }
+
+ return S_OK;
+}
+
INT_PTR
CALLBACK
TcpipAltConfDlg(
WPARAM wParam,
LPARAM lParam)
{
- switch(uMsg)
+ TcpipConfNotifyImpl *This;
+ LPPROPSHEETPAGE page;
+ BOOL bEnabled;
+
+ switch (uMsg)
{
case WM_INITDIALOG:
+ {
+ page = (LPPROPSHEETPAGE)lParam;
+ This = (TcpipConfNotifyImpl*)page->lParam;
+ SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)This);
+ if (This->pCurrentConfig)
+ InitializeTcpipAltDlgCtrls(hwndDlg, This->pCurrentConfig);
return TRUE;
+ }
+ case WM_COMMAND:
+ {
+ switch (LOWORD(wParam))
+ {
+ case IDC_USEDHCP:
+ case IDC_NODHCP:
+ {
+ if (HIWORD(wParam) == BN_CLICKED)
+ {
+ bEnabled = (IsDlgButtonChecked(hwndDlg, IDC_USEDHCP) == BST_CHECKED);
+ if (bEnabled)
+ {
+ SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_CLEARADDRESS, 0, 0);
+ SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_CLEARADDRESS, 0, 0);
+ SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_CLEARADDRESS, 0, 0);
+ }
+
+ EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), bEnabled);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_SUBNETMASK), bEnabled);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DEFGATEWAY), bEnabled);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), bEnabled);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), bEnabled);
+
+ PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
+ }
+ break;
+ }
+ }
+ break;
+ }
}
return FALSE;
}