CWnd::SendDlgItemMessage
Visual Studio 2010
Sends a message to a control.
LRESULT SendDlgItemMessage( int nID, UINT message, WPARAM wParam = 0, LPARAM lParam = 0 );
The SendDlgItemMessage member function does not return until the message has been processed.
Using SendDlgItemMessage is identical to obtaining a CWnd* to the given control and calling the SendMessage member function.