Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Help ,about the sample of MDITabWindow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help ,about the sample of MDITabWindow

 Post Reply Post Reply
Author
Message
minico View Drop Down
Newbie
Newbie


Joined: 09 August 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote minico Quote  Post ReplyReply Direct Link To This Post Topic: Help ,about the sample of MDITabWindow
    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!!!
 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.031 seconds.