Print Page | Close Window

I would like to send message to CXTPDockingpan.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=12252
Printed Date: 13 May 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I would like to send message to CXTPDockingpan.
Posted By: copycdx2
Subject: I would like to send message to CXTPDockingpan.
Date 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();
     }



 



Replies:
Posted By: Oleg
Date Posted: 26 September 2008 at 3:00am
Hi,
Just send it to pointer of Cg3OutlookBarContainer
 
pMyOutlookBarContainer->SendMessage(..);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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