以线程为核心,以消息为主线,剖析了Windows 线程、窗口与消息三者之间的内在关系。线程是进程的执行实体;窗口由线程创建,并隶属于线程;通过消息机制,线程、窗口、消息构成了一个有机整体;窗口的一切行为都是由消息为之驱动的。行文同时指出了一些需要关注的问题。该技术主题对于Windows操作系统平台软件的设计、开发具有重要意义。 关键词:线程;窗口;消息;关系机制 Abstract: Centering on the thread and lining with the message, this paper analyzes the inside relationship among Windows thread,window and message. Windows thread is the executive entity of process; window is created by thread, and belongs to it; thread, window and message become an organic whole via the system of messages; all behavior of window’s is driven by message. Meanwhile, it points out some issues needed to be attention. This topic is very important for designing and developing Windows’ applications. Key words: Thread; Window; Message; Inside Relationship