Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - I would like to send message to CXTPDockingpan.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I would like to send message to CXTPDockingpan.

 Post Reply Post Reply
Author
Message
copycdx2 View Drop Down
Groupie
Groupie


Joined: 17 September 2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote copycdx2 Quote  Post ReplyReply Direct Link To This Post Topic: I would like to send message to CXTPDockingpan.
    Posted: 25 September 2008 at 4:21am
class Cg3OutlookBarContainer : public CTaskPanelBase


 i make inherited class from CTaskPanelBase.
and I attached my class to pane.

case XTP_DPN_SHOWWINDOW:
     pPane->Attach(pWnd);


 I would like to Send Message to attached my class.
 when  MainProgram state is changed.

I think to send message to pane.
or get my class from pane.

ex)

    CXTPDockingPaneInfoList& paneList = m_paneManager.GetPaneList();
    for (POSITION pos = paneList.GetHeadPosition(); pos;)
    {
        // the pane is active if the child view has focus.
        XTP_DOCKINGPANE_INFO& dpi = paneList.GetNext(pos);

      method 1.
        SendMessage(  dpi.pPane, WM_PAINT );
        or
        dpi.pPane->SendMessage();


       method 2.
       dpi.pPane->GetMyClass()->MyFunction();
     }



 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2008 at 3:00am
Hi,
Just send it to pointer of Cg3OutlookBarContainer
 
pMyOutlookBarContainer->SendMessage(..);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.