comparison src/windows/native/sun/windows/awt_Component.h @ 1095:d0b6e69791c8

6633275: Need to support shaped/translucent windows Summary: forward-port from 6u14, no public API is introduced Reviewed-by: anthony, dcherepanov
author art
date Wed, 11 Feb 2009 17:07:06 +0300
parents 3b9a288d7ddb
children ae27b7949714
comparison
equal deleted inserted replaced
9:8c4638c8e2b3 10:3aff46979c8e
1 /* 1 /*
2 * Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this 7 * published by the Free Software Foundation. Sun designates this
432 virtual BOOL InheritsNativeMouseWheelBehavior(); 432 virtual BOOL InheritsNativeMouseWheelBehavior();
433 433
434 /* Functions for MouseWheel support on Windows95 434 /* Functions for MouseWheel support on Windows95
435 * These should only be called if running on 95 435 * These should only be called if running on 95
436 */ 436 */
437 static void Wheel95Init();
438 INLINE static UINT Wheel95GetMsg() {return sm_95WheelMessage;}
439 static UINT Wheel95GetScrLines();
440 437
441 /* Determines whether the component is obscured by another window */ 438 /* Determines whether the component is obscured by another window */
442 // Called on Toolkit thread 439 // Called on Toolkit thread
443 static jboolean _IsObscured(void *param); 440 static jboolean _IsObscured(void *param);
444 441
713 static HWND sm_realFocusOpposite; 710 static HWND sm_realFocusOpposite;
714 711
715 virtual void SetDragCapture(UINT flags); 712 virtual void SetDragCapture(UINT flags);
716 virtual void ReleaseDragCapture(UINT flags); 713 virtual void ReleaseDragCapture(UINT flags);
717 714
718 // 95 support for mouse wheel 715 //These functions are overridden in AwtWindow to handle non-opaque windows.
719 static UINT sm_95WheelMessage; 716 virtual void FillBackground(HDC hMemoryDC, SIZE &size);
720 static UINT sm_95WheelSupport; 717 virtual void FillAlpha(void *bitmapBits, SIZE &size, BYTE alpha);
721 718
722 private: 719 private:
723 /* A bitmask keeps the button's numbers as MK_LBUTTON, MK_MBUTTON, MK_RBUTTON 720 /* A bitmask keeps the button's numbers as MK_LBUTTON, MK_MBUTTON, MK_RBUTTON
724 * which are allowed to 721 * which are allowed to
725 * generate the CLICK event after the RELEASE has happened. 722 * generate the CLICK event after the RELEASE has happened.