Re: Simple CDialog trouble
In order for your OnGetDlgCode() method to be called you will have to add
ON_WM_GETDLGCODE() to your message map.
AliR.
"Cyrogenic" <linkingfire@gmail.com> wrote in message
news:1181742422.066778.145110@q19g2000prn.googlegroups.com...
Hi, I'm somewhat new to the MFC, and I'm using VS C++ 98 (I know) and
I've hit a spot of trouble on a dialog box. I had some trouble
getting it to open modeless, but it's opening fine and that's no
problem.
However, for some reason, in the class wizard provided in 98, it only
is showing about half the options that were available in one of my
"tinker" runs that were aborted attempts at getting it to run. There
IS no available OnInitDialog, OnGetDlgCode, etc. There's maybe 10-15
options.
So I had a rich edit control, and I was trying to get it to accept
tabs as input, and I encountered several posts that said to handle the
OnGetDlgCode(). This wasn't in the list, so I manually added it into
the afx message map as: afx_msg UINT OnGetDlgCode();
However, it's never reaching this, nor is it ever reaching my OnChar,
or OnKeyUp handlers. What am I missing?
Thanks for your help.
~Cyro