Things still aren't working so well...
but I've assigned the button a command ID as you said, and I got the daft error about the bracket thing...
SO
I swapped the ID...whatever with just a number so I had:
MyButton.idCommand=50000; (40000 ones are took...I checked)
and then
hMyButton=GetDlgItem(hMyButton,50000);
if(hMyButton==NULL){
cout<<"failed on the handle\n";
}
But it keeps failling there...