Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - WM_QUERYSESSION among others
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WM_QUERYSESSION among others

 Post Reply Post Reply
Author
Message
cj_user View Drop Down
Newbie
Newbie


Joined: 14 August 2006
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote cj_user Quote  Post ReplyReply Direct Link To This Post Topic: WM_QUERYSESSION among others
    Posted: 20 September 2006 at 7:34pm
I tried this on the WTLSample -- as I was experiencing this on the real project I am working on.
 
1. On MainFrame & Child -- added MESSAGE_HANDLER for WM_CLOSE & WM_QUERYENDSESSION.
2. From MainFrame OnClose, send a WM_QUERYENDSESSION to self (SendMessage)
3. On MainFrame OnQueryEndSession method -- called MDIGetActive -- send WM_QUERYENDSESSION to child
 
Result:
Case 1: Without CodeJock toolbars
Message routed as: MF OnClose->MF OnQueryEndSession-> Child OnQueryEndSession
 
Case 2: With CJ Toolbars
Only MF OnClose gets called
 
Ummm why?
 
Also- I received a lot of complaints that once we injected the CodeJock toolbars -- it eats up all the messages/events.  Some MDI windows that normally work would freeze.  Any idea about this? 
 
I wish I could give  more details on this but Im trying to figure out the WHY myself and it is hard because I only have a DLL. 
 
For the events I am only capturing 5 events:  1, 2, 3, 5 & 6
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.203 seconds.