Print Page | Close Window

How to do this?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3353
Printed Date: 09 January 2026 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to do this?
Posted By: wuyunpeng
Subject: How to do this?
Date Posted: 05 December 2005 at 9:49pm

I wrote a class CMyWnd which is derived from CWnd,and i created a docking pane to attach CMyWnd(shown as follows),but failed.

LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
    if(wParam == XTP_DPN_SHOWWINDOW)
    {
        CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
        if(!pPane->IsValid())
        {
             if(!m_myWnd.GetSafeHwnd())
              {
                  m_myWnd.Create(NULL,NULL,
                        WS_CHILD | WS_VISIBLE,
                         CRect(0,0,0,0),this,0x106);
             }
             pPane->Attach(&m_myWnd);
        }
        return TRUE;
    }
    return FALSE;
}

Would you please tell me how to create a window manually and attach to a docking pane.

thanks.




Replies:
Posted By: Oleg
Date Posted: 06 December 2005 at 8:51am

I don't like that class name is NULL in your code.

Replace it to AfxRegisterWndClass(0, AfxGetApp()->LoadStandardCursor(IDC_ARROW))



-------------
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