The Wayback Machine - https://web.archive.org/web/20110921233329/http://www.codeguru.com:80/cpp/w-d/dislog/commandui/

    CommandUI

    Simple Way to Check All Dialog Controls for Changings

    Uses the ON_CONTROL_RANGE MFC macro to avoid having to individually check each control

    Using ON_UPDATE_COMMAND_UI with all controls in a Dialog

    Using ON_UPDATE_COMMAND_UI with all controls in a Dialog

    Using ON_UPDATE_COMMAND_UI with controls

    Using ON_UPDATE_COMMAND_UI with controls

    Using ON_UPDATE_COMMAND_UI with menu items and controls

    Using ON_UPDATE_COMMAND_UI with menu items and controls

    Using ON_UPDATE_COMMAND_UI with menu items and controls (2)

    Using ON_UPDATE_COMMAND_UI with menu items and controls (2)