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);
'Development > Windows Driver' 카테고리의 다른 글
[Windows Driver] Windows 10 32bit GetPrinterDriverDirectory Error 1726 (0) | 2023.01.27 |
---|---|
[Windows Driver] 드라이버 교차 인증 사인 방법 How to sign Windows Driver (2) | 2023.01.12 |
error C2220 컴파일 오류 (0) | 2021.11.11 |
WDK 설치 및 빌드 방법 (Console) (0) | 2021.11.11 |
댓글