I had learn that RealGetWindowClass can return the base class of superclass . I built a new class "MyClass" which superclass "BUTTON" .
The window proc of "MyClass" is simple : use CallWindowProc to call original proc of "BUTTON" directly .
After register new "MyClass" and create a new button control , I use RealGetWindowClass to retrieve it's class name , but it return "MyClass" same as GetWindowClass , not the "BUTTON".
Why ?