ControlWindow example for C++ 5.0 and later

   HDC ctlDC;
   HWND ctlWnd = (HWND)m_LEADRasterImgList1.GetControlWindow();
   TCHAR *strOut = TEXT("Writing to Control Window");
   
   if(ctlWnd)
   {
      ctlDC = ::GetDC(ctlWnd);
      ::TextOut(ctlDC, 10, 10, strOut, strlen(strOut));
      ::ReleaseDC(ctlWnd, ctlDC);
   }