Hello Dmitry,
Wednesday, September 15, 2010, 11:30:38 AM, you wrote:
It's better, but since BN_CLICKED is 0, there is no need to introduce wParam.
I reduced the patch to two lines (it's not visible from the context, but there's a "return TRUE" lower to make up for the removed one). Hopefully it's not too cryptic now. Thanks for the feedback.