[lazarus] ListBox,Memo,ComboBox SubClassing (win32)

Micha Nelissen M.Nelissen at student.tue.nl
Fri Aug 15 13:39:33 EDT 2003


Karl Brandt wrote:

> Trying to improve the recreate process of list/combo i found that
> subclassing the mentioned controls causes them to be painted incorrectly.
> To get this, comment the calls to RecreateListControl, which was hiding
> this issue.
> To fix it just disables subclassing of these controls.

This is not the way to go. The bug is elsewhere, maybe in the handling 
of the messages. Unprocessed messages are handled by the actual window 
proc, PrevWndProc.

> I'd like to ask Micha, how disabling these subclassings can affect the
> funcionality of the controls

The subclassing is the link between the interface and the LCL for non-forms.

Regards,

Micha.







More information about the Lazarus mailing list