+ //don't show 3d border and enable themes.
+ pInfo->dwFlags = pInfo->dwFlags | DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_THEME;
+ return S_OK;
+}
+
+HRESULT DocHostUIHandler::ShowUI(DWORD dwID,
+ IOleInPlaceActiveObject *pActiveObject,
+ IOleCommandTarget *pCommandTarget,
+ IOleInPlaceFrame *pFrame,
+ IOleInPlaceUIWindow *pDoc)
+{
+ wxUnusedVar(dwID);
+ wxUnusedVar(pActiveObject);
+ wxUnusedVar(pCommandTarget);
+ wxUnusedVar(pFrame);
+ wxUnusedVar(pDoc);
+ return S_FALSE;
+}
+
+HRESULT DocHostUIHandler::HideUI(void)
+{
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::UpdateUI(void)
+{
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::EnableModeless(BOOL fEnable)
+{
+ wxUnusedVar(fEnable);
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::OnDocWindowActivate(BOOL fActivate)
+{
+ wxUnusedVar(fActivate);
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::OnFrameWindowActivate(BOOL fActivate)
+{
+ wxUnusedVar(fActivate);
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::ResizeBorder(LPCRECT prcBorder,
+ IOleInPlaceUIWindow *pUIWindow,
+ BOOL fFrameWindow)
+{
+ wxUnusedVar(prcBorder);
+ wxUnusedVar(pUIWindow);
+ wxUnusedVar(fFrameWindow);
+ return E_NOTIMPL;
+}
+
+HRESULT DocHostUIHandler::TranslateAccelerator(LPMSG lpMsg,
+ const GUID *pguidCmdGroup,
+ DWORD nCmdID)
+{
+ if(lpMsg && lpMsg->message == WM_KEYDOWN)