GetWindowRect too small on Windows 7

前端 未结 6 1033
灰色年华
灰色年华 2020-11-28 11:41

The actual problem I\'m trying to solve is, I want to automatically find out the size of the margins around windows. If you can find a better way, please by all means answer

6条回答
  •  佛祖请我去吃肉
    2020-11-28 12:10

    first, you call GetClientRect to retrive the client rectangle R1, then call AdjustWindowRectEx to calculate the accurate bounds according to R1.

提交回复
热议问题