jdk/src/windows/native/sun/windows/awt_Frame.h
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 8516 3406d5bc0ae2
child 9481 fd8eab58a220
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8516
diff changeset
     2
 * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3086
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3086
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3086
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3086
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3086
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef AWT_FRAME_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define AWT_FRAME_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "awt_Window.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#include "awt_MenuBar.h" //add for multifont
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#include "awt_Toolkit.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#include "Hashtable.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#include "java_awt_Frame.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#include "sun_awt_windows_WFramePeer.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
/************************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * AwtFrame class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#define AWT_FRAME_WINDOW_CLASS_NAME TEXT("SunAwtFrame")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
class AwtFrame : public AwtWindow {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
public:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    enum FrameExecIds {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        FRAME_SETMENUBAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
2453
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    51
    /* java.awt.Frame fields and method IDs */
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    52
    static jfieldID undecoratedID;
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    53
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    54
    /* sun.awt.windows.WEmbeddedFrame fields and method IDs */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    static jfieldID handleID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
2453
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    57
    static jmethodID setExtendedStateMID;
35e5fab82613 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents: 2
diff changeset
    58
    static jmethodID getExtendedStateMID;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    /* method id for WEmbeddedFrame.requestActivate() method */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    static jmethodID activateEmbeddingTopLevelMID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    AwtFrame();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    virtual ~AwtFrame();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    virtual void Dispose();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    virtual LPCTSTR GetClassName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /* Create a new AwtFrame.  This must be run on the main thread. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    static AwtFrame* Create(jobject self, jobject parent);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    /* Returns whether this frame is embedded in an external native frame. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    INLINE BOOL IsEmbeddedFrame() { return m_isEmbedded; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    INLINE BOOL IsSimpleWindow() { return FALSE; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    /* Returns whether this window is in iconified state. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    INLINE BOOL isIconic() { return m_iconic; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    INLINE void setIconic(BOOL b) { m_iconic = b; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    /* Returns whether this window is in zoomed state. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    INLINE BOOL isZoomed() { return m_zoomed; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    INLINE void setZoomed(BOOL b) { m_zoomed = b; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    void SendWindowStateEvent(int oldState, int newState);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    void Show();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    INLINE void DrawMenuBar() { VERIFY(::DrawMenuBar(GetHWnd())); }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    virtual void DoUpdateIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    virtual HICON GetEffectiveIcon(int iconType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    /*for WmDrawItem and WmMeasureItem method */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    AwtMenuBar* GetMenuBar();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    void SetMenuBar(AwtMenuBar*);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
8516
3406d5bc0ae2 6826397: PIT : Frame System Menu is not seen for when ALT + Space Bar is pressed in jdk7 b55 build.
dcherepanov
parents: 5506
diff changeset
    99
    virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
3406d5bc0ae2 6826397: PIT : Frame System Menu is not seen for when ALT + Space Bar is pressed in jdk7 b55 build.
dcherepanov
parents: 5506
diff changeset
   100
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    MsgRouting WmGetMinMaxInfo(LPMINMAXINFO lpmmi);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    MsgRouting WmSize(UINT type, int w, int h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    MsgRouting WmActivate(UINT nState, BOOL fMinimized, HWND opposite);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    MsgRouting WmDrawItem(UINT ctrlId, DRAWITEMSTRUCT& drawInfo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    MsgRouting WmMeasureItem(UINT ctrlId, MEASUREITEMSTRUCT& measureInfo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    MsgRouting WmEnterMenuLoop(BOOL isTrackPopupMenu);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    MsgRouting WmExitMenuLoop(BOOL isTrackPopupMenu);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    MsgRouting WmMouseUp(UINT flags, int x, int y, int button);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    MsgRouting WmMouseMove(UINT flags, int x, int y);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    MsgRouting WmNcMouseDown(WPARAM hitTest, int x, int y, int button);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    MsgRouting WmNcMouseUp(WPARAM hitTest, int x, int y, int button);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    MsgRouting WmGetIcon(WPARAM iconType, LRESULT& retVal);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    MsgRouting WmShowWindow(BOOL show, UINT status);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    virtual MsgRouting WmSysCommand(UINT uCmdType, int xPos, int yPos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    LRESULT WinThreadExecProc(ExecuteArgs * args);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    INLINE BOOL IsUndecorated() { return m_isUndecorated; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    INLINE HWND GetProxyFocusOwner() {
8516
3406d5bc0ae2 6826397: PIT : Frame System Menu is not seen for when ALT + Space Bar is pressed in jdk7 b55 build.
dcherepanov
parents: 5506
diff changeset
   122
        return GetHWnd();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    void SetMaximizedBounds(int x, int y, int w, int h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    void ClearMaximizedBounds();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    // returns true if the frame is inputmethod window
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    INLINE BOOL isInputMethodWindow() { return m_isInputMethodWindow; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    // adjusts the IME candidate window position if needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    void AdjustCandidateWindowPos();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    // invoked on Toolkit thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    static jobject _GetBoundsPrivate(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    // some methods called on Toolkit thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    static void _SetState(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    static jint _GetState(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    static void _SetMaximizedBounds(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    static void _ClearMaximizedBounds(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    static void _SetMenuBar(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    static void _SetIMMOption(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    static void _SynthesizeWmActivate(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    static void _NotifyModalBlocked(void *param);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    virtual void Reshape(int x, int y, int width, int height);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
2464
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   148
    virtual BOOL AwtSetActiveWindow(BOOL isMouseEventCause = FALSE, UINT hittest = HTCLIENT);
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   149
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   150
    void CheckRetainActualFocusedWindow(HWND activatedOpositeHWnd);
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   151
    BOOL CheckActivateActualFocusedWindow(HWND deactivatedOpositeHWnd);
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   152
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   153
    INLINE HWND GetLastProxiedFocusOwner() { return m_lastProxiedFocusOwner; }
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   154
    INLINE void SetLastProxiedFocusOwner(HWND hwnd) { m_lastProxiedFocusOwner = hwnd; }
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   155
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
protected:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    /* The frame is undecorated. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    BOOL m_isUndecorated;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
private:
8516
3406d5bc0ae2 6826397: PIT : Frame System Menu is not seen for when ALT + Space Bar is pressed in jdk7 b55 build.
dcherepanov
parents: 5506
diff changeset
   161
    LRESULT ProxyWindowProc(UINT message, WPARAM wParam, LPARAM lParam, MsgRouting &mr);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    /* The frame's embedding parent (if any) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    HWND m_parentWnd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    /* The frame's menubar. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    AwtMenuBar* menuBar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    /* The frame is an EmbeddedFrame. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    BOOL m_isEmbedded;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    /* used so that calls to ::MoveWindow in SetMenuBar don't propogate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
       because they are immediately followed by calls to Component.resize */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    BOOL m_ignoreWmSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /* tracks whether or not menu on this frame is dropped down */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    BOOL m_isMenuDropped;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /* The frame is an InputMethodWindow */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    BOOL m_isInputMethodWindow;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
2464
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   182
    /* Retains the last/current sm_focusOwner proxied. Actually, it should be
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   183
     * a component of an owned window last/currently active. */
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   184
    HWND m_lastProxiedFocusOwner;
3c6755bdc55f 6806217: implement synthetic focus model for MS Windows
ant
parents: 2453
diff changeset
   185
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * Fix for 4823903.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * Retains a focus proxied window to set the focus correctly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * when its owner get activated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    AwtWindow *m_actualFocusedWindow;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    /* The original, default WndProc for m_proxyFocusOwner. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    WNDPROC m_proxyDefWindowProc;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    BOOL m_iconic;          /* are we in an iconic state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    BOOL m_zoomed;          /* are we in a zoomed state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    /* whether WmSize() must unconditionally reset zoomed state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    BOOL m_forceResetZoomed;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    BOOL  m_maxBoundsSet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    POINT m_maxPos;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    POINT m_maxSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    BOOL isInManualMoveOrSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    WPARAM grabbedHitTest;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    POINT savedMousePos;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * Hashtable<Thread, BlockedThreadStruct> - a table that contains all the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * information about non-toolkit threads with modal blocked embedded
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * frames. This information includes: number of blocked embedded frames
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * created on the the thread, and mouse and modal hooks installed for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * that thread. For every thread each hook is installed only once
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    static Hashtable sm_BlockedThreads;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
#endif /* AWT_FRAME_H */