Sunday, March 30, 2008

How do I get rid of the ding that occurs when pressing enter on a TreeView control?

This can be easily fixed by overriding the default behavior of the WM_CHAR message. First subclass the control's window procedure using SetWindowLongPtr, then inside the new procedure use the following.
switch(message)
{
...
case WM_CHAR:
return 0;
...
}

1 comment:

yervantignatowski said...

Harrah's Cherokee Casino & Hotel - MapYRO
Harrah's 성남 출장안마 Cherokee 구미 출장샵 Casino & Hotel locations, rates, amenities: expert Cherokee research, only at Hotel and Travel 양산 출장마사지 Index. Realtime driving directions to 시흥 출장안마 Harrah's Cherokee Casino 창원 출장안마 & Hotel