G
Guest
Hi,
Im fairly new to C# but have som experience in the C++/MFC world and I am a bit confused as I cant find some information that I am used to having.
I am trying to use the RichTextBox control and specifically the Protected event. In C# I get no arguments to this event (well I do but the EventArgs object contains no usefull information). If I was to receive this as a message in C++, by receiveing the EN_PROTECTED notification, I would get this structure
typedef struct _enprotected {
NMHDR nmhdr;
UINT msg;
WPARAM wParam;
LPARAM lParam;
CHARRANGE chrg;
} ENPROTECTED;
as well as the notification. This contains lots of useful information. Whats happening here, how do i get hold of this information in C#? I assume I am missing something fairly obvious...
Thanks,
Jesper
Im fairly new to C# but have som experience in the C++/MFC world and I am a bit confused as I cant find some information that I am used to having.
I am trying to use the RichTextBox control and specifically the Protected event. In C# I get no arguments to this event (well I do but the EventArgs object contains no usefull information). If I was to receive this as a message in C++, by receiveing the EN_PROTECTED notification, I would get this structure
typedef struct _enprotected {
NMHDR nmhdr;
UINT msg;
WPARAM wParam;
LPARAM lParam;
CHARRANGE chrg;
} ENPROTECTED;
as well as the notification. This contains lots of useful information. Whats happening here, how do i get hold of this information in C#? I assume I am missing something fairly obvious...
Thanks,
Jesper