Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Problem defining event handlers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem defining event handlers

 Post Reply Post Reply
Author
Message
davidbeane View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidbeane Quote  Post ReplyReply Direct Link To This Post Topic: Problem defining event handlers
    Posted: 12 June 2007 at 4:56pm
Using 10.4.2

In my view header:

CXTPCalendarControl mCalendar;
DECLARE_XTP_SINK(CInspectorOnlyView, m_Sink);
void OnEvent_Calendar(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam);

In my view's OnInitialUpdate():

CXTPNotifyConnection* pCalendarConn = mCalendar.GetConnection();
if(pCalendarConn) {       
        m_Sink.Advise(pCalendarConn, XTP_NC_CALENDARLBUTTONDBLCLICK, &CInspectorOnlyView::OnEvent_Calendar);
}

In the code for the Advise function, in CMapNotifyCodeToHandler::SetAt(), the following ASSERT fires:
ASSERT(sizeof(T_pfHandler) == sizeof(void*));

I ignore it, then when my OnEvent_Calendar() function is called, all my view class members, such as mCalendar, are porked.

Any ideas?
Back to Top
davidbeane View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidbeane Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2007 at 3:49pm
This issue is fixed in 11.1.3.
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.203 seconds.