Print Page | Close Window

DockingPane is not correct

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=6113
Printed Date: 12 December 2024 at 9:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DockingPane is not correct
Posted By: zjroland
Subject: DockingPane is not correct
Date Posted: 14 January 2007 at 10:22am
I have a DockingPane, it's a CXTResizeFormView(resource is a dialog),when it slide out ,it look like:
below is the code:
 
IMPLEMENT_DYNCREATE(CPaneSearch, CXTResizeFormView)CPaneSearch::CPaneSearch()
 : CXTResizeFormView(CPaneSearch::IDD)
{
 m_bInitialized = FALSE;
}
CPaneSearch::~CPaneSearch()
{
}

void CPaneSearch::DoDataExchange(CDataExchange* pDX)
{
 CXTResizeFormView::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CPaneSearch, CXTResizeFormView)

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPaneSearch diagnostics

#ifdef _DEBUG
void CPaneSearch::AssertValid() const
{
 CXTResizeFormView::AssertValid();
}

void CPaneSearch::Dump(CDumpContext& dc) const
{
 CXTResizeFormView::Dump(dc);
}
#endif //_DEBUG


/////////////////////////////////////////////////////////////////////////////
// CPaneSearch message handlers

void CPaneSearch::OnInitialUpdate()
{
 CXTResizeFormView::OnInitialUpdate();

 SetScaleToFitSize(CSize(1, 1));
 
 if (m_bInitialized)
  return;

 //SetResize(IDC_BUTTON_REPLACEALL, SZ_TOP_RIGHT, SZ_TOP_RIGHT);
 m_bInitialized = TRUE;
}

BOOL CPaneSearch::PreCreateWindow(CREATESTRUCT& cs)
{
 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

 return CXTResizeFormView::PreCreateWindow(cs);
}


BOOL CPaneSearch::PreTranslateMessage(MSG* pMsg)
{
 if (pMsg->message == WM_KEYDOWN || pMsg->message == WM_SYSKEYDOWN)
 {
  if ((::GetFocus() == m_hWnd) || (::GetParent(::GetFocus()) == m_hWnd) || (::GetParent(::GetParent(::GetFocus())) == m_hWnd))
  {
   if (IsDialogMessage(pMsg))
    return TRUE;
  }
 }
 return CXTResizeFormView::PreTranslateMessage(pMsg);
}

 




Replies:
Posted By: Oleg
Date Posted: 14 January 2007 at 11:03am
Hi,
Problem in Group boxes. try to subclass them to CXTResizeGroupBox:
 
CXTResizeGroupBox m_groupSort;
...
m_groupSort.SubclassDlgItem(IDC_GBOX_SORT, this);


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


Posted By: zjroland
Date Posted: 15 January 2007 at 8:48am
It's OK now, Thank you Oleg !!!



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