Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Is it possible to ................................
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Is it possible to ................................

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: Is it possible to ................................
    Posted: 11 September 2008 at 12:00am
Hello,
Thanks.I handled it on OnMdiActivate(). It really worked.
 
sorry oleg,one more question. If the user goes for saving the document,i will open the savefiledialog. If he do not enter any path,and directly press the cancle button,it means he do not want to save.
Then in that case i will have to open the previous document again.
Can i do that?Is it possible? What can be the possible solution for that?
 
Because in this case,he has already clicked on the new childwnd tab. so new child window will get activated internally. then even if he clicks cancle button in savefiledialog,we wont be able to show the previous view. is there any method which can detect the last active tabclient? If not,Can we prevent the OnMdiActivate event to get fired in that case?
Can u put some light on this issue also?
 
Thanks again for your earlier reply. It really helped me a lot.
 
Thanks And Regards,
Vijay.
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: 11 September 2008 at 1:11am
Hi,
You can't prevent. but you can manually acitvate old MDI Child. call MDIActivate.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2008 at 12:07am

Hi,

This i tried,but once the the other tab is clicked,it is difficult to get the inactive window's pointer.
That we can get in OnMdiActivate only.or may be in OnActivateView.
But i have to activate it from some other class.
How can i get it?Do u have any idea?
 
Please reply at the earliest.
Thanks And Regards,
Vijay.
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: 12 September 2008 at 1:06am

Think you need to save activate MDI child each time it was activated.

but think all your idea is wrong. users don't like then GUI don't allow make things they want.
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.