CGXGridParam::WriteToFile
void WriteToFile(LPCTSTR lpszFileName) const;
lpszFileName
Points to a zero-terminated string with the file name.
Remarks
Writes the parameter object and all its object members to a layout file.
A possible usage for this function is if you have a very time-consuming initialization of the grid. With this function, you can initialize the grid layout once and save it to a file. The next time your application is started and the grid needs to be reinitialized, you can load the layout file instead with the CreateFromFile method.
WriteToFile and CreateFromFile work with all CGXGridParam derivatives. All data will be serialized to or from the given file with the Serialize function.