Solved

Using ON_REGISTERED_MESSAGE in a dialog

Posted on 1998-06-23
3
650 Views
Last Modified: 2013-11-20
Given a dialog application, control wizard won't offer me the choice of adding a message handler within the CDialog class for ON_REGISTERED_MESSAGE.  Any ideas?  I'd prefer not to add it to the message map manually, and, if I did, am not sure that it would get past the dialogue message filtering.

The message is being sent by an associated DLL.
0
Comment
Question by:b2pi
  • 2
3 Comments
 
LVL 5

Author Comment

by:b2pi
ID: 1318353
Adjusted points to 100
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1318354
You will have to do it by hand. It isn't too hard:

  ON_REGISTERED_MESSAGE(WUM_MYMESSAGE, OnMyFunc)

Then have this as the function:

  LRESULT CMyDialog::OnMyFunc(WPARAM wp, LPARAM lp)
  {
    return 0;
  }
0
 
LVL 5

Author Comment

by:b2pi
ID: 1318355
That's within the

BEGIN_MESSAGE_MAP(CFTrackDlg, CDialog)
      //{{AFX_MSG_MAP(CFTrackDlg)
      ON_WM_PAINT()
      ON_WM_QUERYDRAGICON()
      ON_BN_CLICKED(IDC_Acquire, OnAcquire)
      //}}AFX_MSG_MAP
END_MESSAGE_MAP()

section?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 28
sum13 challenge 24 90
no14 challenge 14 62
FizzBuzz challenge 9 76
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now