Filip Navara wrote:
Robert Shearman wrote:
It looks much simpler now, but I don't understand why reversing the direction of the stack should make any difference.
Because when the DefSubclassProc is called first time the stackpos should be 0 and so if 0 is treated as topmost subclassed procedure in the hiearchy there's no longer needed SubclassWndProc. (Does it make sense? ;-) Unfortunetly my patch doesn't handle the stackpos position properly, so it wouldn't not work just yet.
Can you not just use stack->stacknum instead of 0 if the stack is inverted? I'm not arguing against it and I'm all for it if it makes it easier to code, but I'm just trying to see what stops you from using the same stack direction as at the moment.
Rob