Chord finder in wxWidgets