Creating a presenter/view pair for win32 control
Posted by Yar Hwee Boon-3 on Sep 24, 2004; 4:27pm
URL: https://forum.world.st/Creating-a-presenter-view-pair-for-win32-control-tp3371590.html
Hi all,
I'm evaluating a third party WYSIWYG HTML editor Win32 control. I tried
creating a ValueConvertingControlView subclass and overrode #winClassName,
#displayValue, #displayValue: (those 3 seems the only "compulsory" methods
on first run). However when I do a "MyView show" and then close it, the
system font, ie. the fonts in the method browser, card containers etc all
appeared as bold. I traced it till the WM_DESTROY message, and it looks
like the original window procedure of the control is causing this (I don't
have the source code). Am I doing it correctly? Or does it mean that the
window procedure is doing something funny, and I should go back to the
author? Are there any guidelines on how to create presenter/view classes
for new controls? ie. besides the image examples :)
--
Regards
HweeBoon
MotionObj