OriginX example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
CString strOut;
m_pRasterProc->GetOverlayAttributes( m_LeadRasterView.GetRaster(), 0, OVERLAYATTRIBUTES_FLAGS);
strOut.Format("Origin(x,y) : (%d , %d)",m_pRasterProc->OverlayAttributes->OriginX , m_pRasterProc->OverlayAttributes->OriginY);
MessageBox(strOut);
m_pRasterProc->Release();