Results 1 to 7 of 7

Thread: Windows focus / Windows Shutdown Problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Windows focus / Windows Shutdown Problems

    1. What window flags are set in the examples you've seen?

    2. Override winEvent and look for the WM_QUERYENDSESSION. More details on http://msdn2.microsoft.com/en-us/library/aa376890.aspx. You should set the result param of winEvent to a non-zero value, so the shut-down/restart won't halt. When you catch this event you should also close your app.

  2. The following user says thank you to marcel for this useful post:

    December (22nd October 2007)

Similar Threads

  1. Replies: 2
    Last Post: 24th July 2006, 18:36

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
  •  
Qt is a trademark of The Qt Company.