当前位置: 动力学知识库 > 问答 > 编程问答 >

c - Why are group boxes, being static, a type of Button control?

问题描述:

Just out of curiosity,

The Win32 Group Box control is actually a Button control with the style BS_GROUPBOX applied. As the control is static, being simply text with a special border, why is it one of the Button styles, when the rest are all for actual buttons or button-like UI elements which receive user input?

Thanks in advance for any insights.

网友答案:

This goes way back to the 1980s. Everybody that worked on it is drinking pina coladas in Hawai today so we'll have to make-do with a guess. The likely one is that, since it was so very important to minimize the foot-print of Windows back then, that the existing plumbing for the BUTTON control was re-usable to implement a group box as well.

分享给朋友:
您可能感兴趣的文章:
随机阅读: