Re: Changing dialog look-n-feel background color



Ajay,

Don't wish to labour the point, but this is a classic case where dynamic
dialogs save the day. You can make a base dialog which handles the colouring
issue then derive from it. Each derived dialog gets all the stuff the parent
had, you just need to add the extra controls. It is known as Form
Inheritance in other spheres.

"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:1140037946.479659.269450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If you set this globally(system settings), the impact would be beyond
your application. Is that what you want? Barring that, there is nothing
really you can do other than doing it for each dialog or simply
defining classes for each type of control and subclassing these in each
dialog.

Keep in mind that for a CButton , you will need to owner draw as it no
longers responds to CTLCLR** messages.

---
Ajay Kalra
ajaykalra@xxxxxxxxx



.