Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Johannes Schwenk
|
Apr 6, 2009 - 8:23 AM
|
Hi, I try to use a CExtDateTimeWnd derived Class, but When I overide the CExtDateTimeWnd::OnValueChanged() function, it is not called. My Code: class AFX_EXT_CLASS CPUISDateTimeWithReturnVal : public CExtDateTimeWnd
{
DECLARE_DYNAMIC(CPUISDateTimeWithReturnVal) (...) virtual bool OnValueChanged(const COleDateTime & dtDateTimeOld, const COleDateTime & dtDateTimeNew); (...) } bool CPUISDateTimeWithReturnVal::OnValueChanged(const COleDateTime & dtDateTimeOld, const COleDateTime & dtDateTimeNew)
{
AfxMessageBox("TEST");
} When I change the Control Date in my Dialog, the OnValueChanged function is not called. But I can call other Functions of the Control. Can you help me? Thank you, Johannes
|
|
Technical Support
|
Apr 6, 2009 - 10:13 AM
|
We are sorry for this typo in the method declarations inside Prof-UIS help file. The correct signatures are:
virtual bool OnValueChanging(
const COleDateTime & dtDateTimeOld,
const COleDateTime & dtDateTimeNew
) const;
virtual bool OnValueChanged(
const COleDateTime & dtDateTimeOld,
const COleDateTime & dtDateTimeNew
) const;
The const modifier was lost in the help files.
|
|