Print Page | Close Window

How to capture ON_WM_DEVICECHANGE using Toolkit Pr

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13498
Printed Date: 27 September 2024 at 7:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to capture ON_WM_DEVICECHANGE using Toolkit Pr
Posted By: djesling
Subject: How to capture ON_WM_DEVICECHANGE using Toolkit Pr
Date Posted: 25 February 2009 at 2:00pm
I think that the CXTPTopLevelWndMsgNotifier installs itself as the top-most window in a XTPToolKitPro derived application. As a result, it becomes the receipent of the "WM_DEVICECHANGE" message. My question is if there is a method by which to easily capture/forward this to a more useful window (for my application).

I'm trying to detect when USB devices connect/disconnect to gracefully handle it in my application logic.



Replies:
Posted By: Oleg
Date Posted: 26 February 2009 at 3:47am
Why you can't catch it in CMainFrame ?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: djesling
Date Posted: 19 March 2009 at 12:50pm
Turns out I can capture it in all windows, my suspicion was incorrect and misdirected by MSDN. After figuring out how to read I added it and it works wonderfully. Thanks



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