MFC-vc++ Click a button to trigger the event method of another button

void CPCSoftwareDlg::OnBnClickedButRs485test()
{     // TODO: Add control notification handler code here     OnBnClickedButtonSendmsg(); //Call the click event of another button     m_RS485TestDlg.ShowWindow(TRUE);



}

void CPCSoftwareDlg::OnBnClickedButtonSendmsg()
{     // TODO: Add control notification handler code here     // TODO: Add control notification handler code here     if (pSocketServer == NULL)     {         WriteLog("Socket is not initialized");         return ;     }     if (pSocketServer->m_clientList.GetCount() <= 0)     {         WriteLog("No client connection");         return;     }











}

Supongo que te gusta

Origin blog.csdn.net/txwtech/article/details/131521842
Recomendado
Clasificación