2013年7月31日

SetwindowText 之线程阻塞

摘要: 示意代码:CriticalSection g_Section; CDialog g_Dlg; // 工作线程函数UINT TreadFunc_A(PVOID para){ Sleep(10); g_Section.Lock(); Sleep(3000); g_Dlg.m_Show_Edit.SetWindowText("TreadFuncA");// Beep(400,20); g_Section.Unlock();}// 窗口按钮消息函数void CDialog::OnButton1() { g_Section.Lock(); g_Dlg.m_Show_Edit... 阅读全文

posted @ 2013-07-31 12:07 雁北 阅读(575) 评论(0) 推荐(0) 编辑

导航