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@77596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7a1de0a65f
commit
85a85a947d
@ -144,8 +144,13 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
m_taskBarButton = NULL;
|
||||
gs_msgTaskbarButtonCreated =
|
||||
::RegisterWindowMessage(wxT("TaskbarButtonCreated"));
|
||||
static bool s_registered = false;
|
||||
if ( !s_registered )
|
||||
{
|
||||
gs_msgTaskbarButtonCreated =
|
||||
::RegisterWindowMessage(wxT("TaskbarButtonCreated"));
|
||||
s_registered = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user