This article explains multi-task structure and message processing mechanism of window operation system through a window program written in win32assembly language.The author tries to understand the principles of object-oriented programming through the principles of windows and analyses some of the window's build-in APIs,which are used in development of this program.