Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » Killfocus method in CExtDateTimeWnd? Collapse All
Subject Author Date
Gunasekaran Velu May 12, 2010 - 12:50 AM

Hi


I am using ProfUIS 2.64 version, i am using date time control in my sample application i want to validate the year while kill focus from the datetime control. How can i do that? or its any alternative method for validate the year when kill focus from the CExtDateTimeWnd control.


 


Kindly help


 


Thanks


Guna

Technical Support May 13, 2010 - 12:52 PM

Here is it:

class CMyDateTimeWnd : public CExtDateTimeWnd
{
public:
            virtual LRESULT WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
            {
                        LRESULT lr = CExtDateTimeWnd::WindowProc( message, wParam, lParam );
                        switch( message )
                        {
                        case WM_KILLFOCUS:
                                    //
                                    //
                                    // TO-DO: Validate the date-time data like you need.
                                    //
                                    //
                        break;
                        }
            }
}

Gunasekaran Velu May 13, 2010 - 1:09 AM

Hi


 


Thanks for the quick reply.


If you have any sample code for this WM_KILLFOCUS can you send it to me?


 


Thanks


Guna

Technical Support May 12, 2010 - 9:57 AM

Please create your own CExtDateTimeWnd-derived class and handle the WM_KILLFOCUS message in it.