VirtualBox

Changeset 59032 in vbox


Ignore:
Timestamp:
Dec 7, 2015 4:29:19 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104576
Message:

FE/Qt: Qt5 migration (part 31): Adjusting Windows native stuff to Qt5: No more implicit cast from WId to HWND.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r59031 r59032  
    32383238#if defined (Q_WS_WIN)
    32393239
    3240     if (IsIconic (aWId))
    3241         result &= !!ShowWindow (aWId, SW_RESTORE);
    3242     else if (!IsWindowVisible (aWId))
    3243         result &= !!ShowWindow (aWId, SW_SHOW);
    3244 
    3245     result &= !!SetForegroundWindow (aWId);
     3240    HWND handle = (HWND)aWId;
     3241
     3242    if (IsIconic (handle))
     3243        result &= !!ShowWindow (handle, SW_RESTORE);
     3244    else if (!IsWindowVisible (handle))
     3245        result &= !!ShowWindow (handle, SW_SHOW);
     3246
     3247    result &= !!SetForegroundWindow (handle);
    32463248
    32473249#elif defined (Q_WS_X11)
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r58943 r59032  
    848848#ifdef Q_WS_WIN
    849849                    if (!isAutoCaptureDisabled() && autoCaptureSetGlobally() &&
    850                         GetAncestor(m_views[theListOfViewIds[i]]->winId(), GA_ROOT) == GetForegroundWindow())
     850                        GetAncestor((HWND)m_views[theListOfViewIds[i]]->winId(), GA_ROOT) == GetForegroundWindow())
    851851#else /* Q_WS_WIN */
    852852                    if (!isAutoCaptureDisabled() && autoCaptureSetGlobally())
     
    10791079#ifdef Q_WS_WIN
    10801080                    if (!isAutoCaptureDisabled() && autoCaptureSetGlobally() &&
    1081                         GetAncestor(pWatchedView->winId(), GA_ROOT) == GetForegroundWindow())
     1081                        GetAncestor((HWND)pWatchedView->winId(), GA_ROOT) == GetForegroundWindow())
    10821082#else /* Q_WS_WIN */
    10831083                    if (!isAutoCaptureDisabled() && autoCaptureSetGlobally())
     
    12001200
    12011201    MSG message;
    1202     message.hwnd = m_views[m_iKeyboardHookViewIndex]->winId();
     1202    message.hwnd = (HWND)m_views[m_iKeyboardHookViewIndex]->winId();
    12031203    message.message = msg;
    12041204    message.wParam = event.vkCode;
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r58943 r59032  
    841841#ifdef Q_WS_WIN
    842842        /* Send pending WM_PAINT events: */
    843         ::UpdateWindow(m_viewports[uScreenId]->winId());
     843        ::UpdateWindow((HWND)m_viewports[uScreenId]->winId());
    844844#endif
    845845        mouse().PutMouseEvent(globalPos.x() - m_lastMousePos.x(),
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette