yossikally
asked on
What's the difference between "Owner Drawn" and subclassed control
I understand both techniques are used to change a control's behaviour, but I would like to know how they differ from one another in terms of Windows message processing and redirection.
ASKER
Hi AndyAinscow.
So you say that a subclassed control gets all Windows messages, whereas an OwnerDrawn control only gets WM_PAINT?
Do you know of links to Win32 projects (not MFC) that show that?
So you say that a subclassed control gets all Windows messages, whereas an OwnerDrawn control only gets WM_PAINT?
Do you know of links to Win32 projects (not MFC) that show that?
>>Do you know of links to Win32 projects (not MFC) that show that?
No. But the principle would be the same in an MFC project.
No. But the principle would be the same in an MFC project.
ASKER
And as for my other question/statement?
can I safely say that an ownerdrawn control gets just wm_paint and a subclass gets all messages?
In other words: a subclass is identical to ownerdrawn if I pass all but wm_paint to superclass?
can I safely say that an ownerdrawn control gets just wm_paint and a subclass gets all messages?
In other words: a subclass is identical to ownerdrawn if I pass all but wm_paint to superclass?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Owner drawn means just that - you draw it, all of it. The only message/events being responded to are painting events.