summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/capplicationwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/nxwm/src/capplicationwindow.cxx')
-rw-r--r--NxWidgets/nxwm/src/capplicationwindow.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/NxWidgets/nxwm/src/capplicationwindow.cxx b/NxWidgets/nxwm/src/capplicationwindow.cxx
index 5cf172ea6..65de1b1a4 100644
--- a/NxWidgets/nxwm/src/capplicationwindow.cxx
+++ b/NxWidgets/nxwm/src/capplicationwindow.cxx
@@ -47,6 +47,7 @@
#include "nxwmconfig.hxx"
#include "nxwmglyphs.hxx"
+#include "cwindowmessenger.hxx"
#include "capplicationwindow.hxx"
/********************************************************************************************
@@ -152,15 +153,15 @@ CApplicationWindow::~CApplicationWindow(void)
bool CApplicationWindow::open(void)
{
- // Create a widget control for the tool bar
+ // Create the widget control (with the window messenger) using the default style
- NXWidgets::CWidgetControl *control = new NXWidgets::CWidgetControl();
+ CWindowMessenger *control = new CWindowMessenger();
if (!control)
{
return false;
}
- // Open the toolbar
+ // Open the toolbar using the widget control
m_toolbar = m_window->openToolbar(CONFIG_NXWM_TOOLBAR_HEIGHT, control);
if (!m_toolbar)