Link to home
Start Free TrialLog in
Avatar of hacibumbala
hacibumbala

asked on

Message Handling

Hi All!

I am trying to convert a custom control written in C++ to Delphi. I do not have much C++ background. Can anybody tell me how to convert the below code to Delphi:

BEGIN_MESSAGE_MAP(CSomeClassEx, CSomeClass)
Ā  ON_NOTIFY_REFLECT(A Notification, A Handler)
END_MESSAGE_MAP()

To handle messages received by the control I normally override WndProc method, but this notification is received by the Parent window of the control through WM_NOTIFY message. What is the best way to convert this code?

Thanks in advance...
ASKER CERTIFIED SOLUTION
Avatar of hzg115
hzg115

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hacibumbala
hacibumbala

ASKER

I checked the VCL code and realized that correct declaration should be:

procedure CNNotify(var Message: TWMNotify); message CN_NOTIFY;

However, your information helped a lot. Thank you for the answer!