You CAN use the wizard. Just locate your derived class in the class wizard, add handler for WM_CONTEXTMENU.