开发者

Grid of 30 x 30 buttons

开发者 https://www.devze.com 2023-01-13 13:20 出处:网络
I\'m making a grid of 30 x 30 buttons with BS_BITMAP representing some numeric value which can be set by开发者_如何转开发 clicking on buttons. so should I go creating 900 buttons on a window and or GD

I'm making a grid of 30 x 30 buttons with BS_BITMAP representing some numeric value which can be set by开发者_如何转开发 clicking on buttons. so should I go creating 900 buttons on a window and or GDI would help to do something same?

Any ideas on setting a row of some column in a grid to some values? would I need a multidimensional array of window handles?


900 controls on a single window does seem a little overkill, Dave - I'd suggest creating a custom control that uses a single window and which renders button-like objects that respond to the usual events, rather than overloading the window with controls. Windows may gripe at having so many controls on a single window - or could perform fairly slowly when the window gets invalidated etc.

0

精彩评论

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

关注公众号