Set one of the layer in the given page to be the active layer
bool page_set_active_layer( Page & pg, int nLayer, bool bActiveLayerOnly = true )
TRUE if pg is the active window and nLayer is >=0 and less then the total number of layers in the page
EX1
void page_set_active_layer_ex() { Worksheet wks=Project.ActiveLayer(); if(page_set_active_layer(wks.GetPage(),wks.GetIndex()+1)) printf("Active layer have been set to layer %s",Project.ActiveLayer().GetName()); }
origin.h