在下面的代码中为什么最后一个PostMessage发不出去消息?
CITcard_test4Dlg *pDlg = cums;
while(1)
{
if(ring == false)
{
::PostMessageW(pDlg->m_hWnd,UM_READDATA1,NULL,NULL);
if(_T("RING") == CommstrTemp)
{
//char ad[6] = "????";
pDlg->m_EditStatusBar=_T("您有一个来电!");
//pDlg->m_EditStatusBar+=m_RxTIME+_T("\r\n");
//pDlg->UpdateData(false);
Callup = true;
}
::PostMessageW(pDlg->m_hWnd,UM_READDATA1,NULL,NULL);
if(-1 != CommstrTemp.Find(_T("+CMTI: \"SM\"")))
{
pDlg->m_EditStatusBar=_T("您有一条新短信!");
}
}
//SetWindowText((HWND)pParam,NULL);
::PostMessageW(pDlg->m_hWnd,UM_STATUSSHOW,NULL,NULL);
Sleep(100);
}
求大神赐教!!!!!