数字图像处理VC++中对话框初始化的源程序代码!

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/10 20:32:30
数字图像处理VC++中对话框初始化的源程序代码!
xn@_e !_RTp-rkJQ*KTM.M9!HO[SH@‡~3-8%8WgIO 8299΁x/[h/M0x|ƔD' jbk!Ͷr9s 62 E؛hlf`3J)~hrL Cv'KH ElC稓5FU[OG?'z_x~ G|#qxCbI"U#«3m(\wbM֚ !"I3u`3 IllS3\(lJM'ó/&Y;[TU,(#7<+ȄsuXw5fZX2ci.zn93\6.isS0I gԞsWrwr`PaAo@Ŵ nzvZ9l1I)|?

数字图像处理VC++中对话框初始化的源程序代码!
数字图像处理
VC++中对话框初始化的源程序代码!

数字图像处理VC++中对话框初始化的源程序代码!
BOOL CPointStreDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here

CWnd* pWnd = GetDlgItem(IDC_COORD);
// 计算接受鼠标事件的有效区域
pWnd->GetClientRect(m_MouseRect);
pWnd->ClientToScreen(&m_MouseRect);

CRect rect;
GetClientRect(rect);
ClientToScreen(&rect);
m_MouseRect.top -= rect.top;
m_MouseRect.left -= rect.left;

// 设置接受鼠标事件的有效区域
m_MouseRect.top += 25;
m_MouseRect.left += 10;
m_MouseRect.bottom = m_MouseRect.top + 255;
m_MouseRect.right = m_MouseRect.left + 256;

m_iIsDraging = 0;

return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}