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

  • SEARCH
  • Home
  • 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 6345873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:54:26+00:00 2026-05-24T20:54:26+00:00

It seems that GetWindowPlacement can only return the size of a minimized window .

  • 0

It seems that GetWindowPlacement can only return the size of a minimized window.

Is it possible to get the size of the individual controls inside that window when the window is minimized?

  • 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-24T20:54:27+00:00Added an answer on May 24, 2026 at 8:54 pm

    WINDOWPLACEMENT.rcNormalPosition is defined as:

    The window’s coordinates when the window is in the restored position.

    To get the current size use the GetWindowRect function. There is also an interesting article by Raymond Chen on this topic.

    The following program gives correct size of a control in a minimized window:

    using System.Runtime.InteropServices;
    using System;
    
    [StructLayout(LayoutKind.Sequential)]
    struct RECT
    {
         public int L;
         public int T;
         public int R;
         public int B;
    }
    
    static class Program
    {
        void Main()
        {
            RECT r;
            bool result = GetWindowRect(0x00120E34, out r);
            Console.WriteLine("{0}: {1} {2} {3} {4}", r.T, r.L, r.B, r.R);
        }
    
        [DllImport("user32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        extern bool GetWindowRect(int hwnd, out RECT lpRect);
    }
    

    True: -31948 -31335 -31923 -30761

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

Sidebar

Related Questions

Seems,that very basic question. Anyway can't get the meaning of next definition from Spring
It seems that anyone can snoop on incoming/outgoing .NET web service SOAP messages just
Seems that there is only doubly linked list (but no singly linked list) in
It seems that this handy Quick Access window does not show the items available
Seems that web.xml for a servlet has an element called <enabled>false</enabled> that can be
Seems that when i create an object, the time is not correct. You can
Seems that it may not be possible, but hey I might as well ask,
It seems that Google only offers code to embed the +1 button. However, there
Seems that lot of people already know that issue but I can not find
It seems that the only way to select a checkable input that is actually

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.