Is there an API for vista to detect if the desktop is running full screen?

后端 未结 4 1728
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-10 15:21

e.g, Is the user playing a movie full screen, or looking at powerpoint in full screen mode?

I could have sworn I saw a IsFullScreenInteractive API before, but can\'t fin

4条回答
  •  遥遥无期
    2021-02-10 15:59

    The preferred way of detecting the state of a window is by calling GetWindowPlacement. If you do that in conjunction with GetForegroundWindow, you can easily check if the user sees a fullscreen window or not.

提交回复
热议问题