How to add wxIcon to my frame application?

I looked through the entire network and cannot find a standard way to include wxIcon in my wxWidgets application that really works! I tried converting the icon to XPM and, including, that I also tried loading the bitmap, but everything I do seems to compile, but the icon never appears!

+3
source share
2 answers

If you are trying to do this on Windows, make sure the icon is 32x32 pixels. All other sizes were not displayed at all ...

+3
source

, ? , , .rc , :

mainicon ICON "myapp.ico"

, , - , , wxTopLevelWindow::SetIcon.

, , , ?

+1

Source: https://habr.com/ru/post/1721575/


All Articles