Get the active layer number from the given page, if page is not the active window, then return -1
int page_active_layer_index( Page & pg )
0-offset layer number if given page is the active window, otherwise return -1
EX1
//For this example to run, make sure a graph page named "Graph1" exist in the project. void Run_page_active_layer_index() { GraphPage gp("Graph1"); int nIndex = page_active_layer_index(gp); }
origin.h