Partager via


CPropertySheet::OnInitDialog

Overrides to augment property sheet initialization.

virtual BOOL OnInitDialog( );

Return Value

Specifies whether the application has set the input focus to one of the controls in the property sheet. If OnInitDialog returns nonzero, Windows sets the input focus to the first control in the property sheet. The application can return 0 only if it has explicitly set the input focus to one of the controls in the property sheet.

Remarks

This member function is called in response to the WM_INITDIALOG message. This message is sent to the property sheet during the Create or DoModal calls, which occur immediately before the property sheet is displayed.

Override this member function if you need to perform special processing when the property sheet is initialized. In the overridden version, first call the base class OnInitDialog but disregard its return value. You will normally return TRUE from your overridden member function.

You do not need a message-map entry for this member function.

Requirements

Header: afxdlgs.h

See Also

Reference

CPropertySheet Class

Hierarchy Chart

CDialog::OnInitDialog