public int ctype = 0; private const int GWL_STYLE = -16; private const int WS_SYSMENU = 0x80000; [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)] private static extern int GetWindowLong(IntPtr hWnd, int nIndex); [Sys
在JDK1.4以前,我们只有一种方式来去掉窗口的标题栏,那就是直接使用JWindow,用JWindow来代替JFrame使用.但用过JWindow的人一定知道,JWindow在操作系统的任务栏是不可见的,这样我们就无法在几个视窗之间来切换到这个窗口了. 使用JWindow也是很多人知道的一种去掉标题栏的方式.但从Java1.4开始,有一种新的方式可以使用,我们来看看. 现在我们创建一个类并继承于JFrame, public class DecoratedFrame extends JFrame
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Drawing2D; using System.Runtime.InteropServic