<< Return to Main Index

< Return to Class Index

CGXPasswordControl::CGXPasswordControl

CGXPasswordControl(CGXGridCore* pGrid , UINT nID);

pGrid

Pointer to the parent grid.

nID

Specifies the edit control’s window ID.

Remarks

Constructs a CGXPasswordControl object.

You need to register this object in the grid with CGXGridCore::RegisterControl before you can use it in cells (see example).

Example

This example shows how Objective Grid registers a CGXPasswordControl in the grid:

CGXPasswordControl* pPwdControl = new CGXPasswordControl(this, GX_IDS_CTRL_PASSWORD);
pPwdControl->m_chPasswordChar = _T('@'); // use @ as password char
RegisterControl(GX_IDS_CTRL_PASSWORD, pPwdControl);

// apply it to cells with
//  SetStyleRange(CGXRange(4,3,10,5),
//      CGXStyle()
//         .SetControl(GX_IDS_CTRL_PASSWORD)
//      );

See Also

CGXGridCore::RegisterControl

CGXPasswordControl

Class Overview | Class Members