Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to capture ON_WM_DEVICECHANGE using Toolkit Pr
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to capture ON_WM_DEVICECHANGE using Toolkit Pr

 Post Reply Post Reply
Author
Message
djesling View Drop Down
Newbie
Newbie
Avatar

Joined: 08 September 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote djesling Quote  Post ReplyReply Direct Link To This Post Topic: How to capture ON_WM_DEVICECHANGE using Toolkit Pr
    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.
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: 26 February 2009 at 3:47am
Why you can't catch it in CMainFrame ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
djesling View Drop Down
Newbie
Newbie
Avatar

Joined: 08 September 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote djesling Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.