s*******e 发帖数: 664 | 1 ☆─────────────────────────────────────☆
dawangzi (大王子*催贝卡) 于 (Fri Nov 20 19:19:29 2009, 美东) 提到:
WC,做了好几年VC,这才意识到,太颓了.
还请大侠Confirm:
//同一线程里的两个消息响应函数
ON_MESSAGE01()
{
PostMessage(02);//没用的,BlahBlah需执行完,不算嵌套
SendMessage(02);//更没用,死锁
BlahBlah
}
ON_MESSAGE02()
{
WahtEver
}
难道这是真的吗?为什么呢?
☆─────────────────────────────────────☆
microbe (纵使相逢应不识) 于 (Fri Nov 20 19:32:08 2009, 美东) 提到:
SendMessage waits for the response, of course it will deadlock since there
is only one UI thread.
☆──────────── |
|