Share this post

Link to post

Share on other sites

PsaltyDS 27

PsaltyDS 27

It does? You should find that a control handle is <> 0 at any time, not just when it has been clicked.

The check you may be looking at is just to accommodate inexperienced users that don't know the difference between a ControlID and the HWND, so they tend to pass the former where the latter is required. Most UDFs guard against this mistake in that fashion.