DTM_ENABLESHRINK

This message is sent by an application to command the HTML control to toggle the image shrink enable mode, or shrink mode. If shrink mode is enabled, the HTML control will shrink images as required to make the page fit the window.

At a Glance

Header file: Htmlctrl.h
Windows CE versions: 1.0 and later

Syntax

DTM_ENABLESHRINK wParam = 0,
lParam = (LPARAM)(BOOL) bEnableShrink;

Parameters

bEnableShrink

Boolean that indicates whether to enable shrink mode. If set to TRUE, shrink mode is enabled. If set to FALSE, shrink mode is not enabled.

Return Values

None.

Remarks

This message only affects graphic files that are too large to fit in the window. Usually, in this situation, part of the graphic extends beyond the right edge of the window and the horizontal scroll bar is displayed. Sending DTM_ENABLESHRINK with the lParam set to TRUE removes the horizontal scroll bar and redraws the page so it fits inside the window.