X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c443296124e44dd6004dfec47c24be75b2d875d9..2035e10e83324c6925d12725b842768f6e2b00a2:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e0ca05bd88..9e92ac4db2 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -129,10 +129,6 @@ wxWindow *wxFindWinFromHandle(WXHWND hWnd); // mouse clicks static void TranslateKbdEventToMouse(wxWindow *win, int *x, int *y, WPARAM *flags); -// get the current state of SHIFT/CTRL keys -inline bool wxIsShiftDown() { return (GetKeyState(VK_SHIFT) & 0x100) != 0; } -inline bool wxIsCtrlDown() { return (GetKeyState(VK_CONTROL) & 0x100) != 0; } - // --------------------------------------------------------------------------- // event tables // --------------------------------------------------------------------------- @@ -369,6 +365,10 @@ bool wxWindow::Enable(bool enable) if ( hWnd ) ::EnableWindow(hWnd, (BOOL)enable); + // VZ: no, this is a bad idea: imagine that you have a dialog with some + // disabled controls and disable it - you really wouldn't like the + // disabled controls eb reenabled too when you reenable the dialog! +#if 0 wxWindowList::Node *node = GetChildren().GetFirst(); while ( node ) { @@ -377,6 +377,7 @@ bool wxWindow::Enable(bool enable) node = node->GetNext(); } +#endif // 0 return TRUE; }