729 static BOOL sm_suppressFocusAndActivation; 730 static BOOL sm_restoreFocusAndActivation; 731 732 /* 733 * The function sets the focus-restore flag ON/OFF. 734 * When the flag is ON, focus is restored immidiately after the proxy loses it. 735 * All focus messages are suppressed. It's also assumed that sm_focusedWindow and 736 * sm_focusOwner don't change after the flag is set ON and before it's set OFF. 737 */ 738 static INLINE void SetRestoreFocus(BOOL doSet) { 739 sm_suppressFocusAndActivation = doSet; 740 sm_restoreFocusAndActivation = doSet; 741 } 742 743 virtual void SetDragCapture(UINT flags); 744 virtual void ReleaseDragCapture(UINT flags); 745 746 virtual void FillBackground(HDC hMemoryDC, SIZE &size); 747 virtual void FillAlpha(void *bitmapBits, SIZE &size, BYTE alpha); 748 749 private: 750 /* A bitmask keeps the button's numbers as MK_LBUTTON, MK_MBUTTON, MK_RBUTTON 751 * which are allowed to 752 * generate the CLICK event after the RELEASE has happened. 753 * There are conditions that must be true for that sending CLICK event: 754 * 1) button was initially PRESSED 755 * 2) no movement or drag has happened until RELEASE 756 */ 757 UINT m_mouseButtonClickAllowed; 758 759 BOOL m_bSubclassed; 760 BOOL m_bPauseDestroy; 761 762 COLORREF m_colorForeground; 763 COLORREF m_colorBackground; 764 765 AwtPen* m_penForeground; 766 AwtBrush* m_brushBackground; 767 768 WNDPROC m_DefWindowProc; | 729 static BOOL sm_suppressFocusAndActivation; 730 static BOOL sm_restoreFocusAndActivation; 731 732 /* 733 * The function sets the focus-restore flag ON/OFF. 734 * When the flag is ON, focus is restored immidiately after the proxy loses it. 735 * All focus messages are suppressed. It's also assumed that sm_focusedWindow and 736 * sm_focusOwner don't change after the flag is set ON and before it's set OFF. 737 */ 738 static INLINE void SetRestoreFocus(BOOL doSet) { 739 sm_suppressFocusAndActivation = doSet; 740 sm_restoreFocusAndActivation = doSet; 741 } 742 743 virtual void SetDragCapture(UINT flags); 744 virtual void ReleaseDragCapture(UINT flags); 745 746 virtual void FillBackground(HDC hMemoryDC, SIZE &size); 747 virtual void FillAlpha(void *bitmapBits, SIZE &size, BYTE alpha); 748 749 int ScaleUpX(int x); 750 int ScaleUpY(int y); 751 int ScaleDownX(int x); 752 int ScaleDownY(int y); 753 754 private: 755 /* A bitmask keeps the button's numbers as MK_LBUTTON, MK_MBUTTON, MK_RBUTTON 756 * which are allowed to 757 * generate the CLICK event after the RELEASE has happened. 758 * There are conditions that must be true for that sending CLICK event: 759 * 1) button was initially PRESSED 760 * 2) no movement or drag has happened until RELEASE 761 */ 762 UINT m_mouseButtonClickAllowed; 763 764 BOOL m_bSubclassed; 765 BOOL m_bPauseDestroy; 766 767 COLORREF m_colorForeground; 768 COLORREF m_colorBackground; 769 770 AwtPen* m_penForeground; 771 AwtBrush* m_brushBackground; 772 773 WNDPROC m_DefWindowProc; |