window border width and height in Win32 - how do I get it?

前端 未结 6 924
慢半拍i
慢半拍i 2020-12-08 10:10
      ::GetSystemMetrics (SM_CYBORDER)

...comes back with 1 and I know the title bar is taller than ONE pixel :/

I also tried:

     RECT r;
         


        
6条回答
  •  孤城傲影
    2020-12-08 10:40

    I think what you're looking for is SM_CYCAPTION -- that's the height of the title bar. SM_CYBORDER is the height of the horizontal edges of a window.

提交回复
热议问题