GetColInfo
Update the control
BOOL GetColInfo( int nCol, int & nType, int & nDesignation )
TRUE for success.
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)); }
Control.h