Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - about reportcontrol
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

about reportcontrol

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


Joined: 29 August 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote rafaelcn Quote  Post ReplyReply Direct Link To This Post Topic: about reportcontrol
    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.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
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.141 seconds.