摘要: 首先 yum install gcc 安装完成后 gcc -o 指定文件名 文件(gcc -o hello hello.c) 另外 对pthread_create未定义的引用 pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,在编译中要加-lpthread(放在命 阅读全文
posted @ 2022-04-27 18:26 hack747 阅读(100) 评论(0) 推荐(0)
摘要: <Button x:Name="btnMin" Content="―" Style="{StaticResource MaterialDesignFlatMidBgButton}" /> <Button x:Name="btnMax" Content="☐" Style="{StaticResour 阅读全文
posted @ 2022-04-27 10:54 hack747 阅读(231) 评论(0) 推荐(0)
摘要: 如何给image控件变圆呢 很简单 只需要裁剪一下就可以了 <Image Width="25" Height="25" Source="/Images/user.jpg"> <Image.Clip> <EllipseGeometry Center="12.5,12.5" RadiusX="12.5" 阅读全文
posted @ 2022-04-27 10:39 hack747 阅读(481) 评论(0) 推荐(2)
摘要: WPF AllowsTransparency的作用 AllowsTransparency="False"//表示不允许窗体透明 效果是这样的: 很明显窗体四周有边框包围。若值为True,效果是这样的: 当然,上例是 Background="Transparent" 若设置了颜色效果是这样的: Bac 阅读全文
posted @ 2022-04-26 19:02 hack747 阅读(360) 评论(0) 推荐(0)
摘要: [root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户 [root@server ~]# passwd chenjiafa //修改密码 Changing password for user chenjiafa. New UNIX passwo 阅读全文
posted @ 2022-04-24 09:19 hack747 阅读(815) 评论(0) 推荐(0)
摘要: 直接放代码了 简单易懂 方法代码 // 获取全局 开始 文件夹位置 string directory = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup); // 获取当前登录用户的 开始 文件夹位置 //Envir 阅读全文
posted @ 2022-04-22 11:05 hack747 阅读(106) 评论(0) 推荐(0)
摘要: 首先右键项目 新建 添加一个应用程序清单文件 找到requestedExecutionLevel 我直接放代码了 一看就懂 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> level改成require 阅读全文
posted @ 2022-04-22 10:48 hack747 阅读(275) 评论(0) 推荐(0)
摘要: 前端代码 <Window x:Class="WpfApp2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2022-04-18 13:06 hack747 阅读(33) 评论(0) 推荐(0)
摘要: MainWindow前端代码 <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof 阅读全文
posted @ 2022-04-18 11:15 hack747 阅读(178) 评论(0) 推荐(0)
摘要: 直接放代码吧 用户控件前端代码 <UserControl x:Class="WpfApp5.QCUserImage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m 阅读全文
posted @ 2022-04-18 09:25 hack747 阅读(277) 评论(0) 推荐(0)