![]() |
no message in PreTranslateMessage() |
Post Reply
|
| Author | |
SunMarc
Newbie
Joined: 19 October 2006 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
SunMarc
Newbie
Joined: 19 October 2006 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 November 2006 at 9:11am |
|
I'm not using ActiveX...
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
SunMarc
Newbie
Joined: 19 October 2006 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 November 2006 at 10:20am |
|
Thanks! It works
![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |