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 » handling MSGs from CExtEdit Collapse All
Subject Author Date
ali reza Aug 10, 2009 - 7:35 AM

Hi,

I am new to profiUIs285freeware;

1) I have been trying to handle any changes made in edit control (m_wndDockedCtrlEdit) of the SDIDOCVIEW sample. In MFC for an edit box which is placed on a form view I would simply handle the EN_CHANGE message by using the class wizard to generate the handler function, but I couldn’t do the same thing here.

2) Besides, where can I find documentation on the methods of the e.g. CExtEdit class. To change its conent I used the "SetWindowText" function which was called from CMainframe::OnCreate. But what about the other methods.

Pls help me on the issues.

Regards,

Technical Support Aug 15, 2009 - 10:39 AM

We modified the SDIDOCVIEW sample for you. The CMyEdit class is what you need. Here is the source code:

http://www.prof-uis.com/download/forums/tmp/SDIDOCVIEW-modified-for-Ali-Reza.zip


Technical Support Aug 10, 2009 - 1:42 PM

The CExtEdit control is an extended version of the CEdit control from MFC. The CExtEdit control supports a themed context menu and a themed window border displayed on mouse hover. The CExtEdit control does not have any other special features. So, its documentation is short. If the edit control is created inside a CExtControlBar control bar window, then you should use message reflection for handling the EN_CHANGE notification in your CExtEdit-derived class. You should insert an entry into the message map of your CExtEdit-derived class:

 ON_CONTROL_REFLECT( EN_CHANGE, OnChange )
The handler method looks like
void CYourEditClassNameHere::OnChange()
{
      . . .
}


ali reza Aug 14, 2009 - 9:58 PM

Hi,



Thanks for your prompt response,



1) I am currently working on the SDIDOCVIEW sample, so I have not derived any classes of my own from CExtEdit, and just an instance of the CExtEdit is created already (m_wndDockedCtrlEdit).

2) The point is that I should handle the MSG from a control that has been created during runtime. Namely I want to handle EN_CHANGE and call e.g. the AfxMessageBox in its handler.



Could you pls advise me on how this should be done.

Regards,