Add some missing methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-12-28 23:06:51 +00:00
parent bad606fa33
commit 06519806e3
2 changed files with 46 additions and 0 deletions

View File

@@ -147,6 +147,9 @@ static void TranslateKbdEventToMouse( wxWindow* pWin
//
static inline bool IsShiftDown() { return (::WinGetKeyState(HWND_DESKTOP, VK_SHIFT) & 0x8000) != 0; }
static inline bool IsCtrlDown() { return (::WinGetKeyState(HWND_DESKTOP, VK_CTRL) & 0x8000) != 0; }
static wxWindow* gpWinBeingCreated = NULL;
// ---------------------------------------------------------------------------
// event tables
// ---------------------------------------------------------------------------
@@ -1305,6 +1308,27 @@ void wxWindowOS2::Clear()
vDc.Clear();
} // end of wxWindowOS2::Clear
void wxWindowOS2::Update()
{
::WinUpdateWindow(GetHwnd());
} // end of wxWindowOS2::Update
void wxWindowOS2::Freeze()
{
::WinSendMsg(GetHwnd(), WM_VRNDISABLED, (MPARAM)0, (MPARAM)0);
} // end of wxWindowOS2::Freeze
void wxWindowOS2::Thaw()
{
::WinSendMsg(GetHwnd(), WM_VRNENABLED, (MPARAM)TRUE, (MPARAM)0);
//
// We need to refresh everything or otherwise he invalidated area is not
// repainted.
//
Refresh();
} // end of wxWindowOS2::Thaw
void wxWindowOS2::Refresh(
bool bEraseBack
, const wxRect* pRect
@@ -4105,6 +4129,18 @@ int wxWindowOS2::GetOS2ParentHeight(
return(0L);
} // end of wxWindowOS2::GetOS2ParentHeight
wxWindowCreationHook::wxWindowCreationHook(
wxWindow* pWinBeingCreated
)
{
gpWinBeingCreated = pWinBeingCreated;
} // end of wxWindowCreationHook::wxWindowCreationHook
wxWindowCreationHook::~wxWindowCreationHook()
{
gpWinBeingCreated = NULL;
} // end of wxWindowCreationHook::~wxWindowCreationHook
// ===========================================================================
// global functions
// ===========================================================================