//模拟鼠标点击事件
 ::SendMessage( m_hWnd, WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_RuleNameList.m_hWnd);

m_hWnd为ListBox控件的父窗口句柄

IDC_LIST1为ListBox控件的ID

m_RuleNameList.m_hWnd为ListBox的句柄

相关文章:

  • 2021-12-12
  • 2022-02-17
  • 2022-12-23
  • 2022-01-02
  • 2021-12-09
  • 2021-07-09
  • 2022-02-07
猜你喜欢
  • 2021-12-04
  • 2022-03-02
  • 2021-12-09
  • 2022-02-07
  • 2021-10-09
相关资源
相似解决方案