共用方式為


CTaskDialog::GetCommonButtonId

Converts one of the common button types associated with the CTaskDialog Class to a standard Windows button.

int GetCommonButtonId(
   int nFlag
);

Parameters

  • [in] nFlag
    The common button type associated with the CTaskDialog class.

Return Value

The value of the corresponding standard Windows button. If there is no corresponding Windows button, the method returns 0.

Requirements

Header: afxtaskdialog.h

See Also

Reference

CTaskDialog Class

Hierarchy Chart

CTaskDialog::GetCommonButtonFlag

CTaskDialog::GetCommonButtonCount