wxHyperTextWindow::GetCurrentSectionNumber

int GetCurrentSectionNumber(void)

Gets the number of the currently-displayed section, starting from 1. Zero is returned if there are no section markers.