victorb Messages: 78 Registered: December 2005 Location: Nice, France
Member
Use the Button::Ok() to give a button a Ok button look (Cancel(), Exit(), Normal() are other method of Button you can use for giving your button different looks).
One solution to have all your OK-Cancel look the same is to design your own OK-Cancel dialog with the layout editor and use it across your code.
If you name your buttons "ok" and "cancel" (lower case) you can invoke CtrlLayoutOKCancel() to set the button look and ID.
You should take a look at the Layout example in the reference code.