Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to close a tabbed document?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to close a tabbed document?

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


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Topic: How to close a tabbed document?
    Posted: 15 September 2005 at 5:53am

Hello

Please help me how to close a tabbed document?

Thanks.

-Freehawk

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: 15 September 2005 at 6:06am

Hi,

if you want simply close child frame:

pChildFrame->CloseWindow()

 

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

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2005 at 2:47pm
I was looking at this issue too.

pChildFrame->CloseWindow()
didn't work for me (it seemed to minimize the window into one of those floating "minimized-box" windows)

What I used was:

GetParent()->PostMessage(WM_CLOSE);

I called this from my message handler in my CXTPReportView-derived class (the view is in a tab)

Warren
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.062 seconds.