Prevent existing window from minimizing?

This is a discussion on Prevent existing window from minimizing? within the C++ Programming forums, part of the General Programming Boards category; Is it possible to prevent an already existing window, one not created by your code, from being minimized using C++ ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    5

    Prevent existing window from minimizing?

    Is it possible to prevent an already existing window, one not created by your code, from being minimized using C++ or will I have to find the code in ASM and stop it there? The ASM is kind of a last resort as I don't know what to look for really for something like this..

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    You may be able to deactivate the minimize button on top of the window, but you will most likely not be able to prevent all kinds of minimizing. Not even in ASM. What you are trying to do doesn't sound like a good solution to any problem I know. Maybe you can describe the problem so we can try to find a better solution?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    5
    Basically when the program loses focus, it will automatically minimize. This is quite troublesome for those accidental miss clicks, especially online when the program can't pause.
    Last edited by Blade3575; 02-27-2012 at 01:45 AM. Reason: Grammatical error.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. parent window minimizing on child window destruction
    By Yarin in forum Windows Programming
    Replies: 1
    Last Post: 03-02-2008, 08:34 AM
  2. Prevent Window Sizing
    By osal in forum Windows Programming
    Replies: 2
    Last Post: 07-07-2004, 03:54 PM
  3. prevent sizing the window
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 06-03-2004, 03:16 AM
  4. how to Auto Minimizing window while processing
    By simly01 in forum Windows Programming
    Replies: 2
    Last Post: 04-18-2003, 11:04 AM
  5. Prevent Window from being resized?
    By Brian in forum Windows Programming
    Replies: 3
    Last Post: 03-12-2002, 12:34 PM

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