NULL,
if the history should be disabled.
FALSE - the dialog item specified in Param1 does not support history lists.TRUE - the history has been assigned successfully.
| Control | Description |
|---|---|
| DI_EDIT | edit line |
| DI_FIXEDIT | fixed-size input field |
This example sets history and empties edit line:
...
else if(Msg == MAM_ARCSWITCHES)
{
static char SwHistoryName[NM];
FSF.sprintf(SwHistoryName,"ArcSwitches\\%s",pdd->ArcFormat);
Info.SendDlgMessage(hDlg,DM_SETHISTORY,4,(LONG_PTR)SwHistoryName);
Info.SendDlgMessage(hDlg,DM_SETTEXTPTR,4,(LONG_PTR)"");
}
...
In order to make FAR substitute the first line from keys histiry the code should be rewritten in the following way:
...
else if(Msg == MAM_ARCSWITCHES)
{
static char SwHistoryName[NM];
FSF.sprintf(SwHistoryName,"ArcSwitches\\%s",pdd->ArcFormat);
Info.SendDlgMessage(hDlg,DM_SETTEXTPTR,4,(LONG_PTR)"");
Info.SendDlgMessage(hDlg,DM_SETHISTORY,4,(LONG_PTR)SwHistoryName);
}
...
The edit line is being emptied and the item history is set after.