05-11-2008, 02:11 PM
Is there a way to modify a button's style at run-time, especially I wanted to modify a button in order to become the default button at run-time.
Thanks in advance
Thanks in advance
Modify button style at run-time (BS_DEFPUSHBUTTON)
|
05-11-2008, 02:11 PM
Is there a way to modify a button's style at run-time, especially I wanted to modify a button in order to become the default button at run-time.
Thanks in advance
05-11-2008, 02:18 PM
SetWinStyle
05-11-2008, 03:59 PM
Dear Gintaras,
Thanks for a very prompt, as usually, reply. Actually, I used : SetWinStyle id(1, hDlg) BS_DEFPUSHBUTTON 1 but it didnot work. Therefore I came to the following solution which it worked. I created two exactly similar entries, ie 1 Button 0x54030000 0x0 18 16 82 18 "Use O/S Scan S/W" 2 Button 0x54030001 0x0 18 16 82 18 "Use O/S Scan S/W" one with the BS_DEFPUSHBUTTON set and another one unset, and I hide the appropriate button using, for examle ShowWindow(id(1, hDlg) SW_HIDE) I would appreciate it if you kindly comment. Best regards
05-11-2008, 04:57 PM
In this case, changing style does not work or is difficult. Use DM_SETDEFID.
Function Dialog59 \Dialog_Editor
05-11-2008, 06:22 PM
Many thanks, it is perfect.
|
« Next Oldest | Next Newest »
|