Print Page | Close Window

WM_QUERYSESSION among others

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5112
Printed Date: 20 June 2025 at 5:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WM_QUERYSESSION among others
Posted By: cj_user
Subject: WM_QUERYSESSION among others
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net