Retrieve the Graph Export or Copy Page bounding box
BOOL GetExportRect( RECT * pRect, BOOL bIgnoreMarginOffsets )
Returns TRUE as long as pRect is provided.
//This example assums your project's active page is a graph void GetExportRect_ex() { GraphPage gp = Project.Pages(); if(!gp) return; GraphObject go = create_rect_object( gp.Layers() ); RECT rect; gp.GetExportRect(&rect, false); go.Left = rect.left; go.Top = rect.top; go.Height = rect.bottom - rect.top; go.Width = rect.right - rect.left; }
origin.h