A SftMask control is composed of several areas. Understanding the areas makes it easier to choose which fields on SFTMASK_CONTROL to set for a given effect. The HitTest function reports which area is at a given location (see SFTMASK_AREA Constants).
When iUseThemes is enabled, Windows paints the edit field frame; the control draws contents, caption and buttons. See Using Themes.
Theme-driven chrome is suppressed. The control and all its popup windows use a dark palette (dark mode) or the user's system colors (high contrast). See Dark Mode and High Contrast.
See Also HitTest | SFTMASK_AREA Constants | SFTMASK_CONTROL