摘要:
一、禁止对话框的移动(1)、第一种方法 为这个对话框添加系统消息过虑处理: .h中:afx_msg void OnSysCommand(UINT nID, LPARAM lParam);... .cpp中BEGIN_MESSAGE_MAP(CXXXDlg, CDialog)... ON_WM_SYSCOMMAND()... END_MESSAGE_MAP()void CXXXDlg::OnSysCommand(UINT nID, LPARAM lParam){ if (nID == SC_MOVE || nID==0xF012) return; else CDialog::O... 阅读全文
摘要:
#pragma comment(lib,"ws2_32.lib")#include <Winsock2.h>//将CString 型IP地址在IPAddressCtrl中显示 CString strIP="192.168.0.10"; DWORD dwIP; dwIP = inet_addr(strIP); unsigned char *pIP = (unsigned char*)&dwIP; m_ipAddr.SetAddress(*(pIP+3), *(pIP+2), *(pIP+1), *pIP); //将IPAddressCt 阅读全文