Results 1 to 2 of 2

Thread: winEvent return value

  1. #1
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default winEvent return value

    I just realized out that my USB device needs to be updated after I wake from Hibernate so I implemented a winEvent to detect all power events and I am now able to detect these.

    The question I have is what should I return, true or false. I have read some places to return true if you have used it at which point the message stops. But since these are system wide WAKEFROMSUSPEND and other power events, should I always return false so the message goes on to the other devices in the system?

    Ken

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: winEvent return value

    WAKEFROMSUSPEND
    I can't find any reference to such a Windows message on MSDN. Exactly what message are you referring to?

    Most of the descriptions of message handlers in the Power Management section say to return TRUE if the application handles the message; see this for example.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Problem with winEvent
    By franco.amato in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2016, 22:56
  2. problem with winevent Function
    By Mohammad in forum Newbie
    Replies: 3
    Last Post: 13th November 2011, 00:21
  3. winEvent prevents opening menus...
    By supergillis in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2008, 16:48
  4. Win32 MSG - winEvent()
    By AlGaN in forum Qt Programming
    Replies: 1
    Last Post: 24th September 2008, 14:19
  5. MSG not defined (winEvent)
    By December in forum Qt Programming
    Replies: 6
    Last Post: 19th February 2007, 16:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.