How can I change the text on a property sheet APPLY button

╄→гoц情女王★ 提交于 2019-12-25 03:20:36

问题


I'd like to change the text on a property sheet APPLY button but I don't know the control's ID or HWND. I do have the property sheet's HWND. Any ideas?


回答1:


I found a couple of instances where folks included the following defines...

#define IDD_APPLYNOW 0x3021
#define IDD_DLGFRAME 0x3022
#define IDD_BACK 0x3023
#define IDD_NEXT 0x3024
#define IDD_FINISH 0x3025
#define IDD_DIVIDER 0x3026
#define IDD_TOPDIVIDER 0x3027

Using IDD_APPLYNOW per above I was able to change the text on the button,

SetDlgItemText (hwndPS,0x3021,"Validate");

Don't have much of an idea what the other symbols might be; look like some are for wizard property sheets.



来源:https://stackoverflow.com/questions/6696674/how-can-i-change-the-text-on-a-property-sheet-apply-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!