ON_MESSAGE

1. #define WM_SECOND_DIALOG_LISTCTRL_ADD_STRING (WM_USER + 1)

2.    ON_MESSAGE(WM_SECOND_DIALOG_LISTCTRL_ADD_STRING, &CBootloaderDlg::ListCtrlUpdateData)

3. .CPP , .h

LRESULT CBootloaderDlg::ListCtrlUpdateData(WPARAM wParam, LPARAM lParam)

    afx_msg LRESULT ListCtrlUpdateData(WPARAM wParam, LPARAM lParam);

          

 

 

  SendMessage(AfxGetMainWnd()->GetSafeHwnd(), WM_SECOND_DIALOG_LISTCTRL_ADD_STRING, (WPARAM)0, (LPARAM)0);

 

 

你可能感兴趣的:(VS,MFC)