Re: Numeric spin control,



What I meant was, how would a non-brain-damaged MFC designer have addressed
the problem when designing MFC, the problem being the inability to reliably
call base class message handler functions using different parameters?

Doug

On Thu, 13 Jul 2006 11:09:25 -0400, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

See my previous post.
joe

On Wed, 12 Jul 2006 23:47:20 -0500, "Doug Harrison [MVP]" <dsh@xxxxxxxx> wrote:

On Wed, 12 Jul 2006 18:57:02 -0400, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

LRESULT CMyControl::OnSetText(WPARAM, LPARAM lParam)
{
CString s;
// format s for the desired state
return CMyParent::OnSetText(0, (LPARAM)(LPCTSTR)s);
}

This is what I should be able to write. But of course, due to terminal brain death of
some MFC designer, this cannot possibly work.

I agree it's unfortunate that this doesn't work as everyone would like it
to, but how would you propose fixing it?
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.