+#ifdef __WXWINCE__
+WXHWND wxFrame::CreateCommandBar()
+{
+ if (m_commandBar)
+ return m_commandBar;
+
+ m_commandBar = (WXHWND) CommandBar_Create(wxGetInstance(), GetHwnd(), NewControlId());
+ if (!m_commandBar)
+ {
+ wxFAIL_MSG( _T("failed to create commandbar") );
+ return 0;
+ }
+ return m_commandBar;
+}
+
+void wxFrame::RemoveCommandBar()
+{
+ if (m_commandBar)
+ {
+ ::DestroyWindow((HWND) m_commandBar);
+ m_commandBar = NULL;
+ }
+}
+#endif
+