Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Context menu key from keyboard doesn't work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Context menu key from keyboard doesn't work

 Post Reply Post Reply
Author
Message
peerschindel View Drop Down
Groupie
Groupie


Joined: 12 July 2008
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote peerschindel Quote  Post ReplyReply Direct Link To This Post Topic: Context menu key from keyboard doesn't work
    Posted: 22 July 2008 at 5:11am
Hello all,
 
like someone has written in another message in the forum:
The Syntax Edit control is really o.k., but why couldn't it reach 99%
instead of stopping at 95%.
Another small issue (like the 2 from yesterday):
The context menu key from the keyboard doesn't work
(this can be seen e.g. in the "MDITextEditor" sample where there's
source code to try to handle the case, but the message never comes to
there).
The reason is, that "CXTPSyntaxEditCtrl::OnContextMenu" does
 
...
if (m_pParentWnd && rcWnd.PtInRect(point))
{
    CWnd::HideCaret();
    m_pParentWnd->SendMessage(WM_CONTEXTMENU,
        (WPARAM)pWnd->GetSafeHwnd(),
        (LPARAM)MAKELONG(point.x, point.y));
    ...
 
and if the point is (-1,-1) (due to invocation from keyboard)
the context menu message is never send to the parent e.g.
the edit view.
Ok, again, it can be workaround (with or without changing the
library source code). But it would be much nicer if it would be
o.k. out of the box.
 
Best regards

 

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2009 at 11:41am
Fixed. Get release 13 (Feb 2009)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.