Only register window message "TaskbarButtonCreated" when the first frame is created.
Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,8 +144,13 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
|
|
||||||
#if wxUSE_TASKBARBUTTON
|
#if wxUSE_TASKBARBUTTON
|
||||||
m_taskBarButton = NULL;
|
m_taskBarButton = NULL;
|
||||||
gs_msgTaskbarButtonCreated =
|
static bool s_registered = false;
|
||||||
::RegisterWindowMessage(wxT("TaskbarButtonCreated"));
|
if ( !s_registered )
|
||||||
|
{
|
||||||
|
gs_msgTaskbarButtonCreated =
|
||||||
|
::RegisterWindowMessage(wxT("TaskbarButtonCreated"));
|
||||||
|
s_registered = true;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user