Tablet mode and window maximation in MFC-Apps

Michael Sabo 26 Reputation points
2021-08-11T13:20:13.92+00:00

If I switch into tablet mode (manually) and goto into the task switch view, all applications already maximized, but not the sample application (see red rectangle).
122329-task-switch-screen.jpg

The question is, is this done by programmer or does this do windows automatically?
I can't believe that every "old" application was modified and optimized for tablet mode. But you can see notepad is also maximed. It looks, that Windows just automatically maximize every application, except mine. ;)

Of course, I can do a maximation self in code after event WM_SETTINGSCHANGED. Then the application is also shown maximized in the preview. But then I have other small issues.
Most importantly, there are several ways to maximize a window. The question is which one to prefer.

You can use this sample.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,761 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 45,701 Reputation points
    2021-08-12T09:05:15.337+00:00

    I think you are misinterpreting the image in Task View. For example, in the following Before/After screen shots you can easily see that Notepad was not maximized in Task View. Had it been maximized all of the lines would have been displayed with a ton of empty space below them. So it seems that Win32 Desktop application windows are not automatically maximized when entering the task view in Tablet mode.

    Before
    122656-before-tablet.png

    After
    122628-after-tablet.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.