Trapping Property Sheet buttons messages |
Post Reply |
Author | |
mstj
Newbie Joined: 23 June 2020 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 25 June 2020 at 1:22pm |
(I moved this post to this sub-forum which is more appropriate and deleted the old post) Hello. I'm having trouble trapping any message coming from the
property sheet to pages, especially when I click on OK | Cancel | Apply
buttons. First thing I tried was whether I could trap a button click on the Property Sheet. It seems that a simple ON_BN_CLICKED with the appropriate button ID like so: ON_BN_CLICKED(IDOK, OnBnClickedOk) ON_BN_CLICKED(IDCANCEL, OnBnClickedClose) ON_BN_CLICKED(ID_APPLY_NOW, OnBnClickedApply) doesn't do anything. Following the source code, its seems that a SendMessage(WM_NOTIFY) is sent to each page after
a button click. So I could trap some message in the Property Page but
WM_NOTIFY is usually not used as an ON_MESSAGE(WM_NOTIFY) to trap
anything. Another funny thing: The property sheet sample is pretty silent about it. So how can I trap any button messages either on the Property Sheet or Page ? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |