LAPTOP-SNT8I5JK\Boounion
2025-06-12 4897210a25e7c98ddacb1fa4ecee3e8bdd1ae98e
SourceCode/Bond/Servo/CMyStatusbar.cpp
@@ -118,6 +118,22 @@
   // TODO: 在此处添加消息处理程序代码
}
BOOL CMyStatusbar::OnCommand(WPARAM wParam, LPARAM lParam)
{
   CWnd* pItem;
   CRect rcItem;
   switch (LOWORD(wParam)) {
   case IDC_BUTTON_ROBOTTASK:
      pItem = GetDlgItem(IDC_BUTTON_ROBOTTASK);
      pItem->GetWindowRect(rcItem);
      GetParent()->SendMessage(ID_MSG_STATUSBAR_BTN_CLICKED, rcItem.left, LOWORD(wParam));
      break;
   }
   return CDialogEx::OnCommand(wParam, lParam);
}
void CMyStatusbar::OnSize(UINT nType, int cx, int cy)
{
   CDialogEx::OnSize(nType, cx, cy);
@@ -149,4 +165,4 @@
   pItem->GetClientRect(rcItem);
   pItem->MoveWindow(x, (rcClient.Height() - rcItem.Height()) / 2, rcItem.Width(), rcItem.Height());
   x += rcItem.Width();
}
}