Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该使用哪些 WinAPI 函数在选定窗口上绘制边框。例如,我通过鼠标激活任何窗口(例如,记事本),它应该由边框构成。如何使用.net 实现它?
使用当鼠标在边界上时运行的函数,MouseHover该函数在该函数内部定义或绘制边界。
MouseHover
//write an function like this function() { // do what you want some like this... or draw border selectedwindow.BorderStyle = BorderStyle.Fixed3D; } //then call it on MouseHover event.