【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.36.5 WorksheetControl::GetColInfo
Contents
Description
Update the control
Syntax
BOOL GetColInfo( int nCol, int & nType, int & nDesignation )
Parameters
- nCol
- column index,
- int nType = the column type. it can be following constants defined in OC_const.h
- define OKCOLTYPE_NUMERIC 0
- define OKCOLTYPE_TEXT 1
- define OKCOLTYPE_TIME 2
- define OKCOLTYPE_DATE 3
- define OKCOLTYPE_MONTH 4
- define OKCOLTYPE_WEEKDAY 5
- define OKCOLTYPE_COLUMN 6
- define OKCOLTYPE_DATASET 7
- define OKCOLTYPE_DATASET_X 8
- define OKCOLTYPE_TEXT_NUMERIC 9
- define OKCOLTYPE_CATEGORICAL 0x000A
- int nDesignation = the column designation, it can be following values defined in OC_const.h
- enum
- {
- nType
- nDesignation
Return
TRUE for success.
Examples
EX1
#include <Dialog.h> #define IDC_WORKSHEET 1001 // Assumes the current window is worksheet void WorksheetControl_GetColInfo(Dialog& dlg) { Worksheet wks = Project.ActiveLayer(); string strWksName = wks.GetName(); WorksheetControl wc = dlg.GetItem(IDC_WORKSHEET); wc.Attach(strWksName); int nCol = 1; int nType; int nDesignation; ASSERT(wc.GetColInfo(nCol, nType, nDesignation)); }
Remark
See Also
Header to Include
Control.h