几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】how can i use cviewonsetcursor90 (http://www.dimcax.com/hust/showthread.php?t=16564)

yang686526 2009-05-05 12:23 PM

【转帖】how can i use cviewonsetcursor90
 
how can i use cview::onsetcursor() ?
how can i use cview::onsetcursor() ?
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::onsetcursor(). 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::onsetcursor(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::onsetcursor(pwnd, nhittest, message);
}


所有的时间均为北京时间。 现在的时间是 12:43 AM.