Jump to content
Software FX Community

edit title in MDI appliction


hminky

Recommended Posts

I saw a similiar issue in this forum. and I have a same problem.

http://community.softwarefx.com/forums/p/1367/4351.aspx#4351

 

please see a attached file. I made it for reporduce situations.

I made a MDI application, and I create ChartFX control in CView window.

and in main program, I assigned shortcuts of "Save As" to single character 'c'

in this case, If I try to input titles like "abcde", "Save As" dialog appeared.

when I keydown char 'c', I think, the messages are going to main application.

so, How do I fix this problem?

 

Thanks in advance.

 

Link to comment
Share on other sites

This problem doesn't seem to be Chart FX related. Seems that your application is prefiltering those keys.

Please try the following:

Instead of a Chart, put a regular Text Box inside your CView window. If you get the same problem then the problem is not related to Chart FX but rather to the way CView is processing the keys. I am no MFC expert and I don't know how to prevent this from happening.

Link to comment
Share on other sites

Dear,

I can catch KeyDown message before main application manage it.

 for example, in chartfx control, I can overriede PreTranslateMessage

BOOL CChartFxControl::PreTranslateMessage(LPMSG pMsg)

{

 switch(pMsg->message)

 {

 case WM_KEYDOWN:

m_chartPtr->KeyDown((UINT)pMsg->wParam, 0, 0); //???

 return CWnd::PreTranslateMessage(pMsg);

}

but, in this case, I have to send KeyDown Message to ChartFX,

but no way to send message!!. How to send KeyDown message to chartfx?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...