VisualC++、MFCについての質問です。
親と、子(ダイアログ)で、WM_NOTIFY のメッセージを
転送しているのですが、上手くいきません。


// 子ダイアログ
static NMHDR nmh;
memset(&nmh, 0, sizeof(nmh));
nmh.hwndFrom= GetSafeHwnd();
nmh.idFrom= GetDlgCtrlID();
nmh.code= NM_CLICK;
GetParent()->PostMessage(WM_NOTIFY, (WPARAM)nmh.idFrom, (LPARAM) &nmh);

// 親ウインドウ
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
//}}AFX_MSG_MAP
ON_NOTIFY(NM_CLICK, IDD_LOGIN, OnNotifyTest)

void CMainFrame::OnNotifyTest(NMHDR* pNMHDR, LRESULT* pResult)
{
MessageBox("OK");
*pResult = 0;
}
ご教授お願いします。