【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.36.8 WorksheetControl::SetColDesignations
Contents
Description
Used to apply designation pattern to entire worksheet control
Syntax
BOOL SetColDesignations( LPCSTR lpcszDesignations, BOOL bRepeat = TRUE )
Parameters
- lpcszDesignations
- bRepeat
Return
TRUE for success. Otherwise FALSE;
Examples
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"); }
Remark
See Also
Header to Include
Control.h