怎么改变MDI窗体得边框样式???????

ariesfrank 2003-08-14 09:57:51
我想自己绘制其他风格得窗体,可是MDI窗体得边框不能改啊,有办法吗?
...全文
218 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
现在还是人类 2003-08-15
  • 打赏
  • 举报
回复
UP
zyl910 2003-08-15
  • 打赏
  • 举报
回复
不是不愿意回答

而是你的说的太模糊了
无边框有三种意思:
1.去掉可以改变大小的边框
2.只是去掉窗口外围边框
3.去掉整个非客户区
zyl910 2003-08-15
  • 打赏
  • 举报
回复
SetWindowLong

VB声明
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
说明
在窗口结构中为指定的窗口设置信息
返回值
Long,指定数据的前一个值
参数表
参数 类型及说明
hwnd Long,欲为其取得信息的窗口的句柄
nIndex Long,请参考GetWindowLong函数的nIndex参数的说明
dwNewLong Long,由nIndex指定的窗口信息的新值


-------------------------------------------------


GetWindowLong

VB声明
Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
说明
从指定窗口的结构中取得信息
返回值
Long,由nIndex决定。零表示出错。会设置GetLastError
参数表
参数 类型及说明
hwnd Long,欲为其获取信息的窗口的句柄
nIndex Long,欲取回的信息,可以是下述任何一个常数:
GWL_EXSTYLE 扩展窗口样式
GWL_STYLE 窗口样式
GWL_WNDPROC 该窗口的窗口函数的地址
GWL_HINSTANCE 拥有窗口的实例的句柄
GWL_HWNDPARENT 该窗口之父的句柄。不要用SetWindowWord来改变这个值
GWL_ID 对话框中一个子窗口的标识符
GWL_USERDATA 含义由应用程序规定
DWL_DLGPROC 这个窗口的对话框函数地址
DWL_MSGRESULT 在对话框函数中处理的一条消息返回的值
DWL_USER 含义由应用程序规定
zyl910 2003-08-15
  • 打赏
  • 举报
回复
用SetWindowLong设置

---------------------------------------------------
GWL_STYLE:


Window Styles
WS_BORDER Creates a window that has a border.


WS_CAPTION Creates a window that has a title bar (implies the WS_BORDER style). Cannot be used with the WS_DLGFRAME style.


WS_CHILD Creates a child window. Cannot be used with the WS_POPUP style.


WS_CLIPCHILDREN Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.


WS_CLIPSIBLINGS Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.


WS_DISABLED Creates a window that is initially disabled.


WS_DLGFRAME Creates a window with a double border but no title.


WS_GROUP Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).


WS_HSCROLL Creates a window that has a horizontal scroll bar.


WS_MAXIMIZE Creates a window of maximum size.


WS_MAXIMIZEBOX Creates a window that has a Maximize button.


WS_MINIMIZE Creates a window that is initially minimized. For use with the WS_OVERLAPPED style only.


WS_MINIMIZEBOX Creates a window that has a Minimize button.


WS_OVERLAPPED Creates an overlapped window. An overlapped window usually has a caption and a border.


WS_OVERLAPPEDWINDOW Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.


WS_POPUP Creates a pop-up window. Cannot be used with the WS_CHILD style.


WS_POPUPWINDOW Creates a pop-up window with the WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION style must be combined with the WS_POPUPWINDOW style to make the Control menu visible.


WS_SYSMENU Creates a window that has a Control-menu box in its title bar. Used only for windows with title bars.


WS_TABSTOP Specifies one of any number of controls through which the user can move by using the TAB key. The TAB key moves the user to the next control specified by the WS_TABSTOP style.


WS_THICKFRAME Creates a window with a thick frame that can be used to size the window.


WS_VISIBLE Creates a window that is initially visible.


WS_VSCROLL Creates a window that has a vertical scroll bar.



---------------------------------------------------
GWL_EXSTYLE:


Extended Window Styles
WS_EX_ACCEPTFILES Specifies that a window created with this style accepts drag-and-drop files.


WS_EX_CLIENTEDGE Specifies that a window has a 3D look — that is, a border with a sunken edge.


WS_EX_CONTEXTHELP Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message.


WS_EX_CONTROLPARENT Allows the user to navigate among the child windows of the window by using the TAB key.


WS_EX_DLGMODALFRAME Designates a window with a double border that may (optionally) be created with a title bar when you specify the WS_CAPTION style flag in the dwStyle parameter.


WS_EX_LEFT Gives window generic left-aligned properties. This is the default.


WS_EX_LEFTSCROLLBAR Places a vertical scroll bar to the left of the client area.


WS_EX_LTRREADING Displays the window text using left-to-right reading order properties. This is the default.


WS_EX_MDICHILD Creates an MDI child window.


WS_EX_NOPARENTNOTIFY Specifies that a child window created with this style will not send the WM_PARENTNOTIFY message to its parent window when the child window is created or destroyed.


WS_EX_OVERLAPPEDWINDOW Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles


WS_EX_PALETTEWINDOW Combines the WS_EX_WINDOWEDGE and WS_EX_TOPMOST styles.


WS_EX_RIGHT Gives a window generic right-aligned properties. This depends on the window class.


WS_EX_RIGHTSCROLLBAR Places a vertical scroll bar (if present) to the right of the client area. This is the default.


WS_EX_RTLREADING Displays the window text using right-to-left reading order properties.


WS_EX_STATICEDGE Creates a window with a three-dimensional border style intended to be used for items that do not accept user input.


WS_EX_TOOLWINDOW Creates a tool window, which is a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the task bar or in the window that appears when the user presses ALT+TAB.


WS_EX_TOPMOST Specifies that a window created with this style should be placed above all nontopmost windows and stay above them even when the window is deactivated. An application can use the SetWindowPos member function to add or remove this attribute.


WS_EX_TRANSPARENT Specifies that a window created with this style is to be transparent. That is, any windows that are beneath the window are not obscured by the window. A window created with this style receives WM_PAINT messages only after all sibling windows beneath it have been updated.


WS_EX_WINDOWEDGE Specifies that a window has a border with a raised edge.
ariesfrank 2003-08-15
  • 打赏
  • 举报
回复
ok了已找到解决办法
ariesfrank 2003-08-14
  • 打赏
  • 举报
回复
有懂得人吗
ariesfrank 2003-08-14
  • 打赏
  • 举报
回复
有懂得人吗?
ariesfrank 2003-08-14
  • 打赏
  • 举报
回复
那你说一下怎么搞定
lizfhn 2003-08-14
  • 打赏
  • 举报
回复
用API搞定它吧!
ariesfrank 2003-08-14
  • 打赏
  • 举报
回复
普通窗体可以改成无边框,MDI窗体没这个选项,明白了吗
zyl910 2003-08-14
  • 打赏
  • 举报
回复
不太明白
讲清楚一点

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧