<< Return to Main Index

< Return to Class Index

CGXStyle::SetControl

CGXStyle& SetControl(WORD nControl);

nControl

Specifies the control id.

Return Value

Returns the this pointer.

Remarks

Initializes the control id setting.

Each control registered in the grid is associated with a unique id. By calling GetRegisteredControl in your grid class, you can determine the control object for the id.

Default-IDs defined in GXRES.RC are:

GX_IDS_CTRL_EDIT            "Edit Control"
GX_IDS_CTRL_STATIC            "Static Text"
GX_IDS_CTRL_CHECKBOX       "Checkbox"
GX_IDS_CTRL_CHECKBOXEX      "Checkbox w/ active state"
GX_IDS_CTRL_CHECKBOX3D     "Checkbox, 3d-Effect"
GX_IDS_CTRL_CHECKBOX3DEX   "Checkbox w/ active state, 3d-Effect"
GX_IDS_CTRL_HEADER         "Header"
GX_IDS_CTRL_HOTSPOT        "Hotspot Edit"
GX_IDS_CTRL_LISTBOX        "Listbox"
GX_IDS_CTRL_PUSHBTN        "Pushbutton"
GX_IDS_CTRL_RADIOBTN       "Radio Buttons"
GX_IDS_CTRL_RADIOBTNEX      "Radio Buttons w/ active state"
GX_IDS_CTRL_RADIOBTN3D     "Radio Buttons, 3d-Effect"
GX_IDS_CTRL_RADIOBTN3DEX   "Radio Buttons w/ active state, 3d-Effect"
GX_IDS_CTRL_SCROLLEDIT     "Edit Control, Scrollbar"
GX_IDS_CTRL_SPINEDIT       "Spin Edit"
GX_IDS_CTRL_COMBOBOX       "ComboBox, no text-fit"
GX_IDS_CTRL_TEXTFIT        "ComboBox, text-fit"
GX_IDS_CTRL_ZEROBASED      "ComboBox, zero-based"
GX_IDS_CTRL_ZEROBASED_EX    "Combo, disp.choice, 0-base"
GX_IDS_CTRL_ONEBASED       "ComboBox, one-based"
GX_IDS_CTRL_ONEBASED_EX    "Combo, disp.choice, 1-base"
GX_IDS_CTRL_CBS_DROPDOWN    "MFC ComboBox"
GX_IDS_CTRL_CBS_DROPDOWNLIST    "MFC DropDownList"
GX_IDS_CTRL_ONEBASED_EX "Combo, disp.choice, 1-base"
GX_IDS_CTRL_ZEROBASED_EX "Combo, disp.choice, 0-base"
GX_IDS_CTRL_BROWSEARROWHEADER "Row Header"
GX_IDS_CTRL_RICHEDIT    "Rich Edit"
GX_IDS_CTRL_MASKEDIT    "Masked Edit"
GX_IDS_CTRL_PROGRESS    "Progressbar"
GX_IDS_CTRL_PASSWORD    "Password Edit"
GX_IDS_CTRL_CBS_TABBED_DROPDOWN "Tabbed MFC ComboBox"
GX_IDS_CTRL_CBS_TABBED_DROPDOWNLIST "Tabbed MFC DropDownList"
GX_IDS_CTRL_TABBED_COMBOBOX "Tabbed ComboBox"
GX_IDS_CTRL_CHECKLIST_COMBOBOX "Dropdown CheckListBox"
GX_IDS_CTRL_DATETIME    "Date Time Control with popup calendar"
GX_IDS_CTRL_DATETIMENOCAL "Date time control without calendar"
GX_IDS_CTRL_CURRENCY    "Currency control"

See Also

CGXGridCore::GetRegisteredControl CGXAbstractControlFactory

CGXStyle

Class Overview | Class Members