小编Har*_*sch的帖子

如何在Windows 7上删除Java程序的标题栏和任务栏图标?

我写了一个小应用程序,禁用C#中Windows操作系统所有窗口的标题栏和任务栏图标.这是代码:

using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace IconKiller
{
    class Program
    {
        /// Import the needed Windows-API functions:
        // ... for enumerating all running desktop windows
        [DllImport("user32.dll")]
        static extern bool EnumDesktopWindows(IntPtr hDesktop, EnumDesktopWindowsDelegate lpfn, IntPtr lParam);
        private delegate bool EnumDesktopWindowsDelegate(IntPtr hWnd, int lParam);

        // ... for loading an icon
        [DllImport("user32.dll")]
        static extern IntPtr LoadImage(IntPtr hInst, string lpsz, uint uType, int cxDesired, int cyDesired, uint fuLoad);

        // ... for sending messages to other windows
        [DllImport("user32.dll")]
        static extern IntPtr …
Run Code Online (Sandbox Code Playgroud)

c# java winapi windows-7 winforms

33
推荐指数
1
解决办法
2180
查看次数

标签 统计

c# ×1

java ×1

winapi ×1

windows-7 ×1

winforms ×1