ccEdit |
09/16/99 |
Author:
Daniel.Lindh@Home.se ICQ: 7983755 HOMEPAGE: home.bip.net/CyberCow Copyright © Cyber Cow 1995 - 1999. OverView |
Overview |
#include <CEdit.h> Hierarchy Chart
|
Class Members | ||||||||||||||||
Construction Public:
Mask definations Public:
|
ccEdit::setCustomMask | ||||||
void setCustomMask( CString asMask, char acPlaceHolder = '_' ); Return Value:
Arguments:
Remarks: Set a custom mask. Example: // header file ccEdit m_phone;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_phone.SubclassDlgItem( IDC_PHONE, this ); } |
ccEdit::setDateMask | ||||
void setDateMask(); Return Value:
Arguments:
Remarks: The mask will look like this ####-##-## and verfiy the date to a legal date between 1901-01-01 and 9999-12-31 Example: // header file ccEdit m_date;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_date.SubclassDlgItem ( IDC_DATE, this ); } |
ccEdit::setTimeMask | ||||
void setTimeMask(); Return Value:
Arguments:
Remarks: The mask will look like this ##:##:## and verfiy the time to a legal time between 00:00:00 and 23:59:59. Example: // header file ccEdit m_time;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_time.SubclassDlgItem ( IDC_TIME, this ); } |
ccEdit::setDateTimeMask | ||||
void setDateTimeMask(); Return Value:
Arguments:
Remarks: The mask will be the data and time mask together, and will also be verifyed as the date and time masks Example: // header file ccEdit m_dateTime;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_dateTime.SubclassDlgItem( IDC_DATE_TIME, this ); |
ccEdit::setTextMask | ||||
void setTextMask(int aiLength); Return Value:
Arguments:
Remarks: The mask will be a variable length number of chars. Example: // header file ccEdit m_text;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_text.SubclassDlgItem ( IDC_TEXT, this ); |
ccEdit::setNumericMask | ||||
void setNumericMask(int aiLength); Return Value:
Arguments:
Remarks: The mask will be a variable length number of numberic chars. Example: // header file ccEdit m_number;
// cpp file void cccEditTextView::OnInitialUpdate() { ...
m_number.SubclassDlgItem( IDC_NUMBER, this ); |
ccEdit::getMask | ||||
CString getMask(); Return Value:
Arguments:
Remarks: Get the current mask. Example: // header file ccEdit m_number;
// cpp file ... CString lsMask = m_number.getMask(); ... |