dainius
2014-06-12 11:29:06 UTC
Hello, I have a problem with wxDialog icon in the taskbar.
I'm using mfc wx sample with turned on flag START_WITH_MFC_WINDOW.
wxDialog run code:
HWND hParent = AfxGetApp()->GetMainWnd()->GetSafeHwnd();
wxWindow *pParent = new wxFrame;
pParent->SetHWND((WXHWND)hParent);
pParent->AdoptAttributesFromHWND();
wxDialog dlg(pParent, wxID_ANY, wxT("DLG"), wxDefaultPosition,
wxSize(600,730), wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
dlg.ShowModal();
And after this I get two icons in the taskbar: one for the sample
application, and the other one - for the wxDialog.
Question: how to remove wxDialog icon from the taskbar?
(Real application is in MFC. Only modal dialogs is created with wxDialog)
I'm using mfc wx sample with turned on flag START_WITH_MFC_WINDOW.
wxDialog run code:
HWND hParent = AfxGetApp()->GetMainWnd()->GetSafeHwnd();
wxWindow *pParent = new wxFrame;
pParent->SetHWND((WXHWND)hParent);
pParent->AdoptAttributesFromHWND();
wxDialog dlg(pParent, wxID_ANY, wxT("DLG"), wxDefaultPosition,
wxSize(600,730), wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
dlg.ShowModal();
And after this I get two icons in the taskbar: one for the sample
application, and the other one - for the wxDialog.
Question: how to remove wxDialog icon from the taskbar?
(Real application is in MFC. Only modal dialogs is created with wxDialog)
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users