mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 19:35:44 +00:00
Dmitry Chapyshev <lentind@yandex.ru>
- Start implementing telephon.cpl. - Delete flags.ico from intl.cpl, it's unused. svn path=/trunk/; revision=30294
This commit is contained in:
parent
25c3bd5a53
commit
e416dfddb9
14 changed files with 258 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
<property name="BASEADDRESS_NOTIFYHOOK" value="0x08000000" />
|
||||
<property name="BASEADDRESS_COMCAT" value="0x20A50000" />
|
||||
<property name="BASEADDRESS_DEVENUM" value="0x35680000" />
|
||||
<property name="BASEADDRESS_TELEPHON" value="0x58750000" />
|
||||
<property name="BASEADDRESS_PWRCFG" value="0x587e0000" />
|
||||
<property name="BASEADDRESS_MMSYS" value="0x588a0000" />
|
||||
<property name="BASEADDRESS_JOY" value="0x589b0000" />
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
<directory name="sysdm">
|
||||
<xi:include href="sysdm/sysdm.rbuild" />
|
||||
</directory>
|
||||
<directory name="telephon">
|
||||
<xi:include href="telephon/telephon.rbuild" />
|
||||
</directory>
|
||||
<directory name="timedate">
|
||||
<xi:include href="timedate/timedate.rbuild" />
|
||||
</directory>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
7
reactos/dll/cpl/telephon/lang/en-US.rc
Normal file
7
reactos/dll/cpl/telephon/lang/en-US.rc
Normal file
|
@ -0,0 +1,7 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_CPLSYSTEMNAME "Phone and Modem Options"
|
||||
IDS_CPLSYSTEMDESCRIPTION "Configure your telephone dialing rules and modem settings."
|
||||
END
|
7
reactos/dll/cpl/telephon/lang/ru-RU.rc
Normal file
7
reactos/dll/cpl/telephon/lang/ru-RU.rc
Normal file
|
@ -0,0 +1,7 @@
|
|||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_CPLSYSTEMNAME "Òåëåôîí è ìîäåì"
|
||||
IDS_CPLSYSTEMDESCRIPTION "Íàñòðîéêà ïðàâèë íàáîðà íîìåðà è äðóãèõ ïàðàìåòðîâ ïðè ðàáîòå ñ ìîäåìîì."
|
||||
END
|
24
reactos/dll/cpl/telephon/manifest.xml
Normal file
24
reactos/dll/cpl/telephon/manifest.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
version="1.0.0.0"
|
||||
processorArchitecture="X86"
|
||||
name="ReactOS.System.ControlPanel.System"
|
||||
type="win32"
|
||||
/>
|
||||
<description>ReactOS System Control Panel</description>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="X86"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
|
||||
<!-- EOF -->
|
13
reactos/dll/cpl/telephon/resource.h
Normal file
13
reactos/dll/cpl/telephon/resource.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef __CPL_RESOURCE_H
|
||||
#define __CPL_RESOURCE_H
|
||||
|
||||
/* icons */
|
||||
#define IDI_CPLSYSTEM 100
|
||||
|
||||
/* strings */
|
||||
#define IDS_CPLSYSTEMNAME 1001
|
||||
#define IDS_CPLSYSTEMDESCRIPTION 2001
|
||||
|
||||
#endif /* __CPL_RESOURCE_H */
|
||||
|
||||
/* EOF */
|
BIN
reactos/dll/cpl/telephon/resources/applet.ico
Normal file
BIN
reactos/dll/cpl/telephon/resources/applet.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
5
reactos/dll/cpl/telephon/rsrc.rc
Normal file
5
reactos/dll/cpl/telephon/rsrc.rc
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "resource.h"
|
||||
#include <windows.h>
|
||||
|
||||
#include "lang/en-US.rc"
|
||||
#include "lang/ru-RU.rc"
|
121
reactos/dll/cpl/telephon/telephon.c
Normal file
121
reactos/dll/cpl/telephon/telephon.c
Normal file
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* ReactOS
|
||||
* Copyright (C) 2007 ReactOS Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/*
|
||||
*
|
||||
* PROJECT: ReactOS Software Control Panel
|
||||
* FILE: dll/cpl/telephon/telephon.c
|
||||
* PURPOSE: ReactOS Software Control Panel
|
||||
* PROGRAMMER: Dmitry Chapyshev (lentind@yandex.ru)
|
||||
* UPDATE HISTORY:
|
||||
* 10-19-2007 Created
|
||||
*/
|
||||
|
||||
#include "telephon.h"
|
||||
|
||||
#define NUM_APPLETS (1)
|
||||
|
||||
LONG CALLBACK SystemApplet(VOID);
|
||||
HINSTANCE hApplet = 0;
|
||||
|
||||
/* Applets */
|
||||
|
||||
APPLET Applets[NUM_APPLETS] =
|
||||
{
|
||||
{IDI_CPLSYSTEM, IDS_CPLSYSTEMNAME, IDS_CPLSYSTEMDESCRIPTION, SystemApplet}
|
||||
};
|
||||
|
||||
/* First Applet */
|
||||
LONG CALLBACK
|
||||
SystemApplet(VOID)
|
||||
{
|
||||
PROPSHEETPAGE psp[1];
|
||||
PROPSHEETHEADER psh;
|
||||
TCHAR Caption[1024];
|
||||
|
||||
LoadString(hApplet, IDS_CPLSYSTEMNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
|
||||
|
||||
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
||||
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||
psh.dwFlags = PSH_PROPSHEETPAGE;
|
||||
psh.hwndParent = NULL;
|
||||
psh.hInstance = hApplet;
|
||||
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLSYSTEM));
|
||||
psh.pszCaption = Caption;
|
||||
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
|
||||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
psh.pfnCallback = NULL;
|
||||
|
||||
//InitPropSheetPage(&psp[0], IDD_PROPPAGE, (DLGPROC)PageProc);
|
||||
|
||||
return (LONG)(PropertySheet(&psh) != -1);
|
||||
}
|
||||
|
||||
|
||||
/* Control Panel Callback */
|
||||
LONG CALLBACK
|
||||
CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
|
||||
{
|
||||
CPLINFO *CPlInfo;
|
||||
DWORD i;
|
||||
|
||||
UNREFERENCED_PARAMETER(hwndCPl);
|
||||
|
||||
i = (DWORD)lParam1;
|
||||
switch (uMsg)
|
||||
{
|
||||
case CPL_INIT:
|
||||
return TRUE;
|
||||
|
||||
case CPL_GETCOUNT:
|
||||
return NUM_APPLETS;
|
||||
|
||||
case CPL_INQUIRE:
|
||||
CPlInfo = (CPLINFO*)lParam2;
|
||||
CPlInfo->lData = 0;
|
||||
CPlInfo->idIcon = Applets[i].idIcon;
|
||||
CPlInfo->idName = Applets[i].idName;
|
||||
CPlInfo->idInfo = Applets[i].idDescription;
|
||||
break;
|
||||
|
||||
case CPL_DBLCLK:
|
||||
Applets[i].AppletProc();
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
BOOL WINAPI
|
||||
DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(lpvReserved);
|
||||
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
case DLL_THREAD_ATTACH:
|
||||
CoInitialize(NULL);
|
||||
hApplet = hinstDLL;
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
6
reactos/dll/cpl/telephon/telephon.def
Normal file
6
reactos/dll/cpl/telephon/telephon.def
Normal file
|
@ -0,0 +1,6 @@
|
|||
LIBRARY telephon.cpl
|
||||
|
||||
EXPORTS
|
||||
CPlApplet
|
||||
|
||||
; EOF
|
32
reactos/dll/cpl/telephon/telephon.h
Normal file
32
reactos/dll/cpl/telephon/telephon.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef __CPL_TELEPHON_H
|
||||
#define __CPL_TELEPHON_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <cpl.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <tchar.h>
|
||||
#include <process.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int idIcon;
|
||||
int idName;
|
||||
int idDescription;
|
||||
CPLAPPLET_PROC AppletProc;
|
||||
} APPLET, *PAPPLET;
|
||||
|
||||
|
||||
extern HINSTANCE hApplet;
|
||||
|
||||
void ShowLastWin32Error(HWND hWndOwner);
|
||||
|
||||
#endif /* __CPL_TELEPHON_H */
|
||||
|
||||
/* EOF */
|
19
reactos/dll/cpl/telephon/telephon.rbuild
Normal file
19
reactos/dll/cpl/telephon/telephon.rbuild
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
|
||||
<module name="telephon" type="win32dll" extension=".cpl" baseaddress="${BASEADDRESS_TELEPHON}" installbase="system32" installname="telephon.cpl" unicode="yes">
|
||||
<importlibrary definition="telephon.def" />
|
||||
<include base="telephon">.</include>
|
||||
<define name="__USE_W32API" />
|
||||
<define name="_WIN32_IE">0x600</define>
|
||||
<define name="_WIN32_WINNT">0x501</define>
|
||||
<library>kernel32</library>
|
||||
<library>advapi32</library>
|
||||
<library>user32</library>
|
||||
<library>comctl32</library>
|
||||
<library>msvcrt</library>
|
||||
<library>ole32</library>
|
||||
<library>uuid</library>
|
||||
<library>shell32</library>
|
||||
<file>telephon.c</file>
|
||||
<file>telephon.rc</file>
|
||||
</module>
|
20
reactos/dll/cpl/telephon/telephon.rc
Normal file
20
reactos/dll/cpl/telephon/telephon.rc
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "resource.h"
|
||||
#include <windows.h>
|
||||
|
||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
|
||||
#define REACTOS_VERSION_DLL
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Software Control Panel\0"
|
||||
#define REACTOS_STR_INTERNAL_NAME "telephon\0"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "telephon.cpl\0"
|
||||
#ifdef _MSC_VER
|
||||
#include <../../../reactos/version.rc>
|
||||
#else
|
||||
#include <reactos/version.rc>
|
||||
#endif
|
||||
|
||||
123 24 DISCARDABLE "manifest.xml"
|
||||
|
||||
IDI_CPLSYSTEM ICON "resources/applet.ico"
|
||||
|
||||
#include "rsrc.rc"
|
Loading…
Add table
Add a link
Reference in a new issue