[Windows Driver] Property Sheet Apply Button 처리
https://docs.microsoft.com/en-us/windows/win32/controls/property-sheets#ok-cancel-and-apply-buttons
About Property Sheets - Win32 apps
A property sheet is a window that allows the user to view and edit the properties of an item.
docs.microsoft.com
Property Sheet 에서 Apply Button 을 활성화 하기 위해서는 아래 와 같은 처리를 수행해야 한다.
1. 값이 변경되었을 때 Apply 버튼을 활성화 시켜야 한다.
The Apply button is initially disabled when a page becomes active,
indicating that there are not yet any property changes to apply.
When the page receives input through one of its controls indicating that the user has edited a property,
the page must send the PSM_CHANGED message to the property sheet.
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
2. Apply 버튼이 적용되었을 때 비활성화 시켜야 한다.
If the user subsequently clicks the Apply or Cancel button,
the page must reinitialize its controls and then
send the PSM_UNCHANGED message to again disable the Apply button.
SendMessage(GetParent(hwndDlg), PSM_UNCHANGED, 0, 0);