windows API中GetSystemMetrics函数SM_CX系列参数与SM_CY系列参数里的'C'是什么意思?


我是在看windows程序设计时遇到的疑问,具体是这句话:

cxScreen=GetSystemMetrics(SM_CXSCREEN);

我知道 x 代表x轴的意思,所以就是cxScreen就是指屏幕的宽度,但这个 c 是什么意思呢?上了 msdn 也看不出名堂

windows win32api

骄傲双马尾 11 years, 9 months ago

楼主的认真劲,欣赏。

直观推定C=Count in pixels,历史估计得回溯到匈牙利命名法。

验证果然 。

强大的GOOGLE : SM_CXSCREEN prefix c
告诉我们:

the prefix c added to the variables name stands for "count",and in this case means a count of (or number of )pixels


古老的 Charles Petzold,Charles Simonyi ,(异姓兄弟?)又因此问题而被召唤回来。

Sena塞纳 answered 11 years, 9 months ago

Your Answer