Printing the control

void CIvSceneListCtrl::Print(CDC* pDC, CPrintInfo* pInfo) {

        CClientDC dcScreen(NULL);
        //map 1 screen logical inch to 1 printer.
        pDC>SetWindowExt(       dcScreen.
        pDC->SetViewportExt(    pDC->GetDeviceCaps(LOGPIXELSX),

        CPen pen(PS_SOLID,1,RGB(0,0,0));
        CPen* OldPen = pDC->SelectObject(&pen);

        CHeaderCtrl* pHeader = (CHeaderCtrl*) GetDlgItem(0);

        if (pHeader) pHeader->SendMessage(WM_PAINT,(WPARAM)pDC->m_hDC);



  • Is it possible to get the EMF from the ListView?

    Posted by Legacy on 03/30/2001 12:00am

    Originally posted by: Michael

    I need to insert the image of the ListView table into an RTF
    file dynamically from a program.
    Is it possible to get the EMF from the ListView?


  • Thank You

    Posted by Legacy on 04/18/2000 12:00am

    Originally posted by: Aykut

    This is really an important feature that sometimes is a must.

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Entire organizations suffer when their networks can't keep up and new opportunities are put on hold. Waiting on service providers isn't good business. In these examples, learn how to simplify network management so that your organization can better manage costs, adapt quickly to business demands, and seize market opportunities when they arise.

  • Essential Insights for Successful Cloud Migration and Management Whether you're planning your cloud migration strategy or already in the cloud, making accurate cloud decisions requires a deep analytical approach. This paper discusses the main objectives to achieve, top questions to ask, and the analytics you need at each stage of your cloud journey. You'll learn: How to identify which cloud provider will provide the best cost and performance benefits for your organization How to determine which applications …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date