摘要: 一、禁止对话框的移动(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... 阅读全文
posted @ 2012-09-18 15:30 飞飞O(∩_∩) 阅读(6674) 评论(0) 推荐(1) 编辑
摘要: #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 阅读全文
posted @ 2012-09-17 13:45 飞飞O(∩_∩) 阅读(833) 评论(0) 推荐(0) 编辑