Print Page | Close Window

about reportcontrol

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14478
Printed Date: 29 September 2024 at 5:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: about reportcontrol
Posted By: rafaelcn
Subject: about reportcontrol
Date 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.



Replies:
Posted By: mdoubson
Date Posted: 15 June 2009 at 5:24pm
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

-------------
Mark Doubson, Ph.D.


Posted By: znakeeye
Date Posted: 24 June 2009 at 6:52am
This is how you do it:
pPane->Attach(&m_oReport);
m_oReport.SetOwner(this);
 
By (bad) design?


-------------
PokerMemento - http://www.pokermemento.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net