Underlay example for C++ 5.0 and later

This example loads a bitmap into m_Lead2 and uses it as a tiled underlay for m_Lead1.

ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
                 IID_ILEADRasterIO, (void**)&pRasterIO);
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
                 IID_ILEADRasterProcess, (void**)&pRasterProc);
m_LEADRasterView2.ShowWindow(SW_HIDE);
pRasterIO->Load(m_LEADRasterView2.GetRaster(),
                "d:\\lead14\\dist\\images\\ulay1.bmp", 0, 0, 1);
pRasterProc->Underlay(m_LEADRasterView1.GetRaster(),
                      m_LEADRasterView2.GetRaster(),
                      UNDERLAY_TILE);
m_LEADRasterView1.ForceRepaint();
pRasterIO->Release();
pRasterProc->Release();