![]() |
【转帖】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. |