Quote Originally Posted by Victor Bravo VI View Post
Actually, the uIdSubclass parameter can also be used to store the other 4 bytes, so the 2nd subclass is unnecessary..
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