Re: Theming & code duplication

2005-07-29 Thread Frank Richter
On 28.07.2005 15:54, Robert Shearman wrote: > In that case, you will have to retrieve the rectangle of the changed > area and pass that rectangle to RedrawWindow. Though, that would mean that paint messages are emitted to the window? IIRC last time I checked (with Spy++), there were no paint messa

Re: Theming & code duplication

2005-07-28 Thread Robert Shearman
Frank Richter wrote: On 27.07.2005 17:36, Robert Shearman wrote: You could make the code to using RedrawWindow(... RDW_UPDATENOW), assuming that the paint functions it is calling are for the whole control, not a component of the control. Occasionally it does... afaics mostly stuff li

Re: Theming & code duplication

2005-07-28 Thread Frank Richter
On 27.07.2005 17:36, Robert Shearman wrote: > You could make the code to using RedrawWindow(... RDW_UPDATENOW), > assuming that the paint functions it is calling are for the whole > control, not a component of the control. > Occasionally it does... afaics mostly stuff like just drawing the focus

Re: Theming & code duplication

2005-07-27 Thread Robert Shearman
Frank Richter wrote: Hi, somewhat recently I sent some code to wine-patches to add button theming; if you have glanced at it, despite utilizing subclassing, code was duplicated from the button code in user. In particular, the themed button does its own state management. The reason is that upon

Theming & code duplication

2005-07-27 Thread Frank Richter
Hi, somewhat recently I sent some code to wine-patches to add button theming; if you have glanced at it, despite utilizing subclassing, code was duplicated from the button code in user. In particular, the themed button does its own state management. The reason is that upon state changes, the user3