
Dialog buttons get ugly black borders once clicked ?
Quote:
> I think that is what Chile is seeing. I think that Chile wants
> functionality similar to the windows calculator (start | run | calc). How
> do they do it so there is no black border after clicking a button?
> > >I have a dialog and on its there is a few buttons but for some reason
> when i
> > >click on the buttons, they get a black border around them and it only
> goes
> > >away if i click on another item in the dialog.
> > Are these black borders something different from the normal emphasised
> > border that you get in all normal dialogs?
> > Dave
> > --
> > MVP VC++ FAQ: http://www.mvps.org/vcfaq
> > My address is altered to discourage junk mail.
> > Please post responses to the newsgroup thread,
> > there's no need for follow-up email copies.
One way to prevent it is to add a handler for the BM_SETSTYLE message to a derived CButton class,
and in it always remove the BS_DEFPUSHBUTTON style. Something like...
LRESULT CNoDefButton::OnSetButtonStyle(WPARAM wParam, LPARAM lParam)
{
return DefWindowProc(BM_SETSTYLE, (wParam & ~BS_DEFPUSHBUTTON), lParam);
}
Jeff...
--
Please post all follow-ups to the newsgroup only.