16,471
社区成员
发帖
与我相关
我的任务
分享
HWND CDataExchange::PrepareCtrl(int nIDC)
{
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
HWND hWndCtrl;
COleControlSite* pSite = NULL;
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);
if (hWndCtrl == NULL)
{
// Could be a windowless OCX
pSite = m_pDlgWnd->GetOleControlSite(nIDC);
if (pSite == NULL)
{
TRACE(traceAppMsg, 0, "Error: no data exchange control with ID 0x%04X.\n", nIDC);
ASSERT(FALSE);
AfxThrowNotSupportedException();
}
}
m_idLastControl = nIDC;
m_bEditLastControl = FALSE; // not an edit item by default
return hWndCtrl;
}
void CGigeCameraDemoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGigeCameraDemoDlg)
DDX_Control(pDX, IDC_STATUS, m_statusWnd);
DDX_Control(pDX, IDC_VERT_SCROLLBAR, m_verticalScr);
DDX_Control(pDX, IDC_HORZ_SCROLLBAR, m_horizontalScr);
DDX_Control(pDX, IDC_VIEW_WND, m_viewWnd);
DDX_Text(pDX, IDC_FIXTHD, single_height);
DDX_Text(pDX, IDC_RGAREA, m_rgarea);
//DDX_Text(pDX, IDC_FIXTHD2, m_fixthd2);
//DDX_Text(pDX, IDC_RGAREA2, m_rgarea2);
// DDX_Control(pDX, IDC_MSCOMM1, m_ctrlComm);
DDX_Control(pDX, IDC_GRAB, m_ButtenGrab);
DDX_Control(pDX, IDC_FREEZE, m_ButtenFreeze);
DDX_Control(pDX, IDC_SHOWPICTURE, m_picture);
DDX_Control(pDX, IDC_logopicture, hbmp);
DDX_Control(pDX,IDC_STATIC_RESULT,m_result);
}