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.