I have two buttons, IDC1, IDC2
After pressing IDC2 this is done:
CButton *cb=(CButton*)GetDlgItem(IDC1);
cb->ModifyStyle(WS_VISIBLE,0);
But button1 doesn't go invisible, it will just get unenabled. Why ?
thx
bubak
The button could be visible, but without borders ant transparent. The correct is to make a combination between its style and WS_VISIBLE flag.
in pseudocode is:
x=get the style of the button;
cb->ModifyStyle(WS_VISIBLE|x,0); John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.