>I want to bind the message when record index of the table changed ,if the record index have window message.
This should be handled through appropriate class design. For instance, the way this is done in Visual Extend, the framework uses form methods like OnNext(), OnBottom(), etc.; each one of these methods, in turn, calls method OnRecordMove() or something similar. So, you have one central place where you can put commands that execute when the user selects a different record.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)