The MFC dialog box at the top of the tablet 10 view window

We create a dialog box to display information, this dialog is called by the application, which runs in the background on the local (host machine) when receiving instructions from a remote machine. This works fine in Windows 10 when running in normal mode. But we do not see a dialog when the Windows 10 OS switches to tablet mode, but is in the background.

So far, we have tried the following:

  • creating an application using "UIAccess = true"
  • SetWindowLong (m_hWnd, GWL_STYLE, GetWindowLong (m_hWnd, GWL_STYLE) | WS_MINIMIZEBOX);

    SetWindowLong (m_hWnd, GWL_STYLE, GetWindowLong (m_hWnd, GWL_STYLE) and ~ WS_MAXIMIZEBOX);

    SetWindowPos (m_hWnd, HWND_TOPMOST, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE);

Any suggestions.

+4
source share

Source: https://habr.com/ru/post/1693866/


All Articles