win: Set window icon

This commit is contained in:
Alexander Kojevnikov 2012-09-03 20:47:39 -07:00
parent a318529ecd
commit 9c736788ed
3 changed files with 10 additions and 2 deletions

2
dist/win/bundle.sh vendored
View File

@ -28,7 +28,7 @@ LDFLAGS="dist/win/spek.res" ./configure \
--with-wx-config="$WX_CONFIG" \
--prefix=${PWD}/dist/win/build && \
"$MAKE" && \
"$MAKE" install
"$MAKE" install || exit 1
"$STRIP" dist/win/build/bin/spek.exe
"$UPX" dist/win/build/bin/spek.exe

2
dist/win/spek.rc vendored
View File

@ -1 +1 @@
0 ICON "spek.ico"
aaaa ICON "spek.ico"

View File

@ -47,6 +47,14 @@ wxIconBundle SpekArtProvider::CreateIconBundle(const wxArtID& id, const wxArtCli
if (id == ART_SPEK) {
#ifdef OS_UNIX
return wxArtProvider::GetIconBundle(wxT("spek"), client);
#endif
#ifdef OS_WIN
wxIconBundle bundle;
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 16, 16));
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 24, 24));
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 32, 32));
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 48, 48));
return bundle;
#endif
}
return wxNullIconBundle;