ClientToBitmap example for C++ 5.0 and later

void CTutor3Dlg::OnMouseDownLeadrasterview1(short Button, short Shift, float x, float y) 
{
   float BitmapX;
   float BitmapY;

   BitmapX = x;
   BitmapY = y;
   m_LEADRasterView1.ClientToBitmap (BitmapX, BitmapY);
    
   //Change that pixel to White
   m_LEADRasterView1.GetRaster().SetPixel(m_LEADRasterView1.GetConvertX (),
                                          m_LEADRasterView1.GetConvertY (),
                                          RGB(255,255,255));
}