CNiKnob::ExportStyle

CNi

Class
CNiKnob::
ExportStyle()
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: CreateControlNext page: GetClsid    
Public Function Declared in:
NiKnob.h

'Declaration' icon -- Shortcut to top of page. Declaration

void ExportStyle(
    LPCTSTR fileName);

'Description' icon -- Shortcut to top of page. Description

Exports the style of the control to a file.

Notes:

1. A style is the complete current state of a control. For example, on a CNiKnob control, the current values of pointers, all colors, all fonts, and all imported images are examples of a current state that is saved as a style.

2. Use ExportStyle to save the style of a control after you have configured it. For example, if you often create a new CNiKnob control and set properties such as tick colors, value pairs, and arc angles, you can save the style of a knob once you have configured it. Then, when you want to create a knob of the same style, create a new knob, access the property pages, and import the exported style.

3. You can import or export a style from the property page or you can import it or export it programmatically using ImportStyle or ExportStyle.

Shortcut to top of page. Parameters

LPCTSTR fileName

The name of the style file to save.

'See Also' icon -- Shortcut to top of page. See Also