How to find the height of the taskbar that is visible in the My Monitor area when the taskbar is hidden

정빈 임 0 Reputation points
2023-08-24T05:29:20.8033333+00:00

How to find the height of the taskbar that is visible in the My Monitor area when the taskbar is hidden

My monitor height is 1080 when the taskbar is hidden in Windows 10, but the top of the taskbar starts at 1078. This means the height is 2, but the problem is that the taskbar is hidden, but the mouse is in the taskbar, so if you check with the taskbar up, the top of the taskbar comes out to 1040. I want to know the height of the taskbar on the monitor screen when the mouse is not up.

The API I used is monitorfromwindow, getmonitorinfo, shappbarmessage, getwindowrect

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.