Abstract:By analyzing message structure and Windows message queue,the paper introduces the basic principle of Windows message mechanism.By analyzing pseudocode of window procedure,the paper researches realization process of Windows message mechanism.