Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

wrapped MFC control reflection

$
0
0

Hello,

 I'm trying to use a custom MFC control (derived from CEdit) on a .net Windows Form but the message handlers (ON_CONTROL_REFLECTION) for EN_KILLFOCUS and EN_SETFOCUS are never calledThe only way I can make it work is by adding ON_MESSAGE handlers for WM_KILLFOCUS and WM_SETFOCUS in the custom control and then call the reflection handlers manually from there. There surely must be a different way to do this ?

 I've followed the steps from http://bartjolling.blogspot.se/2008/11/developing-windows-forms-control-using.html. 

Regards,

Tobias Olofsson


Viewing all articles
Browse latest Browse all 12583

Trending Articles