Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Closing views in MDI Tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Closing views in MDI Tabs

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


Joined: 12 May 2003
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Graham Quote  Post ReplyReply Direct Link To This Post Topic: Closing views in MDI Tabs
    Posted: 23 October 2003 at 1:06pm

Apologies if this is as designed, but when I use the close button on the MDI tabs (to the right of the < and > buttons), it closes my document, rather than just the MDI child. This is due to

CXTPTabWorkspace::OnLButtonDown calling

pActiveChildWnd->SendMessage (WM_COMMAND, ID_FILE_CLOSE);

Should this not be

pActiveChildWnd->SendMessage (WM_CLOSE);

Thanks,

Graham

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 30 October 2003 at 8:56am

Thanks, Graham

You are right. Fixed.

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.172 seconds.