isZoomed() functionality is not working in my client code

前端 未结 1 1270
天涯浪人
天涯浪人 2021-01-23 19:32

i wanted to know whether mstsc(RDP) window maximized or not from my client application. so i\'m using :

IsZoomed(handle of mstsc); but i\'m always getting zero as return

相关标签:
1条回答
  • 2021-01-23 19:57

    IsZoomed detects whether the window is maximized in the WS_MAXIMIZED sense, which means that it has a caption bar with a maximize button. But fullscreen apps don't work that way, which is why IsZoomed always reports "It is not maximized with a caption bar." You will have to use some alternate detection mechanism, like looking at the window dimensions.

    0 讨论(0)
提交回复
热议问题