![]() |
Help ,about the sample of MDITabWindow |
Post Reply
|
| Author | |
minico
Newbie
Joined: 09 August 2006 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Help ,about the sample of MDITabWindowPosted: 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!!!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |