CGXCurrencyEdit:: m_CapCtrlWnd
BOOL m_CapCtrlWnd;
Remarks
This control is used internally by CGXCurrencyEdit to assist in formatting of inactive cells. This control is created when CreateControl is called. The id of this control will be one more than the id of the CGXCurrencyEdit control.
// code snippet showing how this control is used
// to format the value as it will be in a control
// without using the main control
// Taken from CGXCurrencyEdit::GetSortKey
InitFromUserAttributes(&m_CapCtrlWnd, &style);
Format f;
double d;
m_CapCtrlWnd.GetFormat(f);
if (f.ParseValue(sKey, d))
{
//CString s;
CString str = _T("%.");
sKey.Format(_T("%d"),f.GetFractionalDigits());
str+=sKey;
sKey.Format( str+_T("f"), d);
}
See Also
CGXCurrencyEdit::CreateControl
CGXCurrencyEdit
Class Overview | Class Members