![]() |
about reportcontrol |
Post Reply ![]() |
Author | |
rafaelcn ![]() Newbie ![]() Joined: 29 August 2007 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 09 June 2009 at 3:53am |
i create CXTPReportControl in CStatic::OnCreate, the reportcontrol work fine. but i create a panemanager first, then create a pane , finaly create the reportcontrol in the pane , so , i can't recieve any event from report control , like mouse click reportcontrol , mouse doubleclick reportcontrol . code of create control:
if (pPane->GetID() == IDS_PANE_PROCLIST)
{ const DWORD dwViewStyle = WS_CHILD|WS_TABSTOP|WS_VISIBLE|SS_NOTIFY ; if (!::IsWindow(m_oReport.m_hWnd)) { if (!m_oReport.Create(dwViewStyle,CRect(0,0,0,0),this,IDC_REPORT)) { TRACE0("Create ReportControl Failed"); return FALSE; } m_oReport.GetPaintManager()->SetColumnStyle(xtpReportColumnOffice2007); pPane->Attach(&m_oReport); } } It looks like fine, display fine ,only can't get the Notify message.
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
this is not report control problem - this is your architecture problem. Looks like this is a case Like CDialogBar - you need to pass messages to parent
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
This is how you do it:
pPane->Attach(&m_oReport);
m_oReport.SetOwner(this);
By (bad) design?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
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 |