N
NovemberJim
I am programmatically creating Visio pages in the Visio Drawing Control at
runtime, but the control's drawing window is so much larger than the pages
(5" x 10") I am creating that scroll bar behavior is very undesirable.
Namely, all clicks on the scroll-bar arrows cause movements of the page that
are much too large to allow accurate positioning of the drawing in the
window. Zooming doesn't solve the problem. Fundamentally the drawing window
is roughly 3 times the size of my page in both height and width. My
question is: how can I programmatically make the size of the drawing
control's window smaller, so that my pages fill more of the window? I have
tried using the window's SetWindowRect method, but I get an error message
"The operation cannot be performed while doing in-place editing". Is there
some scale-setting method to make my page fill more than 1/9 of the area of
the window?
runtime, but the control's drawing window is so much larger than the pages
(5" x 10") I am creating that scroll bar behavior is very undesirable.
Namely, all clicks on the scroll-bar arrows cause movements of the page that
are much too large to allow accurate positioning of the drawing in the
window. Zooming doesn't solve the problem. Fundamentally the drawing window
is roughly 3 times the size of my page in both height and width. My
question is: how can I programmatically make the size of the drawing
control's window smaller, so that my pages fill more of the window? I have
tried using the window's SetWindowRect method, but I get an error message
"The operation cannot be performed while doing in-place editing". Is there
some scale-setting method to make my page fill more than 1/9 of the area of
the window?