Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hosting SDI with Flowchart in ActiveX (Read 3021 times)
nikogo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Sep 5th, 2006
Hosting SDI with Flowchart in ActiveX
Sep 12th, 2006 at 6:23am
Print Post  
Hi,

I have created MFC SDI App with view derived from CFormView which hosts FlowChart. It works fine
including flowchart item removing by pressing Del key.
But when I creates MFC ActiveX with SDI interface which hosts FlowChart in its formview, revoming
items by pressing Del key doesn't works.

Please could you help me to resolve this issue?

Thanks





  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosting SDI with Flowchart in ActiveX
Reply #1 - Sep 12th, 2006 at 8:46am
Print Post  
Hi,

That means that the flowchart does not get a WM_KEYDOWN message when Del is pressed. Try that with the fHandleDelInTranslAcc bit in the KeyboardFlags property set to TRUE - then the FlowChart will handle Del if it is passed to it through the PreTranslateAccellerator COM API function.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
nikogo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Sep 5th, 2006
Re: Hosting SDI with Flowchart in ActiveX
Reply #2 - Sep 12th, 2006 at 10:07am
Print Post  
I have a look at flowchart's window messages by using Microsoft Spy++. The spy logs that flowchart window (class name FCX_PRO) receives WM_KEYDOWN/WM_KEYUP with VK_DELETE when I press Del key on flowchart.

What could this mean? Is it OK?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosting SDI with Flowchart in ActiveX
Reply #3 - Sep 12th, 2006 at 12:06pm
Print Post  
The message might be intercepted by a hook function in the parent control, or maybe ATL reflects the message to the parent. Then if the parent window handles that key, it won't reach the flowchartx message handler. I believe the first thing happens - MFC forms hook into their child controls' message queues and intercept keys such as tab, del, the arrow keys...

Have you tried setting that bit in KeyboardFlags?
  
Back to top
 
IP Logged
 
nikogo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Sep 5th, 2006
Re: Hosting SDI with Flowchart in ActiveX
Reply #4 - Sep 13th, 2006 at 1:10pm
Print Post  
Yes, I have set KeyboardFlags to FALSE. Now items can be removed from flowchart by pressing Del key. Smiley

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint