i'm not sure whether this wasnt posted earlier, but anyway. i was trying to create owner drawn control from code ( as opposite to creation from resource) and use message reflection for that control, but it reflections didn't work. In LRESULT CWindowImplRoot< TBase >::ReflectNotifications(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) there was a line if(wParam) // not from a menu which is incorrent for controls created by hand. so, i changed it to if(lParam && ((LPDRAWITEMSTRUCT)lParam)->CtlType != ODT_MENU) // not from a menu. Is there any better solution for this problem? cause i dont really want to change wtl sources...
When creating your control, give it a unique non-zero ID, then ReflectNotifications would work as originally written.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.