Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I having problem with this piece of code
SendMessage(WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(fig.x, fig.y) );
There is nothing wrong with the above code.
In View.cpp is OK. No compile errors.
I have a file Draw_Consumer.cpp. I put the above in it. This is where the codes should be according to my a pplication.
I respectively have the error that SendMessage cannot take 3 parameters. I remove one, then it cannot take 2 parameters. I remove another one then it cannot take 1 param. Then similarly it cannot take 1 param when I remove the last one.
Well what should I do to get the above working ?
I guess that in the Draw_Consumer.cpp file the SendMessage is not getting the instance of CWnd which is created when the application has been created. Thought I cannot see what I should be doing.
Anyway let me know what I should be doing.
0 · ·