SetColDesignations
Used to apply designation pattern to entire worksheet control
BOOL SetColDesignations( LPCSTR lpcszDesignations, BOOL bRepeat = TRUE )
TRUE for success. Otherwise FALSE;
EX1
#include <Dialog.h> #define IDC_WORKSHEET 1001 // the following code will set column designations in worksheet control // 1st column - X // 2nd column - Y // 3rd column - label // 4th column - Y // 5rd column - label // pattern will repeat if worksheet control contains more than 5 columns // Assumes the current window is worksheet void WorksheetControl_SetColDesignations(Dialog& dlg) { Worksheet wks = Project.ActiveLayer(); string strWksName = wks.GetName(); WorksheetControl wc = dlg.GetItem(IDC_WORKSHEET); wc.Attach(strWksName); wc.SetColDesignations("XYLYL"); }
Control.h