Disable Alt Enter fullscreen?

This is a discussion on Disable Alt Enter fullscreen? within the Windows Programming forums, part of the Platform Specific Boards category; I'd like to know if it is possible to stop a window automatically resizing to fullscreen when the user presses ...

  1. #1
    Not stupid, just stupider yaya's Avatar
    Join Date
    May 2007
    Location
    Earthland
    Posts
    204

    Thumbs up Disable Alt Enter fullscreen?

    I'd like to know if it is possible to stop a window automatically resizing to fullscreen when the user presses Alt-Enter. Not that I want to disable it, rather, I want to handle it myself. Is there a message sent or something when the user does this?

    Btw I'm using the Win32 API.

    Thanks.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    EDIT: Huge afterthought here...

    Question: Are you trying to handle it in your own window... or to exercise control over other windows?

    If it's in your own window, just make a keyboard accelerator to make it do whatever you want.

    If it's for controlling other windows, you're going to run into some problems with that...
    First, only the foreground window receives keystrokes... so no, you're not going to handle it yourself. Second, any associated messaging will be confined to the foreground window's message queue, no other window will see it. You could set a low level keyboard hook and try to intercept that key combination but in my experience this is to totally detrimental to system performance it's just not worth the trouble.
    Last edited by CommonTater; 02-05-2011 at 09:56 PM. Reason: huge afterthought

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help With a BlackJack Program in C
    By Jp2009 in forum C Programming
    Replies: 15
    Last Post: 03-30-2009, 10:06 AM
  2. Assignment output help
    By Taka in forum C Programming
    Replies: 13
    Last Post: 09-23-2006, 11:40 PM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 10:31 PM
  4. Einstine calculator Mark 2
    By Mach_ie in forum C Programming
    Replies: 1
    Last Post: 08-31-2003, 01:54 PM
  5. Einstine calculator
    By Mach_ie in forum C Programming
    Replies: 2
    Last Post: 08-30-2003, 09:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21