CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    CSrollView to DIB file

    I would like to save a CScrollView to a bitmap file. I try with code find in CodeGuru. this code save a DC to a DIB file, but when i use it with CScroolView DC it save only displayed chart.

    If someone have a solution ? I will very happy to get it.

    thanks for all


  2. #2
    Join Date
    May 1999
    Posts
    6

    Re: CSrollView to DIB file

    Hi.
    what do you mean by saing "save CScrollView" . you don't save class information in the bitmap file. you save bits information in it such as bitmapinfoheader and bitdata. if you explain more in details what do you want to do, I could help you.
    with best regards.

    AAvetyan

  3. #3
    Join Date
    Apr 1999
    Posts
    43

    Re: CSrollView to DIB file

    Look at the printable treesample( not myone, the other which works with the DC ), there the same problem is solved. The trick is to set the Windowsize as big that everything is printed.


    Mike


  4. #4
    Join Date
    Apr 1999
    Posts
    2

    Re: CSrollView to DIB file

    thanks for your help,

    sorry to not reply earlyer but i was not at work last week.

    So I want to save the DC of a CSrollView in a Bitmap file but all code i find to do that on codeguru do not accept to save data draws out of the display area of the scrollview. So only data show on the screen are save, area witch are not display are save in black.

    thank for all




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured