Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 337321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:19:30+00:00 2026-05-12T10:19:30+00:00

In Windows, I have a minimised window that is the foreground window (GetForegroundWindow). I

  • 0

In Windows, I have a minimised window that is the foreground window (GetForegroundWindow). I now want to un-minimise the window so that it becomes visible again. How can I bring the window back to its previous state? I.e., if the window was “restored” before minimised, it should be restored, if it was maximised before being minimised, it should be maximised again and especially not restored or something.

It seems I can only determine the window’s current state out of {minimised, restored, maximised}, but theoretically, minimised and maximised should be flags that can be set together.

How does the Explorer taskbar know in what state to show a window if the user clicks on it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:19:30+00:00Added an answer on May 12, 2026 at 10:19 am

    If you use something like C, you can look on to ShowWindow function:

    ShowWindow(hWnd, SW_RESTORE)
    

    SW_RESTORE
    Activates and displays the
    window. If the window is minimized or
    maximized, the system restores it to
    its original size and position. An
    application should specify this flag
    when restoring a minimized window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed an increasing number of Windows applications that do not have the usual
I have a method that gets called into a new thread like so: if
I have a Delphi 6 Pro application that does certain things when the application
I am starting GUI programming and I have a question about windows. I have
We have an old (Win32) and new (WPF) version of our blotter software, which
Suppose, I have the following task. There is a main application form with numerous
How do I take a form that is currently minimized and restore it to
I am working on a Windows service which needs to schedule tasks whenever one
I would like to override the close button on a third-party application so that
i've been trying to get some modeless forms in my application to appear on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.