Jump to content
Software FX Community

edit title in MDI appliction


Recommended Posts

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



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


I can catch KeyDown message before main application manage it.

 for example, in chartfx control, I can overriede PreTranslateMessage

BOOL CChartFxControl::PreTranslateMessage(LPMSG pMsg)





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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...