描述
使用时变化,因为最近的PSN_APPLY通知不能被取消.您可以使用此程序或明确PSM_CANCELTOCLOSE消息发送.
FreeBASIC 语法
#define PropSheet_CancelToClose(hDlg) |
参数
hDlg |
[in]属性表控件的句柄 |
返回值
无返回值.
备注
PSM_CANCELTOCLOSE禁用Cancel按钮和变化的OK按钮文字'关闭'.
大多数属性表等进行不可逆的变化,直到PSN_APPLY收到通知.然而,在某些情况下,属性表可以使不可逆转的变化的标准PSN_APPLY / PSN_RESET序列之外.一个例子是一个属性表包含一个Edit按钮是用来显示编辑属性一子对话盒.当用户点击OK提交更改的属性页,有几种选择.
· | It can record the changes, but wait until it receives a PSN_APPLY notification to apply them. This is the preferred approach. |
· | It can apply the changes immediately after exiting the subdialog box, but remember the original settings. Those settings can be used to restore the original state if a PSN_RESET notification is received. |
· | It can apply the changes immediately and not attempt to restore the original settings when it receives a PSN_RESET notification. This approach is not recommended, but may be necessary if the changes are too far-reaching for the other two options to be practical. |
对于第三个选项,应用程序应该发送一个PSM_CANCELTOCLOSE消息属性表.它向用户指示,与子对话框中所作的修改不能通过点击按钮Cancel逆转.
Note这消息不使用航空向导式的支持时(PSH_AEROWIZARD).
引用文件
Prsht.bi