How to remove the focus rectangle from the bitmap button?

Printer-friendly versionPDF versionThe wxBitmapButton by default uses the wxBU_AUTODRAW style flag, remove this flag and pass 0 instead of this flag. This will remove the focus rectangle from the bitmap button when selected.