void CSuperQuoteGraphCtrl::ThWndProc(UINT message, WPARAM wParam, LPARAM lParam)
{
IsMSgTh=true;
if(IsLock)while(ThMsgList.Del());
while(ThMsgList.Count)
{
LPTHMSG pThMsg=ThMsgList.Get();
switch(pThMsg->Msg)
{
case SQ_THMSG_DRAW:
DrawAll();
break;
case SQ_THMSG_MMOVE:
IsMouseMove=true;
MouseMoveTh(pThMsg);
IsMouseMove=false;
break;
case SQ_THMSG_MWHEEL:
MouseWheelTh(pThMsg);
break;
case SQ_THMSG_SETDATA:
{
}
break;
}
ThMsgList.Del();
if(!ThMsgList.Count&&aMouseMove)
{
ThMsgList.New(&aMMVhMsg);
aMMVhMsg.DPtr=NULL;
aMouseMove=false;
}
}
IsMSgTh=false;
{
IsMSgTh=true;
if(IsLock)while(ThMsgList.Del());
while(ThMsgList.Count)
{
LPTHMSG pThMsg=ThMsgList.Get();
switch(pThMsg->Msg)
{
case SQ_THMSG_DRAW:
DrawAll();
break;
case SQ_THMSG_MMOVE:
IsMouseMove=true;
MouseMoveTh(pThMsg);
IsMouseMove=false;
break;
case SQ_THMSG_MWHEEL:
MouseWheelTh(pThMsg);
break;
case SQ_THMSG_SETDATA:
{
}
break;
}
ThMsgList.Del();
if(!ThMsgList.Count&&aMouseMove)
{
ThMsgList.New(&aMMVhMsg);
aMMVhMsg.DPtr=NULL;
aMouseMove=false;
}
}
IsMSgTh=false;