I am making a single document aplication in MFC where i need to send a message from the mainframe window to the CHtmlView window of the aplication.

I tried this:

CHTMLView * Chtml=(CHTMLView *)GetActiveView();
Chtml->SendMessage(WM_KEYDOWN,VK_DOWN,0);
//CHTMLview is the name of the CView -derived class

but it doesn'y work.Any suggestions?