SRGWizSheet::LoadTypeResource

void SRGWizSheet::LoadTypeResource(LPCTSTR lpResName, LPCTSTR lpResType)

Fills the combobox with a list from the specified resource file

Defined in: WizSheet.cpp

Return Value

void

Parameters

lpResName

Resource file name to load

lpResType

Resource type of the resource file

Developer Notes

The list of axis types that are valid for a particular graph type is contained in the wizard's resources (wizres.rc). The resource name (of type GRAPHTYPE) is associated with a text file (.grf) in the RES subdirectory. This file has the following format:
1. If the first non-space(white space or tab space) char of a line is '/', thise is not parsed.
2. Empty lines are allowed.
3. Each line comprises two fields separated by spaces or tabs.
The first field is a hex number that identifies the axis type.
The remainder of the line is taken as a text string naming the axis type.
The names of each axis type (field 2) are added as strings to the combobox. The numeric IDs (field 1) are stored in the 32-bit value associated with the combobox items.

Of course, this function can be used for more general purposes.

See Also

CMainPage::FillAxisType