DN_INITDIALOG
The DN_INITDIALOG event is sent to the dialog callback function after all dialog items
are initialized, but before they are displayed.
Param1
The ID of the dialog item that will initially receive the keyboard focus.
Param2
Programmer specific data that was passed to the DialogEx - in the
Param parameter.
Return
TRUE - if dialog items were changed.
FALSE - no changes were made.
FALSE - no changes were made.
Remarks
In response to this event the dialog callback function initializes each dialog element to some
correct initial state. For example, it can fill a list item with elements that the user can later
view...
If changes were made but the dialog callback function returned FALSE, the changes will be discarded.
If changes were made but the dialog callback function returned FALSE, the changes will be discarded.
Example
case DN_INITDIALOG: struct FarDialogItem DialogItem; Info.SendDlgMessage(hDlg,DM_GETDLGITEM,75,(LONG_PTR)&DialogItem); if(DialogItem.ListItems->Items[0].Flags&LIF_SELECTED) Computer=Pl2; else ... return TRUE;
See also: