Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Trapping Property Sheet buttons messages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trapping Property Sheet buttons messages

 Post Reply Post Reply
Author
Message
mstj View Drop Down
Newbie
Newbie


Joined: 23 June 2020
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mstj Quote  Post ReplyReply Direct Link To This Post Topic: Trapping Property Sheet buttons messages
    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 ?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.