From: Steve Brokenshire Date: Wed, 18 Jan 2017 00:09:34 +0000 (+0000) Subject: frmSearch: Added window icon X-Git-Tag: release-0.18~32 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=d078d1fbc762fbb62bd08fe80dfe726feb078543;p=xestiaab%2F.git frmSearch: Added window icon --- diff --git a/source/bitmaps/bigimgs/searchicon.png b/source/bitmaps/bigimgs/searchicon.png new file mode 100644 index 0000000..ebf2742 Binary files /dev/null and b/source/bitmaps/bigimgs/searchicon.png differ diff --git a/source/search/frmSearch.cpp b/source/search/frmSearch.cpp index 3ef2a0d..b2d1ac3 100644 --- a/source/search/frmSearch.cpp +++ b/source/search/frmSearch.cpp @@ -1,6 +1,6 @@ // frmSearch.cpp - Search form. // -// (c) 2012-2015 Xestia Software Development. +// (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Address Book. // @@ -59,6 +59,15 @@ frmSearch::frmSearch( wxWindow* parent ) frmSearchADT( parent ) { + // Setup the application icon. + + wxMemoryInputStream istream(bigimgs_searchicon_png, sizeof(bigimgs_searchicon_png)); + wxImage bigimgs_searchiconi(istream, wxBITMAP_TYPE_PNG); + wxBitmap searchiconbmp(bigimgs_searchiconi, -1); + wxIcon searchicon; + searchicon.CopyFromBitmap(searchiconbmp); + this->SetIcon(searchicon); + // Setup the search window. XABSearchPanel *InitPanel = new XABSearchPanel( tabSearch ); diff --git a/source/search/frmSearch.h b/source/search/frmSearch.h index 63abb01..088818f 100644 --- a/source/search/frmSearch.h +++ b/source/search/frmSearch.h @@ -1,6 +1,6 @@ // frmSearch.h - Search form header. // -// (c) 2012-2015 Xestia Software Development. +// (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Address Book. // @@ -28,6 +28,7 @@ Subclass of frmSearchADT, which is generated by wxFormBuilder. #include "../vcard/vcard.h" #include "../widgets/XABContactMenu.h" #include "XABSearchPanel.h" +#include "../bitmaps.h" #include #include