- WXWORD pos, WXHWND control);
-
- // child control notifications
-#ifdef __WIN95__
- virtual bool PalmOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
-#endif // __WIN95__
-
- // owner-drawn controls need to process these messages
- virtual bool PalmOnDrawItem(int id, WXDRAWITEMSTRUCT *item);
- virtual bool PalmOnMeasureItem(int id, WXMEASUREITEMSTRUCT *item);
-
- // the rest are not virtual
- bool HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate);
- bool HandleInitDialog(WXHWND hWndFocus);
- bool HandleDestroy();
-
- bool HandlePaint();
- bool HandleEraseBkgnd(WXHDC pDC);
-
- bool HandleMinimize();
- bool HandleMaximize();
- bool HandleSize(int x, int y, WXUINT flag);
- bool HandleSizing(wxRect& rect);
- bool HandleGetMinMaxInfo(void *mmInfo);
-
- bool HandleShow(bool show, int status);
- bool HandleActivate(int flag, bool minimized, WXHWND activate);
-
- bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
-
- bool HandleCtlColor(WXHBRUSH *hBrush,
- WXHDC hdc,
- WXHWND hWnd,
- WXUINT nCtlColor,
- WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam);
-
- bool HandlePaletteChanged(WXHWND hWndPalChange);
- bool HandleQueryNewPalette();
- bool HandleSysColorChange();
- bool HandleDisplayChange();
- bool HandleCaptureChanged(WXHWND gainedCapture);
-
- bool HandleQueryEndSession(long logOff, bool *mayEnd);
- bool HandleEndSession(bool endSession, long logOff);
-
- bool HandleSetFocus(WXHWND wnd);
- bool HandleKillFocus(WXHWND wnd);
-
- bool HandleDropFiles(WXWPARAM wParam);
-
- bool HandleMouseEvent(WXUINT msg, int x, int y, WXUINT flags);
- bool HandleMouseMove(int x, int y, WXUINT flags);
- bool HandleMouseWheel(WXWPARAM wParam, WXLPARAM lParam);
-
- bool HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII = false);
- bool HandleKeyDown(WXWPARAM wParam, WXLPARAM lParam);
- bool HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam);
-#if wxUSE_ACCEL
- bool HandleHotKey(WXWPARAM wParam, WXLPARAM lParam);
-#endif
-
- bool HandleQueryDragIcon(WXHICON *hIcon);
-
- bool HandleSetCursor(WXHWND hWnd, short nHitTest, int mouseMsg);
-
- // Window procedure
- virtual WXLRESULT PalmWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
- // Calls an appropriate default window procedure
- virtual WXLRESULT PalmDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
- // message processing helpers
-
- // return false if the message shouldn't be translated/preprocessed but
- // dispatched normally
- virtual bool PalmShouldPreProcessMessage(WXMSG* pMsg);
-
- // return true if the message was preprocessed and shouldn't be dispatched
- virtual bool PalmProcessMessage(WXMSG* pMsg);
-
- // return true if the message was translated and shouldn't be dispatched
- virtual bool PalmTranslateMessage(WXMSG* pMsg);
-
- // called when the window is about to be destroyed
- virtual void PalmDestroyWindow();
-
- // this function should return the brush to paint the window background
- // with or 0 for the default brush
- virtual WXHBRUSH OnCtlColor(WXHDC hDC,
- WXHWND hWnd,
- WXUINT nCtlColor,
- WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam);
-
- // Responds to colour changes: passes event on to children.
- void OnSysColourChanged(wxSysColourChangedEvent& event);
-
- // initialize various fields of wxMouseEvent (common part of PalmOnMouseXXX)
- void InitMouseEvent(wxMouseEvent& event, int x, int y, WXUINT flags);
-
- // check if mouse is in the window
- bool IsMouseInWindow() const;