Hi Victor,
Well, that approach opens up the possibility of a collision. A unique ComCtl32 subclass is defined as the combination of pfnSubclass (the subclass function's address) and uIdSubclass. Let's say I want to subclass two forms simultaneously with my SubclassFormMinMaxSize procedure. Furthermore, let's assume the Min_Max data will be precisely the same for both forms. If the Min_Max data is used for uIdSubclass, then we've got a collision.
Best Regards,
Elroy





Reply With Quote