How can I remove the icon located at the top left of my application?
I don't want it.
I see that it's not defined an empty icon to be used, we "only" have the following:
#define wxICON_WARNING 0x00000100
#define wxICON_ERROR 0x00000200
#define wxICON_QUESTION 0x00000400
#define wxICON_INFORMATION 0x00000800
#define wxICON_EXCLAMATION wxICON_WARNING
#define wxICON_HAND wxICON_ERROR
#define wxICON_STOP wxICON_ERROR
#define wxICON_ASTERISK wxICON_INFORMATION
So, I can't use the following two lines to get my aim
Code: Select all
wxIcon icon(wxICON(wxICON_ERROR)); this->SetIcon(icon);
defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN
I managed to remove the icon removing using these styles only (wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxCAPTION), but it's not what I want since I want to be able to close my wxFrame if needed.
The question I kindly want to ask you is: how can I solve it?