Tuesday, March 09, 2004

 

How to persistent the slider position in Storage/Program Memory setting dialog on WinCE.NET

1. Create a Registry key to holding the slider postion. For instance:

[HKEY_LOCAL_MACHINE\System\StorageMemory]
"SliderPostion"=dword:20

2. When saving system Registry, using GetSystemMemoryDivision () function to retreive current slider postion and save returned value in above Registry key.
This will be part of the function of Registry saving utility.


3. Write a startup application. This application should startup right after system startup. The startup application will read the slider position from the Registry then call SetSystemMemoryDivision() function to set the slider psotion as last time when we save the Registry.
Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?