查看单个帖子
旧 2009-05-05, 12:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how can i use cviewonsetcursor90

how can i use cview:nsetcursor() ?
how can i use cview:nsetcursor() ?
hi. i'm david lee and i have used dwgdirect library on mfc.
i want to change the cursor shape of the mouse through
cview:nsetcursor(). but if the cursor - i designed in resource -
is selected, it is not displayed.
how can i solve this problem?
...
case ewaszoomrealtime:
::setcursor(theapp.loadcursor(idc_pan_realtime));
break;
...
please help me.
= ::setcursor(hcur);
try like this:
bool cdgnmfcview:nsetcursor(cwnd* pwnd, uint nhittest, uint message)
{
if(cursorids[m_interactionmode]!=-1)
{
hcursor hcur=theapp.loadcursor(cursorids[m_interactionmode]);
hcursor hcurneu = ::setcursor(hcur);
return true;
}
return cview:nsetcursor(pwnd, nhittest, message);
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)