u010607621
sculida
2016-04-06 07:46

它进程对SysTreeView32模拟点击

50

请问:windows控件SysTreeView32模拟点击(无论双击或者左键单击)怎么做?
有人说需要WM_NCHITTEST,但是似乎还是没用
我连发了6个消息,都没有用
SendMessage(m_lefttreeview, WM_NCHITTEST, NULL, m_iconOrders);
PostMessage(m_lefttreeview, WM_LBUTTONDOWN, NULL, m_iconOrders);
PostMessage(m_lefttreeview, WM_LBUTTONUP, NULL, m_iconOrders);
PostMessage(m_lefttreeview, WM_LBUTTONDBLCLK, NULL, m_iconOrders);
PostMessage(m_lefttreeview, WM_NCHITTEST, NULL, m_iconOrders);

PostMessage(m_lefttreeview, WM_LBUTTONUP, NULL, m_iconOrders);

那种mouse_event的函数我能够实现此功能,但是此方案不太适合

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

相关推荐