Print Page | Close Window

Help ,about the sample of MDITabWindow

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=4771
Printed Date: 11 November 2025 at 12:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help ,about the sample of MDITabWindow
Posted By: minico
Subject: Help ,about the sample of MDITabWindow
Date Posted: 09 August 2006 at 7:13pm
I want to close a document by double click the tab;
 
so I modify the function of  CMainFrame::OnTabbarMouseMsg like this:
 
LRESULT CMainFrame::OnTabbarMouseMsg(WPARAM wParam,LPARAM lParam)
{
 if (wParam == WM_LBUTTONDBLCLK
 {
  CPoint point = CPoint((DWORD)lParam);
  
  CXTPTabManagerItem* pItem =  m_MTIClientWnd.HitTest(point);
  if (pItem)
  {
   CWnd* pActiveChildWnd = MDIGetActive(NULL);
   if (pActiveChildWnd)
   {
    pActiveChildWnd->SendMessage(WM_COMMAND, ID_FILE_CLOSE);    }
   return TRUE;
  }
 }
 
..............
}
 
but there is no any response when I double click the tab;
 
I search it by google;find a theme about it ;but it was deleted; I can't open that page;
 
my version is 9.60 ,it is sait that's a but in ver9.60;how to fix it?
 
Thanks a lot!!!
 
 



Replies:
Posted By: Oleg
Date Posted: 14 August 2006 at 8:58am
Hi,
 
Add CS_DBLCLKS style for MDI Worksapce
 ::SetClassLong(hWnd, GCL_STYLE, ::GetClassLong(hWnd, GCL_STYLE) | CS_DBLCLKS);


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