CGXCurrencyEdit::CreateControl
virtual BOOL CreateControl(DWORD dwStyle = 0);
dwStyle
Specifies the window style for the CGXCurrencyEdit control.
Return Value
TRUE if initialization was successful; FALSE if failed.
Remarks
Creates and initializes the CGXCurrencyEdit windows for the cell.
You should call this function before registering the control in OnInitialUpdate (see the example).
These styles are not supported by the currency control.
const UINT UNSUPPORTED_STYLES = ES_MULTILINE | ES_LOWERCASE |ES_UPPERCASE | ES_AUTOVSCROLL |ES_PASSWORD | ES_WANTRETURN;
Example
This example shows how to register a CGXCurrencyEdit control in the grid:
void CMyGridView::OnInitialUpdate()
{
// ...
CGXCurrencyEdit* pCurrency
= new CGXCurrencyEdit(this, GX_IDS_CTRL_CURRENCY);
pCurrency->CreateControl(WS_CHILD);
RegisterControl(GX_IDS_CTRL_CURRENCY, pCurrency);
// ...
}