Windows message is totally irrelevant with thread. Windows message is a data structure which need to be sent to a proper window referenced by using a HANDLE value. Windows message can be used in both process and thread,however SendMessage() is not available in thread, you need to use PostMessage instead.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货