c++ - Hide Cursor in Client Rectangle but not on Title Bar -
i trying hide cursor in client area of window (directx application) default behavior in title bar. i've tried several things didn't find way this. have idea how achieve this?
add wndproc:
case wm_setcursor: { word ht = loword(lparam); static bool hiddencursor = false; if (htclient==ht && !hiddencursor) { hiddencursor = true; showcursor(false); } else if (htclient!=ht && hiddencursor) { hiddencursor = false; showcursor(true); } } break;
Comments
Post a Comment