Jump to content
Software FX Community
Sign in to follow this  
hminky

edit title in MDI appliction

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.

 

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...