WhorlyWhelk
June 30th, 2007, 05:58 AM
I got a bunch of buttons in a dialog box (my main window) and when one is entered I want to change the DEFPUSHBUTTON to a different one.
I tried to do this:
SendMessage(log,BM_SETSTYLE,BS_PUSHBUTTON|BS_TEXT|WS_CHILD|WS_TABSTOP,TRUE);
SendMessage(play,BM_SETSTYLE,BS_DEFPUSHBUTTON|BS_TEXT|WS_CHILD|WS_TABSTOP,TRUE);
And when it draws them like the DEFPUSHBUTTON style has swapped, but when I hit enter it still submits the former one rather than the new DEFPUSHBUTTON and they draw the other way!
Is it possible to swap these?
I tried to do this:
SendMessage(log,BM_SETSTYLE,BS_PUSHBUTTON|BS_TEXT|WS_CHILD|WS_TABSTOP,TRUE);
SendMessage(play,BM_SETSTYLE,BS_DEFPUSHBUTTON|BS_TEXT|WS_CHILD|WS_TABSTOP,TRUE);
And when it draws them like the DEFPUSHBUTTON style has swapped, but when I hit enter it still submits the former one rather than the new DEFPUSHBUTTON and they draw the other way!
Is it possible to swap these?