ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
July 2006
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
19 participants
662 discussions
Start a n
N
ew thread
[cwittich] 22916: -get rid of wine headers in Debug/Release/Speed configurations
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Jul 8 16:09:50 2006 New Revision: 22916 URL:
http://svn.reactos.org/svn/reactos?rev=22916&view=rev
Log: -get rid of wine headers in Debug/Release/Speed configurations Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/…
============================================================================== --- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp (original) +++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Sat Jul 8 16:09:50 2006 @@ -150,6 +150,8 @@ if ( !strncmp(incs[i]->directory.c_str(), "include\\ddk", 11 ) || !strncmp(incs[i]->directory.c_str(), "include\\crt", 11 ) || !strncmp(incs[i]->directory.c_str(), "include\\GL", 10 ) || + !strncmp(incs[i]->directory.c_str(), "include\\ddk", 11 ) || + !strncmp(incs[i]->directory.c_str(), "include\\psdk", 12 ) || !strncmp(incs[i]->directory.c_str(), "include\\reactos\\wine", 20 ) ) { includes_wine.push_back ( path );
18 years, 5 months
1
0
0
0
[cwittich] 22915: -remove winsock2.h which is causing errors when building with msvc
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Jul 8 16:08:56 2006 New Revision: 22915 URL:
http://svn.reactos.org/svn/reactos?rev=22915&view=rev
Log: -remove winsock2.h which is causing errors when building with msvc Modified: trunk/reactos/dll/cpl/timedate/timedate.h Modified: trunk/reactos/dll/cpl/timedate/timedate.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/timedate.…
============================================================================== --- trunk/reactos/dll/cpl/timedate/timedate.h (original) +++ trunk/reactos/dll/cpl/timedate/timedate.h Sat Jul 8 16:08:56 2006 @@ -5,7 +5,6 @@ #include <windowsx.h> #include <tchar.h> #include <stdio.h> -#include <winsock2.h> #include <math.h> #include <commctrl.h> #include <cpl.h>
18 years, 5 months
1
0
0
0
[mbosma] 22914: Add patch for all the headers so you only need to check out ntoskrnl/cc ntosknrl/mm and the vfat dir.
by mbosma@svn.reactos.org
Author: mbosma Date: Sat Jul 8 16:01:43 2006 New Revision: 22914 URL:
http://svn.reactos.org/svn/reactos?rev=22914&view=rev
Log: Add patch for all the headers so you only need to check out ntoskrnl/cc ntosknrl/mm and the vfat dir. Added: branches/cache_manager_rewrite/headers.patch Added: branches/cache_manager_rewrite/headers.patch URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/headers.p…
============================================================================== --- branches/cache_manager_rewrite/headers.patch (added) +++ branches/cache_manager_rewrite/headers.patch Sat Jul 8 16:01:43 2006 @@ -1,0 +1,194 @@ +Index: drivers/filesystems/cdfs/cdfs.h +=================================================================== +--- drivers/filesystems/cdfs/cdfs.h (revision 22905) ++++ drivers/filesystems/cdfs/cdfs.h (working copy) +@@ -6,7 +6,7 @@ + #include <ntddcdrm.h> + #include <ccros.h> + +-#define USE_ROS_CC_AND_FS ++//#define USE_ROS_CC_AND_FS + + #define CDFS_BASIC_SECTOR 2048 + #define CDFS_PRIMARY_DESCRIPTOR_LOCATION 16 +Index: drivers/filesystems/ntfs/ntfs.h +=================================================================== +--- drivers/filesystems/ntfs/ntfs.h (revision 22905) ++++ drivers/filesystems/ntfs/ntfs.h (working copy) +@@ -6,7 +6,7 @@ + #include <ntdddisk.h> + #include <ccros.h> + +-#define USE_ROS_CC_AND_FS ++//#define USE_ROS_CC_AND_FS + + + #define CACHEPAGESIZE(pDeviceExt) \ +Index: include/reactos/exeformat.h +=================================================================== +--- include/reactos/exeformat.h (revision 22905) ++++ include/reactos/exeformat.h (working copy) +@@ -34,7 +34,8 @@ + + typedef NTSTATUS (NTAPI * PEXEFMT_CB_READ_FILE) + ( +- IN PVOID File, ++ IN PFILE_OBJECT FileObject, ++ ULONG SectorSize, + IN PLARGE_INTEGER Offset, + IN ULONG Length, + OUT PVOID * Data, +@@ -51,7 +52,7 @@ + ( + IN CONST VOID * FileHeader, + IN SIZE_T FileHeaderSize, +- IN PVOID File, ++ IN PFILE_OBJECT FileObject, + OUT PMM_IMAGE_SECTION_OBJECT ImageSectionObject, + OUT PULONG Flags, + IN PEXEFMT_CB_READ_FILE ReadFileCb, +Index: ntoskrnl/include/internal/cc.h +=================================================================== +--- ntoskrnl/include/internal/cc.h (revision 22905) ++++ ntoskrnl/include/internal/cc.h (working copy) +@@ -1,17 +1,29 @@ + #ifndef __INCLUDE_INTERNAL_CC_H + #define __INCLUDE_INTERNAL_CC_H + ++#define CACHE_VIEW_SIZE (128 * 1024) // 128kB ++ ++struct _BCB; ++ ++typedef struct ++{ ++ SECTION_DATA SectionData; ++ PVOID BaseAddress; ++ ULONG RefCount; ++ struct _BCB* Bcb; ++ LIST_ENTRY ListEntry; ++} CACHE_VIEW, *PCACHE_VIEW; ++ + typedef struct _BCB + { +- LIST_ENTRY BcbSegmentListHead; +- LIST_ENTRY BcbRemoveListEntry; +- BOOLEAN RemoveOnClose; +- ULONG TimeStamp; + PFILE_OBJECT FileObject; +- ULONG CacheSegmentSize; +- LARGE_INTEGER AllocationSize; +- LARGE_INTEGER FileSize; +- KSPIN_LOCK BcbLock; ++ CC_FILE_SIZES FileSizes; ++ BOOLEAN PinAccess; ++ PCACHE_MANAGER_CALLBACKS CallBacks; ++ PVOID LazyWriterContext; ++ PCACHE_VIEW CacheView[2048]; ++ PVOID LargeCacheView; ++ PROS_SECTION_OBJECT Section; + ULONG RefCount; + #if defined(DBG) || defined(KDBG) + BOOLEAN Trace; /* enable extra trace output for this BCB and it's cache segments */ +@@ -56,8 +68,8 @@ + typedef struct _INTERNAL_BCB + { + PUBLIC_BCB PFCB; +- PCACHE_SEGMENT CacheSegment; +- BOOLEAN Dirty; ++ PBCB Bcb; ++ ULONG Index; + CSHORT RefCount; /* (At offset 0x34 on WinNT4) */ + } INTERNAL_BCB, *PINTERNAL_BCB; + +Index: ntoskrnl/include/internal/mm.h +=================================================================== +--- ntoskrnl/include/internal/mm.h (revision 22905) ++++ ntoskrnl/include/internal/mm.h (working copy) +@@ -165,17 +165,20 @@ + + typedef struct _MM_SECTION_SEGMENT + { +- LONGLONG FileOffset; +- ULONG_PTR VirtualAddress; +- ULONG RawLength; +- ULONG Length; ++ LONGLONG FileOffset; /* start offset into the file for image sections */ ++ ULONG_PTR VirtualAddress; /* dtart offset into the address range for image sections */ ++ ULONG RawLength; /* length of the segment which is part of the mapped file */ ++ ULONG Length; /* absolute length of the segment */ + ULONG Protection; +- FAST_MUTEX Lock; ++ FAST_MUTEX Lock; /* lock which protects the page directory */ + ULONG ReferenceCount; + SECTION_PAGE_DIRECTORY PageDirectory; + ULONG Flags; + ULONG Characteristics; + BOOLEAN WriteCopy; ++ LIST_ENTRY ListEntry; ++ ULONG BytesPerSector; ++ PFILE_OBJECT FileObject; + } MM_SECTION_SEGMENT, *PMM_SECTION_SEGMENT; + + typedef struct _MM_IMAGE_SECTION_OBJECT +@@ -191,6 +194,10 @@ + USHORT Machine; + BOOLEAN Executable; + ULONG NrSegments; ++ ULONG RefCount; ++ LIST_ENTRY ListEntry; ++ PFILE_OBJECT FileObject; ++ ULONG BytesPerSector; + PMM_SECTION_SEGMENT Segments; + } MM_IMAGE_SECTION_OBJECT, *PMM_IMAGE_SECTION_OBJECT; + +@@ -209,6 +216,16 @@ + }; + } ROS_SECTION_OBJECT, *PROS_SECTION_OBJECT; + ++typedef struct ++{ ++ ROS_SECTION_OBJECT* Section; ++ ULONG ViewOffset; ++ LIST_ENTRY ViewListEntry; ++ PMM_SECTION_SEGMENT Segment; ++// BOOLEAN WriteCopyView; ++ LIST_ENTRY RegionListHead; ++} SECTION_DATA, *PSECTION_DATA; ++ + typedef struct _MEMORY_AREA + { + PVOID StartingAddress; +@@ -223,17 +240,10 @@ + ULONG PageOpCount; + union + { ++ SECTION_DATA SectionData; + struct + { +- ROS_SECTION_OBJECT* Section; +- ULONG ViewOffset; +- PMM_SECTION_SEGMENT Segment; +- BOOLEAN WriteCopyView; +- LIST_ENTRY RegionListHead; +- } SectionData; +- struct +- { +- LIST_ENTRY RegionListHead; ++ LIST_ENTRY RegionListHead; + } VirtualMemoryData; + } Data; + } MEMORY_AREA, *PMEMORY_AREA; +Index: ntoskrnl/ntoskrnl.def +=================================================================== +--- ntoskrnl/ntoskrnl.def (revision 22905) ++++ ntoskrnl/ntoskrnl.def (working copy) +@@ -5,9 +5,6 @@ + ; ReactOS Operating System + ; + EXPORTS +-CcRosInitializeFileCache@8 +-CcRosReleaseFileCache@4 +-CcRosTraceCacheMap@8 + CcCanIWrite@16 + CcCopyRead@24 + CcCopyWrite@20
18 years, 5 months
1
0
0
0
[mbosma] 22913: Merge ndk changes into the branch. It compiles but does not install yet. (I am only maintaining the changed folders: ntoskrnl/mm, ntoskrnl/cc, ntoskrnl/include and vfat)
by mbosma@svn.reactos.org
Author: mbosma Date: Sat Jul 8 15:58:53 2006 New Revision: 22913 URL:
http://svn.reactos.org/svn/reactos?rev=22913&view=rev
Log: Merge ndk changes into the branch. It compiles but does not install yet. (I am only maintaining the changed folders: ntoskrnl/mm, ntoskrnl/cc, ntoskrnl/include and vfat) Added: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/i386/v86m.h (with props) Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/fs.c branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c branches/cache_manager_rewrite/reactos/ntoskrnl/cc/view.c branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/cc.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ex.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/i386/ke.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/io.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/kd.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ke.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/lpc.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/mm.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ntoskrnl.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ob.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/po.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/se.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/tag.h branches/cache_manager_rewrite/reactos/ntoskrnl/include/ntoskrnl.h branches/cache_manager_rewrite/reactos/ntoskrnl/mm/anonmem.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/aspace.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/i386/page.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/marea.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/mdl.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/mm.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/process.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/rmap.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c branches/cache_manager_rewrite/reactos/ntoskrnl/mm/virtual.c [This mail would be too long, it was shortened to contain the URLs only.] Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/fs.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/view.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/cc.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ex.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/i386/ke.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Added: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/i386/v86m.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/io.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/kd.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ke.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/lpc.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/mm.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ntoskrnl.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/ob.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/po.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/se.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/internal/tag.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/include/ntoskrnl.h URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/anonmem.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/aspace.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/i386/page.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/marea.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/mdl.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/mm.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/process.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/rmap.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/virtual.c URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/reactos/n…
18 years, 5 months
1
0
0
0
[gedmurphy] 22912: revert r22910 there are a few issues with both the resource files and the code. I suggest working on intl_new however as intl is soon to be deleted.
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Sat Jul 8 14:37:37 2006 New Revision: 22912 URL:
http://svn.reactos.org/svn/reactos?rev=22912&view=rev
Log: revert r22910 there are a few issues with both the resource files and the code. I suggest working on intl_new however as intl is soon to be deleted. Modified: trunk/reactos/dll/cpl/intl/en.rc trunk/reactos/dll/cpl/intl/numbers.c trunk/reactos/dll/cpl/intl/resource.h Modified: trunk/reactos/dll/cpl/intl/en.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/en.rc?rev=229…
============================================================================== --- trunk/reactos/dll/cpl/intl/en.rc (original) +++ trunk/reactos/dll/cpl/intl/en.rc Sat Jul 8 14:37:37 2006 @@ -1,183 +1,81 @@ -#define IDC_GRP1 1 -#define IDC_STC1 2 -#define IDC_STC2 3 -#define IDC_POSITIVESAMPLE 4 -#define IDC_NEGITIVESAMPLE 5 -#define IDC_STC3 6 -#define IDC_STC4 7 -#define IDC_STC5 8 -#define IDC_STC6 9 -#define IDC_STC7 10 -#define IDC_STC9 12 -#define IDC_STC8 11 -#define IDC_STC10 13 -#define IDC_STC11 14 -#define IDC_STC12 15 -#define IDC_DECSYMBOL 16 -#define IDC_DECDIGITS 17 -#define IDC_DIGGROUPSYMBOL 18 -#define IDC_DIGGROUP 19 -#define IDC_NEGSIGN 20 -#define IDC_NEGFORMAT 21 -#define IDC_LEADZEROS 22 -#define IDC_LISTSEPERATOR 23 -#define IDC_MEASUREMENTSYS 24 -#define IDC_DIGSUBSTAT 25 -#define IDC_CBO11 1 -#define IDC_CBO12 2 -#define IDC_CBO13 3 -#define IDC_CBO14 4 -#define IDC_CBO15 5 -#define IDC_STC13 6 -#define IDC_STC14 7 -#define IDC_STC15 8 -#define IDC_STC16 9 -#define IDC_STC17 10 -#define IDC_EDT3 11 -#define IDC_STC18 12 -#define IDC_EDT4 13 -#define IDC_STC19 14 -#define IDC_GRP2 15 -#define IDC_CBO16 16 -#define IDC_CBO17 17 -#define IDC_STC20 18 -#define IDC_STC21 19 -#define IDC_GRP3 1 -#define IDC_STC22 2 -#define IDC_EDT6 4 -#define IDC_EDT5 3 -#define IDC_STC23 5 -#define IDC_UDN1 6 -#define IDC_GRP4 7 -#define IDC_STC24 8 -#define IDC_EDT7 9 -#define IDC_STC25 10 -#define IDC_CBO18 11 -#define IDC_STC26 12 -#define IDC_CBO19 13 -#define IDC_GRP5 14 -#define IDC_CBO20 15 -#define IDC_STC27 16 -#define IDC_EDT8 17 -#define IDC_STC28 18 -LANGUAGE 9,1 -IDD_GENERALPAGE DIALOGEX 0,0,246,188 +/* $Id: intl.rc 12852 2005-01-06 13:58:04Z mf $ */ + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +IDD_GENERALPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "General" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "Property Page 1",-1,"Static",0x50020000,73,74,90,8 + LTEXT "Property Page 1",-1,73,74,90,8 END -IDD_NUMBERSPAGE DIALOGEX 0,0,246,204 + + +IDD_NUMBERSPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Numbers" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "Sample",IDC_GRP1,"Button",0x50000007,2,1,242,28 - CONTROL "Positive",IDC_STC1,"Static",0x50000000,8,14,26,8 - CONTROL "Negitive",IDC_STC2,"Static",0x50000000,118,14,25,8 - CONTROL "",IDC_POSITIVESAMPLE,"Edit",0x50010000,34,11,66,13,0x00000200 - CONTROL "",IDC_NEGITIVESAMPLE,"Edit",0x50010000,146,12,84,13,0x00000200 - CONTROL "&Decimal symbol:",IDC_STC3,"Static",0x50000000,18,36,72,9 - CONTROL "No. of digits af&ter decimal:",IDC_STC4,"Static",0x50000000,18,53,92,9 - CONTROL "Digit &grouping symbol:",IDC_STC5,"Static",0x50000000,18,70,86,9 - CONTROL "d&igit grouping:",IDC_STC6,"Static",0x50000000,18,86,64,9 - CONTROL "N&egitive sign symbol:",IDC_STC7,"Static",0x50000000,18,103,96,9 - CONTROL "Negitive number &format:",IDC_STC9,"Static",0x50000000,18,120,90,9 - CONTROL "Display leading &zeros: ",IDC_STC8,"Static",0x50000000,18,136,84,9 - CONTROL "&List seperator:",IDC_STC10,"Static",0x50000000,18,153,52,9 - CONTROL "&Measurement system: ",IDC_STC11,"Static",0x50000000,18,169,94,9 - CONTROL "Digit &substatution:",IDC_STC12,"Static",0x50000000,18,186,80,9 - CONTROL "",IDC_DECSYMBOL,"ComboBox",0x50010002,118,35,112,65 - CONTROL "",IDC_DECDIGITS,"ComboBox",0x50010003,118,51,112,98 - CONTROL "",IDC_DIGGROUPSYMBOL,"ComboBox",0x50010002,118,66,112,48 - CONTROL "",IDC_DIGGROUP,"ComboBox",0x50010003,118,84,112,61 - CONTROL "",IDC_NEGSIGN,"ComboBox",0x50010002,118,101,112,67 - CONTROL "",IDC_NEGFORMAT,"ComboBox",0x50010003,118,118,112,57 - CONTROL "",IDC_LEADZEROS,"ComboBox",0x50010003,118,134,112,57 - CONTROL "",IDC_LISTSEPERATOR,"ComboBox",0x50010002,118,151,112,83 - CONTROL "",IDC_MEASUREMENTSYS,"ComboBox",0x50010003,118,168,112,37 - CONTROL "",IDC_DIGSUBSTAT,"ComboBox",0x50010003,118,186,112,37 + LTEXT "Property Page 2",-1,73,74,90,8 END -IDD_CURRENCYPAGE DIALOGEX 0,0,246,188 + + +IDD_CURRENCYPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Currency" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "",IDC_CBO11,"ComboBox",0x50010002,116,33,112,15 - CONTROL "",IDC_CBO12,"ComboBox",0x50010003,116,49,112,15 - CONTROL "",IDC_CBO13,"ComboBox",0x50010002,116,66,112,15 - CONTROL "",IDC_CBO14,"ComboBox",0x50010003,116,90,112,15 - CONTROL "",IDC_CBO15,"ComboBox",0x50010002,116,107,112,15 - CONTROL "No. of digits after decimal:",IDC_STC13,"Static",0x50000000,16,108,82,9 - CONTROL "&Decimal symbol:",IDC_STC14,"Static",0x50000000,16,92,82,9 - CONTROL "&Negitive currency format:",IDC_STC15,"Static",0x50000000,16,68,82,9 - CONTROL "&Positive currency format:",IDC_STC16,"Static",0x50000000,16,51,82,9 - CONTROL "Currency &symbol:",IDC_STC17,"Static",0x50000000,16,35,56,9 - CONTROL "",IDC_EDT3,"Edit",0x50010000,144,11,84,13,0x00000200 - CONTROL "Negitive",IDC_STC18,"Static",0x50000000,116,12,26,9 - CONTROL "",IDC_EDT4,"Edit",0x50010000,32,9,66,13,0x00000200 - CONTROL "Positive",IDC_STC19,"Static",0x50000000,6,12,26,9 - CONTROL "Sample",IDC_GRP2,"Button",0x50000007,2,0,242,28 - CONTROL "",IDC_CBO16,"ComboBox",0x50010003,116,131,112,15 - CONTROL "",IDC_CBO17,"ComboBox",0x50010002,116,147,112,15 - CONTROL "D&igit grouping:",IDC_STC20,"Static",0x50000000,16,149,82,9 - CONTROL "Digit &grouping symbol:",IDC_STC21,"Static",0x50000000,16,132,82,9 + LTEXT "Property Page 3",-1,73,74,90,8 END -IDD_TIMEPAGE DIALOGEX 0,0,246,188 + + +IDD_TIMEPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Time" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "Appearance sample",-1,"Button",0x50000007,7,7,228,33 - CONTROL "Time sample:",-1,"Static",0x50020000,13,21,54,10 - CONTROL "",IDC_TIMESAMPLE,"Edit",0x50030800,68,19,84,14,0x00000200 - CONTROL "&Time format:",-1,"Static",0x50020000,13,52,54,10 - CONTROL "",IDC_TIMEFORMAT,"ComboBox",0x50010003,68,48,84,100 - CONTROL "Time &separator:",-1,"Static",0x50020000,13,70,54,10 - CONTROL "",IDC_TIMESEPARATOR,"ComboBox",0x50010003,68,68,84,100 - CONTROL "A&M symbol:",-1,"Static",0x50020000,13,88,54,10 - CONTROL "",IDC_TIMEAMSYMBOL,"ComboBox",0x50010003,68,86,84,100 - CONTROL "&PM symbol:",-1,"Static",0x50020000,13,106,54,10 - CONTROL "",IDC_TIMEPMSYMBOL,"ComboBox",0x50010003,68,104,84,100 - CONTROL "",-1,"Button",0x50000007,7,124,228,60 - CONTROL "Time format notation\n\nh = hour m = minute s = second t = am or pm\n\nh = 12 hour H = 24 hour\nhh, mm, ss = leading zero h, m, s = no leading zero",-1,"Static",0x50020000,13,133,214,47 + GROUPBOX "Appearance sample", -1, 7, 7, 228, 33, WS_CHILD | WS_VISIBLE + LTEXT "Time sample:", -1, 13, 21, 54, 10, WS_CHILD |WS_VISIBLE | WS_GROUP + EDITTEXT IDC_TIMESAMPLE, 68, 19, 84, 14, ES_READONLY | WS_CHILD | WS_VISIBLE | WS_GROUP + LTEXT "&Time format:", -1, 13, 52, 54, 10, WS_CHILD |WS_VISIBLE | WS_GROUP + COMBOBOX IDC_TIMEFORMAT, 68, 50, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP + LTEXT "Time &separator:", -1, 13, 70, 54, 10, WS_VISIBLE | WS_GROUP + COMBOBOX IDC_TIMESEPARATOR, 68, 68, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP + LTEXT "A&M symbol:", -1, 13, 88, 54, 10, WS_VISIBLE | WS_GROUP + COMBOBOX IDC_TIMEAMSYMBOL, 68, 86, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP + LTEXT "&PM symbol:", -1, 13, 106, 54, 10, WS_VISIBLE | WS_GROUP + COMBOBOX IDC_TIMEPMSYMBOL, 68, 104, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP + GROUPBOX "", -1, 7, 124, 228, 60, WS_VISIBLE + LTEXT "Time format notation\n\n\ +h = hour m = minute s = second t = am or pm\n\n\ +h = 12 hour H = 24 hour\n\ +hh, mm, ss = leading zero h, m, s = no leading zero", + -1, 13, 133, 214, 47, WS_CHILD |WS_VISIBLE | WS_GROUP END -IDD_DATEPAGE DIALOGEX 0,0,246,188 + + +IDD_DATEPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Date" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "Calender",IDC_GRP3,"Button",0x50000007,0,0,240,48 - CONTROL "When a two-digit year is entered, interprete it as a year between:",IDC_STC22,"Static",0x50000000,8,12,234,9 - CONTROL "",IDC_EDT6,"Edit",0x50010800,12,27,32,13,0x00000200 - CONTROL "",IDC_EDT5,"Edit",0x50010000,70,27,32,13,0x00000200 - CONTROL "and",IDC_STC23,"Static",0x50000000,50,29,14,8 - CONTROL "",IDC_UDN1,"msctls_updown32",0x50000000,104,27,11,13 - CONTROL "Short date",IDC_GRP4,"Button",0x50000007,2,49,240,74 - CONTROL "Short date sample:",IDC_STC24,"Static",0x50000000,10,62,62,9 - CONTROL "",IDC_EDT7,"Edit",0x50010800,72,60,164,13,0x00000200 - CONTROL "Short date format:",IDC_STC25,"Static",0x50000000,10,86,58,9 - CONTROL "",IDC_CBO18,"ComboBox",0x50010002,72,84,164,13 - CONTROL "Date separator:",IDC_STC26,"Static",0x50000000,10,108,54,9 - CONTROL "",IDC_CBO19,"ComboBox",0x50010002,72,107,54,13 - CONTROL "Long date",IDC_GRP5,"Button",0x50000007,2,125,240,61 - CONTROL "",IDC_CBO20,"ComboBox",0x50010002,72,160,164,13 - CONTROL "Long date format:",IDC_STC27,"Static",0x50000000,10,162,58,9 - CONTROL "",IDC_EDT8,"Edit",0x50010800,72,134,164,13,0x00000200 - CONTROL "Long date sample:",IDC_STC28,"Static",0x50000000,10,136,60,9 + LTEXT "Property Page 5",-1,73,74,90,8 END -IDD_LOCALEPAGE DIALOGEX 0,0,246,188 + + +IDD_LOCALEPAGE DIALOGEX 0, 0, 246, 188 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Input Locale" -FONT 8,"MS Shell Dlg",0,0 -STYLE 0x48C00048 +FONT 8, "MS Shell Dlg" BEGIN - CONTROL "Primary language",-1,"Button",0x50000007,8,11,228,74 - CONTROL "",IDC_FLAGS,"Static",0x50000203,0,12,26,21 - CONTROL "Select the primary language and region you want to use:",-1,"Static",0x50020000,38,25,193,22 - CONTROL "",IDC_LANGUAGELIST,"ComboBox",0x50210103,39,49,191,83 + GROUPBOX "Primary language", -1, 8, 11, 228, 74 + ICON IDC_FLAGS, IDC_ICON1, 12, 26, 21, 20, SS_ICON + LTEXT "Select the primary language and region you want to use:", -1, 38, 25, 193, 22 + COMBOBOX IDC_LANGUAGELIST, 39, 49, 191, 83, CBS_DROPDOWNLIST | CBS_SORT | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL END -STRINGTABLE DISCARDABLE + + +STRINGTABLE BEGIN IDS_CPLNAME "Regional Options" IDS_CPLDESCRIPTION "Select languages and format numbers, currencies, times and date." Modified: trunk/reactos/dll/cpl/intl/numbers.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/numbers.c?rev…
============================================================================== --- trunk/reactos/dll/cpl/intl/numbers.c (original) +++ trunk/reactos/dll/cpl/intl/numbers.c Sat Jul 8 14:37:37 2006 @@ -27,29 +27,9 @@ #include <windows.h> #include <commctrl.h> #include <cpl.h> -#include <stdio.h> #include "intl.h" #include "resource.h" - -//TODO no saving has been implamented at this time, needs to be done -//changing for example, the list sperator will not add it to the dropdown list and should -//the dropdown that contain certian strings are not formated acording to the LOCALE settings - -static VOID -UpdateNumbersSample(HWND hWnd) -{ - WCHAR SampleNumber[13]; - WCHAR OutBuffer[25]; - - wcscpy(SampleNumber,L"123456789.00"); - GetNumberFormat(LOCALE_USER_DEFAULT,0,SampleNumber,NULL,OutBuffer,sizeof(OutBuffer)); - SendMessageW(GetDlgItem(hWnd,IDC_POSITIVESAMPLE), WM_SETTEXT, 0, (LPARAM)OutBuffer); - - wcscpy(SampleNumber,L"-123456789.00"); - GetNumberFormat(LOCALE_USER_DEFAULT,0,SampleNumber,NULL,OutBuffer,sizeof(OutBuffer)); - SendMessageW(GetDlgItem(hWnd,IDC_NEGITIVESAMPLE), WM_SETTEXT, 0, (LPARAM)OutBuffer); -} /* Property page dialog callback */ @@ -62,124 +42,7 @@ switch(uMsg) { case WM_INITDIALOG: - { - WCHAR Buffer[80]; - UpdateNumbersSample(hwndDlg); - - //get decimal symbol - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_DECSYMBOL), CB_ADDSTRING, 0, (LPARAM)Buffer); - SendMessageW(GetDlgItem(hwndDlg,IDC_DECSYMBOL), CB_SETCURSEL, 0, 0); - - int iindex; //uses in geting item indexes - - //number of decimal places - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDIGITS, Buffer, 80); - int i; - int *countnum; - int iPlus; - for(i=0;i<10;i++) - { - iPlus = i + 48; - countnum = &iPlus; - SendMessageW(GetDlgItem(hwndDlg,IDC_DECDIGITS), CB_ADDSTRING, 0, (LPARAM)countnum); - } - iindex = (int)Buffer[0]; - iindex = iindex - 48; - - SendMessageW(GetDlgItem(hwndDlg,IDC_DECDIGITS), CB_SETCURSEL, iindex, 0); - - //digit grouping Symbol - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUPSYMBOL), CB_ADDSTRING, 0, (LPARAM)Buffer); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUPSYMBOL), CB_SETCURSEL, 0, 0); - - //digit grouping - //possably this should accept any setting not just these 3 (what if the regestery is manualy edited?) - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"12345678"); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"12,345,678"); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"1,23,45,678"); - if(wcsncmp(Buffer,L"3;2;0",6)) {}else - { - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 0, 0); - } - - if(wcsncmp(Buffer,L"3;0",6)) {}else - { - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 1, 0); - } - - if(wcsncmp(Buffer,L"0;0",6)) {}else - { - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 2, 0); - } - - //Negitive sign - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SNEGATIVESIGN, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGSIGN), CB_ADDSTRING, 0, (LPARAM)Buffer); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGSIGN), CB_SETCURSEL, 0, 0); - - //Negitive number format - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_INEGSIGNPOSN, Buffer, 80); - //SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)Buffer); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"(1.1)"); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"- 1.1"); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"1.1 -"); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"-1.1"); - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"1.1-"); - iindex = (int)Buffer[0]; - iindex = iindex - 48; - SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_SETCURSEL, iindex, 0); - - //Leading zeros - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_ILZERO, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_ADDSTRING, 0, (LPARAM)L".7"); - SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_ADDSTRING, 0, (LPARAM)L"0.7"); - iindex = (int)Buffer[0]; - iindex = iindex - 48; - SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_SETCURSEL, iindex, 0); - - - //List seperator - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SLIST, Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_LISTSEPERATOR), CB_ADDSTRING, 0, (LPARAM)Buffer); - SendMessageW(GetDlgItem(hwndDlg,IDC_LISTSEPERATOR), CB_SETCURSEL, 0, 0); - - //Measurement system - GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IMEASURE , Buffer, 80); - SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_ADDSTRING, 0, (LPARAM)L"Metric"); //hardcoded english strings - SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_ADDSTRING, 0, (LPARAM)L"US"); - iindex = (int)Buffer[0]; - iindex = iindex - 48; - SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_SETCURSEL, iindex, 0); //this line doesn't work - - //Digit substatution - - //LOCALE_IDIGITSUBSTITUTION is undefined, to be done elseware? - //hardcoded english strings should also be removed - // GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDIGITSUBSTITUTION, Buffer, 80); - // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"Context"); - // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"None"); - // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"National"); - // iindex = (int)Buffer[0]; - // iindex = iindex - 48; - // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_SETCURSEL, iindex, 0); - //the next 2 lines should be removed when LOCALE_IDIGITSUBSTITUTION is avalable - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"Not yet avalable"); - SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_SETCURSEL, 0, 0); - - - //todo write data - - } - case WM_COMMAND: - { - //UpdateNumbersSample(GetDlgItem(hwndDlg, IDC_POSITIVESAMPLE)); - } - case WM_NOTIFY: - { - //UpdateNumbersSample(GetDlgItem(hwndDlg, IDC_POSITIVESAMPLE)); - } + break; } return FALSE; } Modified: trunk/reactos/dll/cpl/intl/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/resource.h?re…
============================================================================== --- trunk/reactos/dll/cpl/intl/resource.h (original) +++ trunk/reactos/dll/cpl/intl/resource.h Sat Jul 8 14:37:37 2006 @@ -16,18 +16,6 @@ #define IDC_TIMESEPARATOR 109 #define IDC_TIMEAMSYMBOL 110 #define IDC_TIMEPMSYMBOL 111 -#define IDC_POSITIVESAMPLE 4 -#define IDC_NEGITIVESAMPLE 5 -#define IDC_DECSYMBOL 16 -#define IDC_DECDIGITS 17 -#define IDC_DIGGROUPSYMBOL 18 -#define IDC_DIGGROUP 19 -#define IDC_NEGSIGN 20 -#define IDC_NEGFORMAT 21 -#define IDC_LEADZEROS 22 -#define IDC_LISTSEPERATOR 23 -#define IDC_MEASUREMENTSYS 24 -#define IDC_DIGSUBSTAT 25 #define IDD_DATEPAGE 104 #define IDD_LOCALEPAGE 105
18 years, 5 months
1
0
0
0
[cwittich] 22911: -fixed some msvc /W4 warnings
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Jul 8 14:22:35 2006 New Revision: 22911 URL:
http://svn.reactos.org/svn/reactos?rev=22911&view=rev
Log: -fixed some msvc /W4 warnings Modified: trunk/reactos/dll/win32/newdev/wizard.c Modified: trunk/reactos/dll/win32/newdev/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/newdev/wizard.c?…
============================================================================== --- trunk/reactos/dll/win32/newdev/wizard.c (original) +++ trunk/reactos/dll/win32/newdev/wizard.c Sat Jul 8 14:22:35 2006 @@ -421,6 +421,7 @@ IN LPARAM lParam) { PDEVINSTDATA DevInstData; + UNREFERENCED_PARAMETER(wParam); /* Retrieve pointer to the global setup data */ DevInstData = (PDEVINSTDATA)GetWindowLongPtr(hwndDlg, GWL_USERDATA); @@ -861,6 +862,8 @@ PDEVINSTDATA DevInstData; HWND hwndControl; + UNREFERENCED_PARAMETER(wParam); + /* Get pointer to the global setup data */ DevInstData = (PDEVINSTDATA)GetWindowLongPtr(hwndDlg, GWL_USERDATA); @@ -968,6 +971,7 @@ IN LPARAM lParam) { PDEVINSTDATA DevInstData; + UNREFERENCED_PARAMETER(wParam); /* Retrieve pointer to the global setup data */ DevInstData = (PDEVINSTDATA)GetWindowLongPtr(hwndDlg, GWL_USERDATA); @@ -1043,6 +1047,7 @@ IN LPARAM lParam) { PDEVINSTDATA DevInstData; + UNREFERENCED_PARAMETER(wParam); /* Retrieve pointer to the global setup data */ DevInstData = (PDEVINSTDATA)GetWindowLongPtr(hwndDlg, GWL_USERDATA); @@ -1151,43 +1156,43 @@ psp.dwFlags = PSP_DEFAULT | PSP_HIDEHEADER; psp.hInstance = hDllInstance; psp.lParam = (LPARAM)DevInstData; - psp.pfnDlgProc = WelcomeDlgProc; + psp.pfnDlgProc = (DLGPROC) WelcomeDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_WELCOMEPAGE); ahpsp[IDD_WELCOMEPAGE] = CreatePropertySheetPage(&psp); /* Create the Select Source page */ psp.dwFlags = PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE; - psp.pfnDlgProc = CHSourceDlgProc; + psp.pfnDlgProc = (DLGPROC) CHSourceDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_CHSOURCE); ahpsp[IDD_CHSOURCE] = CreatePropertySheetPage(&psp); /* Create the Search driver page */ psp.dwFlags = PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE; - psp.pfnDlgProc = SearchDrvDlgProc; + psp.pfnDlgProc = (DLGPROC) SearchDrvDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_SEARCHDRV); ahpsp[IDD_SEARCHDRV] = CreatePropertySheetPage(&psp); /* Create the Install driver page */ psp.dwFlags = PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE; - psp.pfnDlgProc = InstallDrvDlgProc; + psp.pfnDlgProc = (DLGPROC) InstallDrvDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_INSTALLDRV); ahpsp[IDD_INSTALLDRV] = CreatePropertySheetPage(&psp); /* Create the No driver page */ psp.dwFlags = PSP_DEFAULT | PSP_HIDEHEADER; - psp.pfnDlgProc = NoDriverDlgProc; + psp.pfnDlgProc = (DLGPROC) NoDriverDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_NODRIVER); ahpsp[IDD_NODRIVER] = CreatePropertySheetPage(&psp); /* Create the Install failed page */ psp.dwFlags = PSP_DEFAULT | PSP_HIDEHEADER; - psp.pfnDlgProc = InstallFailedDlgProc; + psp.pfnDlgProc = (DLGPROC) InstallFailedDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_INSTALLFAILED); ahpsp[IDD_INSTALLFAILED] = CreatePropertySheetPage(&psp); /* Create the Finish page */ psp.dwFlags = PSP_DEFAULT | PSP_HIDEHEADER; - psp.pfnDlgProc = FinishDlgProc; + psp.pfnDlgProc = (DLGPROC) FinishDlgProc; psp.pszTemplate = MAKEINTRESOURCE(IDD_FINISHPAGE); ahpsp[IDD_FINISHPAGE] = CreatePropertySheetPage(&psp);
18 years, 5 months
1
0
0
0
[gedmurphy] 22910: apply patch from bug 1653. patch by Mrkaras. unfortunately, this applet is soon the be replaced.
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Sat Jul 8 14:20:35 2006 New Revision: 22910 URL:
http://svn.reactos.org/svn/reactos?rev=22910&view=rev
Log: apply patch from bug 1653. patch by Mrkaras. unfortunately, this applet is soon the be replaced. Modified: trunk/reactos/dll/cpl/intl/en.rc trunk/reactos/dll/cpl/intl/numbers.c trunk/reactos/dll/cpl/intl/resource.h Modified: trunk/reactos/dll/cpl/intl/en.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/en.rc?rev=229…
============================================================================== --- trunk/reactos/dll/cpl/intl/en.rc (original) +++ trunk/reactos/dll/cpl/intl/en.rc Sat Jul 8 14:20:35 2006 @@ -1,81 +1,183 @@ -/* $Id: intl.rc 12852 2005-01-06 13:58:04Z mf $ */ - -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US - -IDD_GENERALPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +#define IDC_GRP1 1 +#define IDC_STC1 2 +#define IDC_STC2 3 +#define IDC_POSITIVESAMPLE 4 +#define IDC_NEGITIVESAMPLE 5 +#define IDC_STC3 6 +#define IDC_STC4 7 +#define IDC_STC5 8 +#define IDC_STC6 9 +#define IDC_STC7 10 +#define IDC_STC9 12 +#define IDC_STC8 11 +#define IDC_STC10 13 +#define IDC_STC11 14 +#define IDC_STC12 15 +#define IDC_DECSYMBOL 16 +#define IDC_DECDIGITS 17 +#define IDC_DIGGROUPSYMBOL 18 +#define IDC_DIGGROUP 19 +#define IDC_NEGSIGN 20 +#define IDC_NEGFORMAT 21 +#define IDC_LEADZEROS 22 +#define IDC_LISTSEPERATOR 23 +#define IDC_MEASUREMENTSYS 24 +#define IDC_DIGSUBSTAT 25 +#define IDC_CBO11 1 +#define IDC_CBO12 2 +#define IDC_CBO13 3 +#define IDC_CBO14 4 +#define IDC_CBO15 5 +#define IDC_STC13 6 +#define IDC_STC14 7 +#define IDC_STC15 8 +#define IDC_STC16 9 +#define IDC_STC17 10 +#define IDC_EDT3 11 +#define IDC_STC18 12 +#define IDC_EDT4 13 +#define IDC_STC19 14 +#define IDC_GRP2 15 +#define IDC_CBO16 16 +#define IDC_CBO17 17 +#define IDC_STC20 18 +#define IDC_STC21 19 +#define IDC_GRP3 1 +#define IDC_STC22 2 +#define IDC_EDT6 4 +#define IDC_EDT5 3 +#define IDC_STC23 5 +#define IDC_UDN1 6 +#define IDC_GRP4 7 +#define IDC_STC24 8 +#define IDC_EDT7 9 +#define IDC_STC25 10 +#define IDC_CBO18 11 +#define IDC_STC26 12 +#define IDC_CBO19 13 +#define IDC_GRP5 14 +#define IDC_CBO20 15 +#define IDC_STC27 16 +#define IDC_EDT8 17 +#define IDC_STC28 18 +LANGUAGE 9,1 +IDD_GENERALPAGE DIALOGEX 0,0,246,188 CAPTION "General" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - LTEXT "Property Page 1",-1,73,74,90,8 + CONTROL "Property Page 1",-1,"Static",0x50020000,73,74,90,8 END - - -IDD_NUMBERSPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +IDD_NUMBERSPAGE DIALOGEX 0,0,246,204 CAPTION "Numbers" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - LTEXT "Property Page 2",-1,73,74,90,8 + CONTROL "Sample",IDC_GRP1,"Button",0x50000007,2,1,242,28 + CONTROL "Positive",IDC_STC1,"Static",0x50000000,8,14,26,8 + CONTROL "Negitive",IDC_STC2,"Static",0x50000000,118,14,25,8 + CONTROL "",IDC_POSITIVESAMPLE,"Edit",0x50010000,34,11,66,13,0x00000200 + CONTROL "",IDC_NEGITIVESAMPLE,"Edit",0x50010000,146,12,84,13,0x00000200 + CONTROL "&Decimal symbol:",IDC_STC3,"Static",0x50000000,18,36,72,9 + CONTROL "No. of digits af&ter decimal:",IDC_STC4,"Static",0x50000000,18,53,92,9 + CONTROL "Digit &grouping symbol:",IDC_STC5,"Static",0x50000000,18,70,86,9 + CONTROL "d&igit grouping:",IDC_STC6,"Static",0x50000000,18,86,64,9 + CONTROL "N&egitive sign symbol:",IDC_STC7,"Static",0x50000000,18,103,96,9 + CONTROL "Negitive number &format:",IDC_STC9,"Static",0x50000000,18,120,90,9 + CONTROL "Display leading &zeros: ",IDC_STC8,"Static",0x50000000,18,136,84,9 + CONTROL "&List seperator:",IDC_STC10,"Static",0x50000000,18,153,52,9 + CONTROL "&Measurement system: ",IDC_STC11,"Static",0x50000000,18,169,94,9 + CONTROL "Digit &substatution:",IDC_STC12,"Static",0x50000000,18,186,80,9 + CONTROL "",IDC_DECSYMBOL,"ComboBox",0x50010002,118,35,112,65 + CONTROL "",IDC_DECDIGITS,"ComboBox",0x50010003,118,51,112,98 + CONTROL "",IDC_DIGGROUPSYMBOL,"ComboBox",0x50010002,118,66,112,48 + CONTROL "",IDC_DIGGROUP,"ComboBox",0x50010003,118,84,112,61 + CONTROL "",IDC_NEGSIGN,"ComboBox",0x50010002,118,101,112,67 + CONTROL "",IDC_NEGFORMAT,"ComboBox",0x50010003,118,118,112,57 + CONTROL "",IDC_LEADZEROS,"ComboBox",0x50010003,118,134,112,57 + CONTROL "",IDC_LISTSEPERATOR,"ComboBox",0x50010002,118,151,112,83 + CONTROL "",IDC_MEASUREMENTSYS,"ComboBox",0x50010003,118,168,112,37 + CONTROL "",IDC_DIGSUBSTAT,"ComboBox",0x50010003,118,186,112,37 END - - -IDD_CURRENCYPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +IDD_CURRENCYPAGE DIALOGEX 0,0,246,188 CAPTION "Currency" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - LTEXT "Property Page 3",-1,73,74,90,8 + CONTROL "",IDC_CBO11,"ComboBox",0x50010002,116,33,112,15 + CONTROL "",IDC_CBO12,"ComboBox",0x50010003,116,49,112,15 + CONTROL "",IDC_CBO13,"ComboBox",0x50010002,116,66,112,15 + CONTROL "",IDC_CBO14,"ComboBox",0x50010003,116,90,112,15 + CONTROL "",IDC_CBO15,"ComboBox",0x50010002,116,107,112,15 + CONTROL "No. of digits after decimal:",IDC_STC13,"Static",0x50000000,16,108,82,9 + CONTROL "&Decimal symbol:",IDC_STC14,"Static",0x50000000,16,92,82,9 + CONTROL "&Negitive currency format:",IDC_STC15,"Static",0x50000000,16,68,82,9 + CONTROL "&Positive currency format:",IDC_STC16,"Static",0x50000000,16,51,82,9 + CONTROL "Currency &symbol:",IDC_STC17,"Static",0x50000000,16,35,56,9 + CONTROL "",IDC_EDT3,"Edit",0x50010000,144,11,84,13,0x00000200 + CONTROL "Negitive",IDC_STC18,"Static",0x50000000,116,12,26,9 + CONTROL "",IDC_EDT4,"Edit",0x50010000,32,9,66,13,0x00000200 + CONTROL "Positive",IDC_STC19,"Static",0x50000000,6,12,26,9 + CONTROL "Sample",IDC_GRP2,"Button",0x50000007,2,0,242,28 + CONTROL "",IDC_CBO16,"ComboBox",0x50010003,116,131,112,15 + CONTROL "",IDC_CBO17,"ComboBox",0x50010002,116,147,112,15 + CONTROL "D&igit grouping:",IDC_STC20,"Static",0x50000000,16,149,82,9 + CONTROL "Digit &grouping symbol:",IDC_STC21,"Static",0x50000000,16,132,82,9 END - - -IDD_TIMEPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +IDD_TIMEPAGE DIALOGEX 0,0,246,188 CAPTION "Time" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - GROUPBOX "Appearance sample", -1, 7, 7, 228, 33, WS_CHILD | WS_VISIBLE - LTEXT "Time sample:", -1, 13, 21, 54, 10, WS_CHILD |WS_VISIBLE | WS_GROUP - EDITTEXT IDC_TIMESAMPLE, 68, 19, 84, 14, ES_READONLY | WS_CHILD | WS_VISIBLE | WS_GROUP - LTEXT "&Time format:", -1, 13, 52, 54, 10, WS_CHILD |WS_VISIBLE | WS_GROUP - COMBOBOX IDC_TIMEFORMAT, 68, 50, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP - LTEXT "Time &separator:", -1, 13, 70, 54, 10, WS_VISIBLE | WS_GROUP - COMBOBOX IDC_TIMESEPARATOR, 68, 68, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP - LTEXT "A&M symbol:", -1, 13, 88, 54, 10, WS_VISIBLE | WS_GROUP - COMBOBOX IDC_TIMEAMSYMBOL, 68, 86, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP - LTEXT "&PM symbol:", -1, 13, 106, 54, 10, WS_VISIBLE | WS_GROUP - COMBOBOX IDC_TIMEPMSYMBOL, 68, 104, 84, 100, CBS_DROPDOWN | WS_CHILD | WS_VISIBLE | WS_TABSTOP - GROUPBOX "", -1, 7, 124, 228, 60, WS_VISIBLE - LTEXT "Time format notation\n\n\ -h = hour m = minute s = second t = am or pm\n\n\ -h = 12 hour H = 24 hour\n\ -hh, mm, ss = leading zero h, m, s = no leading zero", - -1, 13, 133, 214, 47, WS_CHILD |WS_VISIBLE | WS_GROUP + CONTROL "Appearance sample",-1,"Button",0x50000007,7,7,228,33 + CONTROL "Time sample:",-1,"Static",0x50020000,13,21,54,10 + CONTROL "",IDC_TIMESAMPLE,"Edit",0x50030800,68,19,84,14,0x00000200 + CONTROL "&Time format:",-1,"Static",0x50020000,13,52,54,10 + CONTROL "",IDC_TIMEFORMAT,"ComboBox",0x50010003,68,48,84,100 + CONTROL "Time &separator:",-1,"Static",0x50020000,13,70,54,10 + CONTROL "",IDC_TIMESEPARATOR,"ComboBox",0x50010003,68,68,84,100 + CONTROL "A&M symbol:",-1,"Static",0x50020000,13,88,54,10 + CONTROL "",IDC_TIMEAMSYMBOL,"ComboBox",0x50010003,68,86,84,100 + CONTROL "&PM symbol:",-1,"Static",0x50020000,13,106,54,10 + CONTROL "",IDC_TIMEPMSYMBOL,"ComboBox",0x50010003,68,104,84,100 + CONTROL "",-1,"Button",0x50000007,7,124,228,60 + CONTROL "Time format notation\n\nh = hour m = minute s = second t = am or pm\n\nh = 12 hour H = 24 hour\nhh, mm, ss = leading zero h, m, s = no leading zero",-1,"Static",0x50020000,13,133,214,47 END - - -IDD_DATEPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +IDD_DATEPAGE DIALOGEX 0,0,246,188 CAPTION "Date" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - LTEXT "Property Page 5",-1,73,74,90,8 + CONTROL "Calender",IDC_GRP3,"Button",0x50000007,0,0,240,48 + CONTROL "When a two-digit year is entered, interprete it as a year between:",IDC_STC22,"Static",0x50000000,8,12,234,9 + CONTROL "",IDC_EDT6,"Edit",0x50010800,12,27,32,13,0x00000200 + CONTROL "",IDC_EDT5,"Edit",0x50010000,70,27,32,13,0x00000200 + CONTROL "and",IDC_STC23,"Static",0x50000000,50,29,14,8 + CONTROL "",IDC_UDN1,"msctls_updown32",0x50000000,104,27,11,13 + CONTROL "Short date",IDC_GRP4,"Button",0x50000007,2,49,240,74 + CONTROL "Short date sample:",IDC_STC24,"Static",0x50000000,10,62,62,9 + CONTROL "",IDC_EDT7,"Edit",0x50010800,72,60,164,13,0x00000200 + CONTROL "Short date format:",IDC_STC25,"Static",0x50000000,10,86,58,9 + CONTROL "",IDC_CBO18,"ComboBox",0x50010002,72,84,164,13 + CONTROL "Date separator:",IDC_STC26,"Static",0x50000000,10,108,54,9 + CONTROL "",IDC_CBO19,"ComboBox",0x50010002,72,107,54,13 + CONTROL "Long date",IDC_GRP5,"Button",0x50000007,2,125,240,61 + CONTROL "",IDC_CBO20,"ComboBox",0x50010002,72,160,164,13 + CONTROL "Long date format:",IDC_STC27,"Static",0x50000000,10,162,58,9 + CONTROL "",IDC_EDT8,"Edit",0x50010800,72,134,164,13,0x00000200 + CONTROL "Long date sample:",IDC_STC28,"Static",0x50000000,10,136,60,9 END - - -IDD_LOCALEPAGE DIALOGEX 0, 0, 246, 188 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +IDD_LOCALEPAGE DIALOGEX 0,0,246,188 CAPTION "Input Locale" -FONT 8, "MS Shell Dlg" +FONT 8,"MS Shell Dlg",0,0 +STYLE 0x48C00048 BEGIN - GROUPBOX "Primary language", -1, 8, 11, 228, 74 - ICON IDC_FLAGS, IDC_ICON1, 12, 26, 21, 20, SS_ICON - LTEXT "Select the primary language and region you want to use:", -1, 38, 25, 193, 22 - COMBOBOX IDC_LANGUAGELIST, 39, 49, 191, 83, CBS_DROPDOWNLIST | CBS_SORT | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL + CONTROL "Primary language",-1,"Button",0x50000007,8,11,228,74 + CONTROL "",IDC_FLAGS,"Static",0x50000203,0,12,26,21 + CONTROL "Select the primary language and region you want to use:",-1,"Static",0x50020000,38,25,193,22 + CONTROL "",IDC_LANGUAGELIST,"ComboBox",0x50210103,39,49,191,83 END - - -STRINGTABLE +STRINGTABLE DISCARDABLE BEGIN IDS_CPLNAME "Regional Options" IDS_CPLDESCRIPTION "Select languages and format numbers, currencies, times and date." Modified: trunk/reactos/dll/cpl/intl/numbers.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/numbers.c?rev…
============================================================================== --- trunk/reactos/dll/cpl/intl/numbers.c (original) +++ trunk/reactos/dll/cpl/intl/numbers.c Sat Jul 8 14:20:35 2006 @@ -27,9 +27,29 @@ #include <windows.h> #include <commctrl.h> #include <cpl.h> +#include <stdio.h> #include "intl.h" #include "resource.h" + +//TODO no saving has been implamented at this time, needs to be done +//changing for example, the list sperator will not add it to the dropdown list and should +//the dropdown that contain certian strings are not formated acording to the LOCALE settings + +static VOID +UpdateNumbersSample(HWND hWnd) +{ + WCHAR SampleNumber[13]; + WCHAR OutBuffer[25]; + + wcscpy(SampleNumber,L"123456789.00"); + GetNumberFormat(LOCALE_USER_DEFAULT,0,SampleNumber,NULL,OutBuffer,sizeof(OutBuffer)); + SendMessageW(GetDlgItem(hWnd,IDC_POSITIVESAMPLE), WM_SETTEXT, 0, (LPARAM)OutBuffer); + + wcscpy(SampleNumber,L"-123456789.00"); + GetNumberFormat(LOCALE_USER_DEFAULT,0,SampleNumber,NULL,OutBuffer,sizeof(OutBuffer)); + SendMessageW(GetDlgItem(hWnd,IDC_NEGITIVESAMPLE), WM_SETTEXT, 0, (LPARAM)OutBuffer); +} /* Property page dialog callback */ @@ -42,7 +62,124 @@ switch(uMsg) { case WM_INITDIALOG: - break; + { + WCHAR Buffer[80]; + UpdateNumbersSample(hwndDlg); + + //get decimal symbol + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_DECSYMBOL), CB_ADDSTRING, 0, (LPARAM)Buffer); + SendMessageW(GetDlgItem(hwndDlg,IDC_DECSYMBOL), CB_SETCURSEL, 0, 0); + + int iindex; //uses in geting item indexes + + //number of decimal places + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDIGITS, Buffer, 80); + int i; + int *countnum; + int iPlus; + for(i=0;i<10;i++) + { + iPlus = i + 48; + countnum = &iPlus; + SendMessageW(GetDlgItem(hwndDlg,IDC_DECDIGITS), CB_ADDSTRING, 0, (LPARAM)countnum); + } + iindex = (int)Buffer[0]; + iindex = iindex - 48; + + SendMessageW(GetDlgItem(hwndDlg,IDC_DECDIGITS), CB_SETCURSEL, iindex, 0); + + //digit grouping Symbol + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUPSYMBOL), CB_ADDSTRING, 0, (LPARAM)Buffer); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUPSYMBOL), CB_SETCURSEL, 0, 0); + + //digit grouping + //possably this should accept any setting not just these 3 (what if the regestery is manualy edited?) + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"12345678"); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"12,345,678"); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_ADDSTRING, 0, (LPARAM)L"1,23,45,678"); + if(wcsncmp(Buffer,L"3;2;0",6)) {}else + { + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 0, 0); + } + + if(wcsncmp(Buffer,L"3;0",6)) {}else + { + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 1, 0); + } + + if(wcsncmp(Buffer,L"0;0",6)) {}else + { + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGGROUP), CB_SETCURSEL, 2, 0); + } + + //Negitive sign + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SNEGATIVESIGN, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGSIGN), CB_ADDSTRING, 0, (LPARAM)Buffer); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGSIGN), CB_SETCURSEL, 0, 0); + + //Negitive number format + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_INEGSIGNPOSN, Buffer, 80); + //SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)Buffer); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"(1.1)"); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"- 1.1"); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"1.1 -"); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"-1.1"); + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_ADDSTRING, 0, (LPARAM)L"1.1-"); + iindex = (int)Buffer[0]; + iindex = iindex - 48; + SendMessageW(GetDlgItem(hwndDlg,IDC_NEGFORMAT), CB_SETCURSEL, iindex, 0); + + //Leading zeros + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_ILZERO, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_ADDSTRING, 0, (LPARAM)L".7"); + SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_ADDSTRING, 0, (LPARAM)L"0.7"); + iindex = (int)Buffer[0]; + iindex = iindex - 48; + SendMessageW(GetDlgItem(hwndDlg,IDC_LEADZEROS), CB_SETCURSEL, iindex, 0); + + + //List seperator + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SLIST, Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_LISTSEPERATOR), CB_ADDSTRING, 0, (LPARAM)Buffer); + SendMessageW(GetDlgItem(hwndDlg,IDC_LISTSEPERATOR), CB_SETCURSEL, 0, 0); + + //Measurement system + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IMEASURE , Buffer, 80); + SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_ADDSTRING, 0, (LPARAM)L"Metric"); //hardcoded english strings + SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_ADDSTRING, 0, (LPARAM)L"US"); + iindex = (int)Buffer[0]; + iindex = iindex - 48; + SendMessageW(GetDlgItem(hwndDlg,IDC_MEASUREMENTSYS), CB_SETCURSEL, iindex, 0); //this line doesn't work + + //Digit substatution - + //LOCALE_IDIGITSUBSTITUTION is undefined, to be done elseware? + //hardcoded english strings should also be removed + // GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDIGITSUBSTITUTION, Buffer, 80); + // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"Context"); + // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"None"); + // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"National"); + // iindex = (int)Buffer[0]; + // iindex = iindex - 48; + // SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_SETCURSEL, iindex, 0); + //the next 2 lines should be removed when LOCALE_IDIGITSUBSTITUTION is avalable + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_ADDSTRING, 0, (LPARAM)L"Not yet avalable"); + SendMessageW(GetDlgItem(hwndDlg,IDC_DIGSUBSTAT), CB_SETCURSEL, 0, 0); + + + //todo write data + + } + case WM_COMMAND: + { + //UpdateNumbersSample(GetDlgItem(hwndDlg, IDC_POSITIVESAMPLE)); + } + case WM_NOTIFY: + { + //UpdateNumbersSample(GetDlgItem(hwndDlg, IDC_POSITIVESAMPLE)); + } } return FALSE; } Modified: trunk/reactos/dll/cpl/intl/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/resource.h?re…
============================================================================== --- trunk/reactos/dll/cpl/intl/resource.h (original) +++ trunk/reactos/dll/cpl/intl/resource.h Sat Jul 8 14:20:35 2006 @@ -16,6 +16,18 @@ #define IDC_TIMESEPARATOR 109 #define IDC_TIMEAMSYMBOL 110 #define IDC_TIMEPMSYMBOL 111 +#define IDC_POSITIVESAMPLE 4 +#define IDC_NEGITIVESAMPLE 5 +#define IDC_DECSYMBOL 16 +#define IDC_DECDIGITS 17 +#define IDC_DIGGROUPSYMBOL 18 +#define IDC_DIGGROUP 19 +#define IDC_NEGSIGN 20 +#define IDC_NEGFORMAT 21 +#define IDC_LEADZEROS 22 +#define IDC_LISTSEPERATOR 23 +#define IDC_MEASUREMENTSYS 24 +#define IDC_DIGSUBSTAT 25 #define IDD_DATEPAGE 104 #define IDD_LOCALEPAGE 105
18 years, 5 months
1
0
0
0
[cwittich] 22909: -use correct RuntimeLibrary for DLLs
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Jul 8 14:12:57 2006 New Revision: 22909 URL:
http://svn.reactos.org/svn/reactos?rev=22909&view=rev
Log: -use correct RuntimeLibrary for DLLs Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/…
============================================================================== --- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp (original) +++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Sat Jul 8 14:12:57 2006 @@ -321,7 +321,12 @@ fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"%s\"\r\n", speed ? "FALSE" : "TRUE" ); fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"%s\"\r\n", sys ? 0 : (debug ? "3" : "0") ); - fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"%d\"\r\n", debug? 1: 5 ); // 1=/MTd 5=/MT + + if (dll) + fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"%d\"\r\n", debug ? 3 : 2 ); // 3=/MDd 5=/MD + else + fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"%d\"\r\n", debug ? 1 : 5 ); // 1=/MTd 5=/MT + fprintf ( OUT, "\t\t\t\tBufferSecurityCheck=\"%s\"\r\n", sys ? "FALSE" : (debug ? "TRUE" : "FALSE" )); fprintf ( OUT, "\t\t\t\tEnableFunctionLevelLinking=\"%s\"\r\n", debug ? "TRUE" : "FALSE" );
18 years, 5 months
1
0
0
0
[cwittich] 22908: -fixed msvc /W4 warnings -removed ntdll dependency
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Jul 8 14:00:15 2006 New Revision: 22908 URL:
http://svn.reactos.org/svn/reactos?rev=22908&view=rev
Log: -fixed msvc /W4 warnings -removed ntdll dependency Modified: trunk/reactos/dll/win32/cards/cards.c trunk/reactos/dll/win32/cards/cards.rbuild Modified: trunk/reactos/dll/win32/cards/cards.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cards/cards.c?re…
============================================================================== --- trunk/reactos/dll/win32/cards/cards.c (original) +++ trunk/reactos/dll/win32/cards/cards.c Sat Jul 8 14:00:15 2006 @@ -31,6 +31,7 @@ */ BOOL WINAPI WEP(DWORD Unknown) { + UNREFERENCED_PARAMETER(Unknown); return TRUE; } @@ -229,13 +230,19 @@ */ BOOL WINAPI cdtAnimate(HDC hdc, int cardback, int x, int y, int frame) { + UNREFERENCED_PARAMETER(frame); + UNREFERENCED_PARAMETER(y); + UNREFERENCED_PARAMETER(x); + UNREFERENCED_PARAMETER(cardback); + UNREFERENCED_PARAMETER(hdc); return TRUE; } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { - if (fdwReason == DLL_PROCESS_ATTACH) + UNREFERENCED_PARAMETER(lpvReserved); + if (fdwReason == DLL_PROCESS_ATTACH) g_hModule = hinstDLL; - return TRUE; -} + return TRUE; +} Modified: trunk/reactos/dll/win32/cards/cards.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cards/cards.rbui…
============================================================================== --- trunk/reactos/dll/win32/cards/cards.rbuild (original) +++ trunk/reactos/dll/win32/cards/cards.rbuild Sat Jul 8 14:00:15 2006 @@ -4,7 +4,6 @@ <define name="UNICODE" /> <define name="_UNICODE" /> <define name="__USE_W32API" /> - <library>ntdll</library> <library>kernel32</library> <library>gdi32</library> <library>user32</library>
18 years, 5 months
1
0
0
0
[ion] 22907: - Fix boot.
by ion@svn.reactos.org
Author: ion Date: Sat Jul 8 08:13:50 2006 New Revision: 22907 URL:
http://svn.reactos.org/svn/reactos?rev=22907&view=rev
Log: - Fix boot. Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?r…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/file.c (original) +++ trunk/reactos/ntoskrnl/io/iomgr/file.c Sat Jul 8 08:13:50 2006 @@ -251,10 +251,12 @@ if (RemainingName->Length) { /* Setup the unicode string */ - FileObject->FileName.MaximumLength = RemainingName->Length; + FileObject->FileName.MaximumLength = RemainingName->Length + + sizeof(WCHAR); FileObject->FileName.Buffer = ExAllocatePoolWithTag(PagedPool, - RemainingName-> - Length, + FileObject-> + FileName. + MaximumLength, TAG_IO_NAME); if (!FileObject->FileName.Buffer) {
18 years, 5 months
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
67
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Results per page:
10
25
50
100
200