Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: Preventing TreeView bell sound on enter key ?

9 views
Skip to first unread message

Daniel Fox

unread,
Aug 21, 2002, 3:14:15 PM8/21/02
to
I'm working in C only; I have a TreeView control on a dialog, and I'm
handling NM_RETURN to pop up a window when the user hits enter on a
selection in the TreeView control. It works just fine, however there is a
bell/ding/beep sound that triggers when you do this. This is a smidge
annoying, so I'd like to prevent it from making a sound.

I imagine some sort of subclassing is called for to prevent this, but I'm
not sure what. Does anybody have a suggestion?

Thanks,

-Daniel

Wallace Gromit

unread,
Aug 22, 2002, 3:22:05 AM8/22/02
to
Are you returning nonzero to the NM_RETURN notification ?

Otherwise use the WM_KEYDOWN message and change the wparam to 0 when it's
VK_RETURN.

"Daniel Fox" <danielfox200...@hotmail.com> a écrit dans le message
news: Xns92719B8EA8C0D...@207.46.239.39...

0 new messages