wxPanel::GetCursor

void GetCursor(int *x, int *y)

Gets the current panel 'cursor' position, i.e. where the next panel item will be placed.