Print Page | Close Window

Docking panes

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=1403
Printed Date: 02 June 2024 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking panes
Posted By: al1976
Subject: Docking panes
Date Posted: 13 November 2004 at 7:36am

Hi,

I'm using CXTPDockingPane at mt MDI application. I use the Attach function to load my FormView class on the pane and it works good, but when it is loaded on the pane (my pane is at the buttom of the app) it appears to be aligned to the left side of the pane. Is it possible to align the loaded CFormView class of mine to the center of the pane? Below is my code.

  case IDR_PANE_SEND_SEQ:
                 { 
     if (m_pSendScriptFrame == NULL)
     {      ;  
      m_pSendScriptFrame = new CFrameWnd;
      
      CCreateContext context;
      context.m_pNewViewClass = RUNTIME_CLASS(CSendScriptPane);
      context.m_pCurrentDoc = NULL;
      
      m_pSendScriptFrame->C reate(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS,
       CRect(0, 0, 0, 0), this, NULL, 0, &context);
      m_pSendScriptFrame->S endMessageToDescendants(WM_INITIALUPDATE, 0, 0, TRUE, TRUE);
     }

     pPane->Attach(m_pSendScript Frame);
     pPane->SetOptions(xtpPaneNo Closeable);

                     break;
                 }

Thanks.



-------------
_Asafl_



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