i want the window it hasn't the buttons of min,max,and close .i want to paint myself close button ,so i do it this way;
at first ,set the window property "ControlBox" to false;
then we intercept the window msg
0x86 WM_NCACTIVATE
0x85 WM_NCPAINT
then we intercept the mouseDown event msg
0xA1 WM_NCLBUTTONDOWN
my code :
本文介绍如何在Windows窗体中禁用默认的最小化、最大化及关闭按钮,并通过自绘方式实现一个定制化的关闭按钮。该方法涉及窗口消息拦截、鼠标事件处理以及自定义绘制等关键技术。
1956

被折叠的 条评论
为什么被折叠?



