Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking panes

 Post Reply Post Reply
Author
Message
al1976 View Drop Down
Newbie
Newbie
Avatar

Joined: 27 September 2004
Location: Israel
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote al1976 Quote  Post ReplyReply Direct Link To This Post Topic: Docking panes
    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_
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.156 seconds.