AutoSize
Use for autosizing origin objects
BOOL AutoSize( DWORD dwCntrl = 0, DWORD lParam = 0, void * pVoid = NULL, BOOL bUndo = FALSE, void * pOpt = NULL )
TRUE if succeeds else FALSE.
EX1
void wks_fitsize_selection() { Worksheet wks = Project.ActiveLayer(); int iret = wks.AutoSize(AS_SELECTION); }
EX2
void wks_fitsize_range(int r1, int c1, int r2, int c2) { ORANGE rng; rng.r1 = r1; rng.c1 = c1; rng.r2 = r2; rng.c2 = c2; Worksheet wks = Project.ActiveLayer(); int iret = wks.AutoSize(AS_INVALIDATE, 0, NULL, FALSE, &rng); }
origin.h