开发者

Where can I find diagrams detailing non-client dimensions of various types of windows?

I often find that I need to find the width or height of a part of a non-client area (sizeable tool window border width, for instance) and I have never come across a complete diagram of what part is what. Much of it I can guess, but I'd love to have a really good set of diagrams that ma开发者_StackOverflow中文版tch up with what's found in .Net's SystemInformation class.

Has anyone ever seen such a diagram from Microsoft or from somewhere else?

Edit:

The best so far is this kind of diagram: http://dmms.kssh.ed.jp/~kitano/winfaq/11/11-1.gif

I'd love to see something a little more modern and more detailed, but the bounty time limit is up so bounty is awarded to Erik.


This can and will differ in between OS'es and themes. You will need to use SystemParametersInfo passing e.g. SPI_GETNONCLIENTMETRICS to retrieve your defaults, or send WM_NCCALCSIZE to get actual values for a given window.

EDIT: As @STATUS_ACCESS_DENIED mentions, also look at GetSystemMetrics.


To be honest, I've never seen any such diagram either. There is a wealth of information in the User Interface Guidelines on MSDN, but nothing that visually shows what each SystemInformation/GetSystemMetrics item refers to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜