plustab.cpp
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:48k
源码类别:
系统编程
开发平台:
Visual C++
- //---------------------------------------------------------------------------
- //
- // File: plustab.cpp
- //
- // Main Implementation of the Effects page
- //
- //---------------------------------------------------------------------------
- #include "precomp.hxx"
- #include "shlwapip.h"
- #pragma hdrstop
- // OLE-Registry magic number
- GUID g_CLSID_CplExt = { 0x41e300e0, 0x78b6, 0x11ce,
- { 0x84, 0x9b, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}
- };
- //need to be L"..." since SHGetRestriction takes only LPCWSTR and this file is compiled as ANSI
- #define POLICY_KEY_EXPLORER L"Explorer"
- #define POLICY_VALUE_ANIMATION L"NoChangeAnimation"
- #define POLICY_VALUE_KEYBOARDNAV L"NoChangeKeyboardNavigationIndicators"
- #define SPI_GETKEYBOARDINDICATORS SPI_GETMENUUNDERLINES//0x100A
- #define SPI_SETKEYBOARDINDICATORS SPI_SETMENUUNDERLINES//0x100B
- #define SPI_GETFONTCLEARTYPE 116
- #define SPI_SETFONTCLEARTYPE 117
- //Defines for getting registry settings
- const TCHAR c_szHICKey[] = TEXT("Control Panel\Desktop\WindowMetrics"); // show icons using highest possible colors
- const TCHAR c_szHICVal[] = TEXT("Shell Icon BPP"); // (4 if the checkbox is false, otherwise 16, don't set it to anything else)
- const TCHAR c_szSSKey[] = TEXT("Control Panel\Desktop");
- const TCHAR c_szSSVal[] = TEXT("SmoothScroll");
- const TCHAR c_szWMSISVal[] = TEXT("Shell Icon Size"); // Normal Icon Size (default 32 x 32)
- #ifdef INET_EXP_ICON
- const TCHAR c_szIEXP[] = TEXT("\Program Files\Microsoft Internet Explorer 4");
- #endif
- #define ICON_DEFAULT_SMALL 16
- #define ICON_DEFAULT_NORMAL 32
- #define ICON_DEFAULT_LARGE 48
- enum ICON_SIZE_TYPES {
- ICON_DEFAULT = 0,
- ICON_LARGE = 1,
- ICON_INDETERMINATE = 2
- };
- #define MENU_EFFECT_FADE 1
- #define MENU_EFFECT_SCROLL 2
- #define FONT_SMOOTHING_STANDARD 0
- #define FONT_SMOOTHING_CLEARTYPE 1
- // Registry Info for the icons
- typedef struct tagIconRegKeys
- {
- TCHAR szIconSubKey[128];
- TCHAR szIconValue[16];
- TCHAR szTitleSubKey[128];
- int iTitleResource;
- int iDefaultTitleResource;
- BOOL bNTOnly;
- }ICONREGKEYS;
- ICONREGKEYS sIconRegKeys[] =
- {
- // "My Computer" icon
- { TEXT("CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon"),
- TEXT("
English
