quote:
Originally posted by couturier
Origin Ver. and Service Release (Select Help-->About Origin): 220b
Operating System:win10 64
I want to position and size a wks into workspace.
I'm currently using
void move_size_wks(Worksheet wks)
{
Window win;
Page pb = wks.GetPage();
win = pb.GetWindow();
RECT rect1 = {5, 5, 800, 885};
win.MoveWindow(&rect1);
}
This will size the wks to perfect dimensions according to my own screen resolution.
Now, what about other screen sizes, expecially high resolution ?
I could adapt the numbers depending on GetSystemMetrics() but how can I deal with windows' zooming factor ?
See if this works for you:
bool check_convert_rect_with_DPI(Window& wnd, RECT& rect, bool bForHTMLDlg)
Find it in analysis_utils.c.
It calls
double okutil_get_DPI_scale_factor(int nIndex)
------------------------------------------
Be The Change
You Want To See
In The World
------------------------------------------