![]() |
Previous | Next |
The following preset code sections were changed to allow three presets:
This code was inserted in place of the generated preset code:
switch (nPreset)
{
case PRESET_RED:
bstrTemp.LoadString(IDS_REDPRESETNAME);
break;
case PRESET_GREEN:
bstrTemp.LoadString(IDS_GREENPRESETNAME);
break;
case PRESET_BLUE:
bstrTemp.LoadString(IDS_BLUEPRESETNAME);
break;
}
The following enumeration in Glow.h was changed to allow three presets:
enum {
PRESET_RED = 0,
PRESET_GREEN,
PRESET_BLUE,
PRESET_COUNT
};
The following resources were defined in Resource.h to allow three presets:
#define IDS_REDPRESETNAME 102
#define IDS_GREENPRESETNAME 103
#define IDS_BLUEPRESETNAME 104
Note that you must also change the resource number of _APS_NEXT_SYMED_VALUE to 106.
The following strings must be changed in the Glowdll.rc file to allow three presets and give them names:
IDS_REDPRESETNAME "Glow Red"
IDS_GREENPRESETNAME "Glow Green"
IDS_BLUEPRESETNAME "Glow Blue"
Previous | Next |