And make it a STATIC class proc, otherwise it will go wrong. Class procs still have a reference to the class type as hidden param
For bonus points, don't use the form1 variable, but pass form via the parameter (LPARAM etc) to the class proc handler. This is useful if you have handler react to multiple classes individually