开发者

Grid of 30 x 30 buttons

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜