From: Takaaki T. <tt...@ja...> - 2001-09-01 14:20:33
|
At Sat, 1 Sep 2001 06:08:31 -0700 (PDT), Kevin Smith wrote: > I added resize, and because it is also virtual, I made it > like draw and handle. So now I have bundled all three > virtual methods into macros: WIDGET_FNS (which contains > FN_DRAW, FN_HANDLE, and FN_RESIZE), and DEF_WIDGET_METHODS > (which contains DEF_METHOD for each of them). I agree with you on WIDGET_FNS. But I can't understand why resize must be redefined in subclasses. In the case of handle and draw, they caused the infinite recursion. -- Takaaki Tateishi <tt...@ja...> |