Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modify button style at run-time (BS_DEFPUSHBUTTON)
#3
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)