Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - no message in PreTranslateMessage()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

no message in PreTranslateMessage()

 Post Reply Post Reply
Author
Message
SunMarc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 October 2006
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote SunMarc Quote  Post ReplyReply Direct Link To This Post Topic: no message in PreTranslateMessage()
    Posted: 26 October 2006 at 7:58am
Hello,

I'm using XTP in a DLL with a  CXTPTabControl.
I don't receive any messages in the PreTranslateMessage() method for the
dialogs contained in the CXTPTabControl.

I'm using a CXTColorPicker too and nothing happend when I click in...

Maybe due to the same pb. Any idea?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2006 at 8:17am
Hello,
if you use it in ActiveX context, then it is expected behaviour.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SunMarc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 October 2006
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote SunMarc Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2006 at 9:11am
I'm not using ActiveX...
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2006 at 9:20am
Hello,
for non MFC extension DLls same problem....
 
 
Anyway. for 10.4 release we replace method from PreTranslateMessage to OnWndMsg to be sure it will call fro ActicveX/ simple DLL contexts. please patch your sources.
 

BOOL CXTColorPicker::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
 if (!m_bPopupActive)
 {
  if (message == WM_LBUTTONDOWN)
  {
   ShowPopupWindow();
   // in this case the message is not "swallowed" so the button will
   // get it and display itself in a recessed state
  }
  else if (message == WM_KEYDOWN &&
   (wParam == VK_RETURN ||
   wParam == VK_SPACE ||
   wParam == VK_DOWN))
  {
   ShowPopupWindow();
   return TRUE;  // swallow message
  }
 }
 return CXTButton::OnWndMsg(message, wParam, lParam, pResult);
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SunMarc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 October 2006
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote SunMarc Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2006 at 10:20am
Thanks! It works 

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.078 seconds.