CDateTimeCtrl for inplace edit. For internal use by CGridColumnTraitDateTime.
More...
|
afx_msg void | OnKillFocus (CWnd *pNewWnd) |
| WM_KILLFOCUS message handler called when CDateTimeCtrl is loosing focus to other control. More...
|
|
afx_msg void | OnDateTimeChange (NMHDR *pNMHDR, LRESULT *pResult) |
| DTN_DATETIMECHANGE notification handler to monitor date modifications. More...
|
|
afx_msg void | OnUserString (NMHDR *pNMHDR, LRESULT *pResult) |
| DTN_USERSTRING notification handler to convert clipboard to datetime. More...
|
|
afx_msg void | OnChar (UINT nChar, UINT nRepCnt, UINT nFlags) |
| WM_CHAR message handler to monitor date modifications. More...
|
|
afx_msg void | OnCloseUp (NMHDR *pNMHDR, LRESULT *pResult) |
| DTN_CLOSEUP notification message handler called when CMonthCalCtrl window has closed. More...
|
|
virtual void | EndEdit (bool bSuccess) |
| The cell value editor was closed and the entered should be saved. More...
|
|
virtual void | PostNcDestroy () |
| Called by the default OnNcDestroy (WM_NCDESTROY) message handler, when CDateTimeCtrl window has been be destroyed. More...
|
|
virtual BOOL | PreTranslateMessage (MSG *pMsg) |
| Hook to proces windows messages before they are dispatched. More...
|
|
| DECLARE_MESSAGE_MAP () |
|
CDateTimeCtrl for inplace edit. For internal use by CGridColumnTraitDateTime.
CGridEditorDateTimeCtrl - Constructor.
- Parameters
-
nRow | The index of the row |
nCol | The index of the column |
pColumnTrait | The parent column trait, used for datetime validation |
void CGridEditorDateTimeCtrl::EndEdit |
( |
bool |
bSuccess | ) |
|
|
protectedvirtual |
The cell value editor was closed and the entered should be saved.
- Parameters
-
bSuccess | Should the entered cell value be saved |
void CGridEditorDateTimeCtrl::OnChar |
( |
UINT |
nChar, |
|
|
UINT |
nRepCnt, |
|
|
UINT |
nFlags |
|
) |
| |
|
protected |
WM_CHAR message handler to monitor date modifications.
- Parameters
-
nChar | Specifies the virtual key code of the given key. |
nRepCnt | Repeat count (the number of times the keystroke is repeated as a result of the user holding down the key). |
nFlags | Specifies the scan code, key-transition code, previous key state, and context code |
void CGridEditorDateTimeCtrl::OnCloseUp |
( |
NMHDR * |
pNMHDR, |
|
|
LRESULT * |
pResult |
|
) |
| |
|
protected |
DTN_CLOSEUP notification message handler called when CMonthCalCtrl window has closed.
Fallback solution for closing inplace CDateTimeCtrl, in case focus is not given back to the CDateTimeCtrl.
- Parameters
-
pNMHDR | Pointer to NMHDR structure |
pResult | Is not used |
void CGridEditorDateTimeCtrl::OnDateTimeChange |
( |
NMHDR * |
pNMHDR, |
|
|
LRESULT * |
pResult |
|
) |
| |
|
protected |
DTN_DATETIMECHANGE notification handler to monitor date modifications.
- Parameters
-
pNMHDR | Pointer to NMDATETIMECHANGE structure |
pResult | Must be set to zero |
void CGridEditorDateTimeCtrl::OnKillFocus |
( |
CWnd * |
pNewWnd | ) |
|
|
protected |
WM_KILLFOCUS message handler called when CDateTimeCtrl is loosing focus to other control.
Used register that cell value editor should close.
- Parameters
-
pNewWnd | Pointer to the window that receives the input focus (may be NULL or may be temporary). |
void CGridEditorDateTimeCtrl::OnUserString |
( |
NMHDR * |
pNMHDR, |
|
|
LRESULT * |
pResult |
|
) |
| |
|
protected |
DTN_USERSTRING notification handler to convert clipboard to datetime.
- Parameters
-
pNMHDR | Pointer to NMDATETIMESTRING structure |
pResult | Must be set to zero |
void CGridEditorDateTimeCtrl::PostNcDestroy |
( |
| ) |
|
|
protectedvirtual |
Called by the default OnNcDestroy (WM_NCDESTROY) message handler, when CDateTimeCtrl window has been be destroyed.
Used to delete the inplace CDateTimeCtrl editor object as well. This is necessary when the CDateTimeCtrl is created dynamically.
BOOL CGridEditorDateTimeCtrl::PreTranslateMessage |
( |
MSG * |
pMsg | ) |
|
|
protectedvirtual |
Hook to proces windows messages before they are dispatched.
Catch keyboard events that can should cause the cell value editor to close
- Parameters
-
pMsg | Points to a MSG structure that contains the message to process |
- Returns
- Nonzero if the message was translated and should not be dispatched; 0 if the message was not translated and should be dispatched.