WM_COMMAND
 
WM_COMMAND can be sent to the parent window to set a new percentage value in Lister's title bar, or to check some menu items like fonts or word wrap mode.
 
Usage:
 
PostMessage(GetParent(ListWin),WM_COMMAND,MAKELONG(value,itemtype),(LPARAM)ListWin);
 
Description of parameters:
 
ListWin Hande to your list window created with ListLoad
 
value The new value, depending on what is passed in itemtype (see below).
 
itemtype Item to change in the framework (Lister) window. Can be one of the following:
itm_percent Set the percent value in the menu bar of the main Lister window.
itm_fontstyle Set the font style: set value to lcp_ansi, lcp_ascii, or lcp_variable.
itm_wrap Word wrap mode on or off. Set value to 1 for on or 0 for off.
itm_fit Fit image to screen on or off. Set value to 1 for on or 0 for off.
New in 1.6: Set to 2 for lcp_fittowindow and
to 3 for lcp_fitlargeronly (if 1, the user-chosen option is not changed)
itm_center New in 1.6: Center image on screen on or off. Set value to 1 for on or 0 for off.
itm_next New in TC 5.52: Switch to next file if multiple opened (e.g. after playing an mp3). The value of "value" MUST be 0!
 
Return value:
 
No value is returned by Lister, so you may use PostMessage() or SendMessage().
 
Notes:
 
The message can also be sent during ListLoad, even though Lister doesn't yet know the window handle of the list window! It sets a special flag to handle this. Do not send this message if you don't want to modify any of the values!