Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - A small improvement
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

A small improvement

 Post Reply Post Reply
Author
Message
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Topic: A small improvement
    Posted: 08 August 2005 at 2:20am
In a multi-workspace MDI tab app, I think it's better to activate the workspace when (left/right) clicking on its tab bar.

Edited by jeffcmj
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2005 at 10:27pm
Since I got no response, may I ask how can I find out which workspace it belongs to when I click on the tab bar? So I can activate the workspace in my code.

Edited by jeffcmj
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: 12 August 2005 at 11:42pm

Actually it was added. :)

to patch it in void CXTPTabClientWnd::OnLButtonDown(UINT nFlags, CPoint point)

after if (pWorkspace->GetControlRect().PtInRect(point))

add

   if (!pWorkspace->IsActive())
   {
    CXTPTabManagerItem* pSelectedItem = pWorkspace->GetSelectedItem();
    if (pSelectedItem) pWorkspace->OnItemClick(pSelectedItem);
   }

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2005 at 11:14pm
In what version it was added? I think I am using the latest one 9.70.
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 2005 at 1:12pm
Was added after your message.... for next release.
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.047 seconds.