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
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