c - Will WM_SETCURSOR be sent to parent if you handle it and don't call DefWindowProc() in it? -


the docs defwindowproc() sends wm_setcursor parent. if don't call defwindowproc() wm_setcursor instead return false wm_setcursor sent parent of window? in other words code sent wm_setcursor send wm_setcursor parent of window if return false? not dialog window.

//are these 2 same?     case wm_setcursor:         //more code         return defwindowproc(hwnd, msg, wparam, lparam);      case wm_setcursor:         //more code         return false; 

the answer is: depends. if called directly windows , return false, nothing more happen, may not situation.

if called defwindowproc or other window procedure return false have not handled message. further processing quite possible, depend on caller.

it isn't idea. either return true or call defwindowproc, manual says.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -