首页天道酬勤winform窗体固定大小,winform窗体项目大全

winform窗体固定大小,winform窗体项目大全

张世龙 05-13 08:26 81次浏览
Point point=new Point (; bool isMove=false; privatevoidpaneltop _ mousedown (对象发送器,MouseEventArgs e ) { point=e.Location; //按压点isMove=true; } privatevoidpaneltop _ mousemove (对象发送器,MouseEventArgs e ) if ) e.button==mouse buttons.leftism ove ) poin nininion //相对于距原始起点的距离点的描述this.location=new size (fpointnew ); }}const int WM_NCHITTEST=0x0084; //移动鼠标的常数int ht left=10; 常数上限=11; 常数上限=12; const int HTTOPLEFT=13; 常数int ht topright=14; 常数int htbottom=15; 常数int ht bottom left=0x 10; 常数int htbottomright=17; protectedoverridevoidwndproc (refmessagem ) base.wndproc ) refm; switch(m.msg ) case WM _ NC hittest 3360 point vpoint=new point ) (int ) m.LParam0xFFFF,(int ) m.LParam 160xFFFF ) ) if(vpoint.x=5) if ) vpoint.y=5) m.result=(intptr ) HTTOPLEFT; else if (vpoint.y=clientsize.height-5 ) m.result=(intptr ) HTBOTTOMLEFT; else m.Result=(IntPtr ) HTLEFT; else if (vpoint.x=clientsize.width-5 ) if ) vpoint.y=5) m.result=(intptr ) HTTOPRIGHT; else if (vpoint.y=clientsize.height-5 ) m.result=(intptr ) HTBOTTOMRIGHT; else m.Result=(IntPtr ) HTRIGHT; elseif(vpoint.y=5) m.result=(intptr ) HTTOP; else if (vpoint.y=clientsize.height-5 ) m.result=(intptr ) HTBOTTOM; 布雷克; }//summary//面板页面大小与面板大小同步---面板的表单页面自适应处理//summary//param name=' sender '/param//param name=' e paramprivatevoidpanelpage _ size changed (对象发送器,EventArgs e ) foreach (controlcinpanelpage.controls f.wldbm (; f.Size=panelPage.Size; //DataGridView闪烁---暂时挂起,f.ResumeLayout (恢复; f.window state=form window state.maximized; }
centos32位和64位,centos安装32位运行库 python自学,python怎么自学