15,979
社区成员
发帖
与我相关
我的任务
分享
void CCdialogIP::OnQueding()
{
// TODO: Add your control notification handler code here
char tempBuf[200];
DWORD dwIP;
CChatDlg dlg;
((CIPAddressCtrl*)GetDlgItem(IDC_IPADDRESS1))->GetAddress(dwIP);
sprintf(tempBuf,"%lu",dwIP);
::PostMessage(dlg.m_hWnd,WM_MYIPMESSAGE,0,(LPARAM)tempBuf);
dlg.DoModal();
}
void CCdialogIP::OnQueding()
{
// TODO: Add your control notification handler code here
DWORD dwIP;
CChatDlg dlg;
((CIPAddressCtrl*)GetDlgItem(IDC_IPADDRESS1))->GetAddress(dwIP);
::PostMessage(dlg.m_hWnd,WM_MYIPMESSAGE,0,(LPARAM)dwIP);
dlg.DoModal();
}
void CCdialogIP::OnQueding()
{
// TODO: Add your control notification handler code here
char tempBuf[200];
DWORD dwIP;
CChatDlg dlg;
((CIPAddressCtrl*)GetDlgItem(IDC_IPADDRESS1))->GetAddress(dwIP);
sprintf(tempBuf,"%lu",dwIP);
::PostMessage(dlg.m_hWnd,WM_MYIPMESSAGE,0,(LPARAM)tempBuf);
dlg.DoModal();
}
void CChatDlg::OnRecvIP(WPARAM wParam,LPARAM lParam)
{
dwIP=(DWORD)lParam;
}
//dwIP在B类中已经实现申明为成员变量class A
{
public:
CString m_strText;
}
class B
{
public:
B(A *pA)
{
m_pA = pA;
}
CString GetAText()
{
return m_pA->m_strText;
}
A *m_pA;
}