How to make ListView items look like Microsoft supplied in WM 6.5.3?

alt text http://i31.tinypic.com/2iw52dl.png

See the screenshot above. The left side is WM 6, and the right side is WM 6.5.3. 6.5.3 has an automatic layout mechanism in which there are all the controls to make them easier to read. My documentation says the following:

By default, auto-linking is disabled for third-party applications. However. application developers can enable this feature by setting the following style flag in their application: DS_EX_AUTOTOUCHLAYOUT (0x00200000L). When this option is enabled, the auto-layout engine automatically sets a style flag for each control so that the application supports finger features.

The DS_EX_AUTOTOUCHLAYOUT flag is defined in my 6.5.3 DTK headers:

#define DS_EX_AUTOTOUCHLAYOUT   0x01000000L

(Note that the meaning of the document and the title are different)

But no matter how I try to use this flag with forms (custom window class) or dialog boxes (DIALOG window class) from native or managed code, I just can't look at the right side above for my ListView elements. I get only the usual thin (in height) solid background elements.

I looked at 10 or so MS applications in the emulator using Remote Spy, and some of them were made by the owner, but not even the majority, so this cannot be the cause of surprising looks. I can not find any other consistent pattern when viewing the applications supplied by MS in Remote Spy.

, MS, ?

!

+3
1

"" . LVM_SETEXTENDEDLISTVIEWSTYLE LVS_EX_THEME!

ListView WM 6.5

+3

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


All Articles