我现在对话框中定义了消息处理函数
LRESULT ParameterDialog::OnParameter(WPARAM wParam, LPARAM lParam) 
{
.....
}程序可以运行,尽管没有消息发送。然后我想在主框架中给对话框发送消息,定义了这样一个消息函数:
LRESULT CMainFrame::OnParameter(WPARAM wParam, LPARAM lParam) 
{
ParameterDialog* m_pDlg = (ParameterDialog *)((CFrameWnd*)AfxGetMainWnd())->GetSafeHwnd();
m_pDlg->SendMessage(WM_USER_PARAMETER, WPARAM wParam, LPARAM lParam);
return LRESULT();
}错误提示是:
MainFrm.cpp
c:\working\Huber\root_growth3DGUI5.0\MainFrm.cpp(161) : error C2275: 'WPARAM' : illegal use of this type as an expression
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinDef.h(170) : see declaration of 'WPARAM'
c:\working\Huber\root_growth3DGUI5.0\MainFrm.cpp(161) : error C2146: syntax error : missing ')' before identifier 'wParam'
c:\working\Huber\root_growth3DGUI5.0\MainFrm.cpp(161) : error C2059: syntax error : ')'
Generating Code...Build log was saved at "file://c:\working\Huber\root_growth3DGUI5.0\Debug\BuildLog.htm"
root_growth3DGUI - 3 error(s), 285 warning(s)
---------------------- Done ----------------------    Rebuild All: 0 succeeded, 1 failed, 0 skipped请帮我分析解决这个错误。3X