CButton mybtn[301*33];for ( int i=0; i<301*33; i++ )
{
mybtn[i].Create(...);
if ( mybtn[i]==NULL )
{
...// create wrong
break;
}
}this count, cann't create all the buttons, at last, will go into if
but use
CButton mybtn[300*33];
for( int i=0; i<300*33; i++ )
{ ...
}
It's ok. So the count of the buttons is not more than a largest number, is it really?
你是怎么分配id值的?估定是id已被用了。
#define BUTTON_BEGIN 150000then create buttons:
...
for(int i=0;...)
{
btn[i].Create(..., BUTTON_BEGIN+i);
}I look for the other's resource, none is more than 150000.
I modify the 150000 to 1500000, it's not correct too.
what wrong with your brain??
I never seen a shit american like you!
How do I?
If I create static lable, could I create more than 10000?This is for telephone system,please help me
.....
Windows 95: The system can support a maximum of 16,364 window handles.That is, create button on a window can more than 10000. But I'm wrong when create buttons..... Don't know how do
Don`t use MsfuckClass to create these buttons.
best wish.
自己画按钮并处理鼠标事件应该是最好的方法,简单,且效率会提高很多。
I think I can declare two group buttons variant and create every group button are same style, this doing can more than 9900, ok?
如需要,我可以给你发一个示例程序(SDK)。
and long time to do