CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 1999
    Location
    India, TamilNadu, Chennai.
    Posts
    269

    How to Increase the picture control width size more than 32,767 pixels.

    Hi,

    Is it possible to increase the picture control width size more then 32,767 pixels small Integer to long, so that i can draw the full diagram picture and scroll whereever i need. it's reduce the redraw work again and again.

    Advance Thanks,
    K.Babu
    Please avoid sending emails to my personal mail:
    write your doubts as thread in Codeguru
    Crystal Reports Forum
    .

    This will help all people having similar matters, and will let people who know solutions on the specific topic
    share their knowledge.

    Visit my company web site (Qmax Test Equipments Private Limited)

    Yours friendly,
    K.Babu

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815

    Re: How to Increase the picture control width size more than 32,767 pixels.

    Quote Originally Posted by K.Babu
    Is it possible to increase the picture control width size more then 32,767 pixels small Integer to long, so that i can draw the full diagram picture and scroll whereever i need. it's reduce the redraw work again and again.
    Which picture control are you referring to?

  3. #3
    Join Date
    Aug 1999
    Location
    India, TamilNadu, Chennai.
    Posts
    269

    Re: How to Increase the picture control width size more than 32,767 pixels.

    Hi,

    Basically iam VB programmer, In Control Tool bar it contains picture control, It's support maximum width 32,767 pixels, But i required more than that like long value, If there is any WinAPI function to increase the maximum width range that will be very usefull for me.

    Thanks in Advance.
    K.Babu



    Quote Originally Posted by gstercken
    Which picture control are you referring to?
    Please avoid sending emails to my personal mail:
    write your doubts as thread in Codeguru
    Crystal Reports Forum
    .

    This will help all people having similar matters, and will let people who know solutions on the specific topic
    share their knowledge.

    Visit my company web site (Qmax Test Equipments Private Limited)

    Yours friendly,
    K.Babu

  4. #4
    Join Date
    Mar 2003
    Location
    The Netherlands
    Posts
    586

    Re: How to Increase the picture control width size more than 32,767 pixels.

    a CScrollBar is limited to a 0..32797 (or something in that range) range too.
    My guess is that a picture scrollbar is derived from the same CScrollBar and
    thus does not allow a range bigger then 0..32797.

    You could write your own CMyScrollBar .

    Cyah,

    Robbert C.
    Time is fun when you're having flies

  5. #5
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: How to Increase the picture control width size more than 32,767 pixels.

    I would strongly discourage you from drawing such large diagrams...
    ... instead just draw that part of your diagram that is currently visible. This will be faster and will consume much less memory than redering the big/full diagram.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  6. #6
    Join Date
    Mar 2003
    Location
    The Netherlands
    Posts
    586

    Re: How to Increase the picture control width size more than 32,767 pixels.

    We are currently developing a Gantt chart (schedule with dates) with GanttItems. The Gantt chart currently uses the full scale of 32797. It is fully constructed in memory. This makes scrolling fast. The Gantt items are not windows but just rectangles drawn on the device context of a View.
    When only the visible part is drawn there has to be written some code that finds out what items to draw and what items not. It is possible that database related code is necessary to find out if an item has to be drawn and where, which is slow. In our example the dates of the Gantt items are written to a database. The dates are to be retrieved from the database when the items are drawn.
    Perhaps there is another method we do not know about?
    Time is fun when you're having flies

  7. #7
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: How to Increase the picture control width size more than 32,767 pixels.

    http://msdn.microsoft.com/library/de...scrollinfo.asp describes a way to circumvent the 16 bit limit. Perhaps it might be usefull.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

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