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
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?
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?
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.
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.
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?
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.