-
MUSIC-revised
本文是music算法的一种改进,其具有更好的性能,以及能够满足大多数用户的需求,希望会给大家带来方便(This article is a modified music algorithm, which has better performance, and the ability to meet the needs of most users, I hope we will bring convenience)
- 2014-01-19 21:37:16下载
- 积分:1
-
仿造酷狗音乐最新版代码(含各种用户控件源码)
11111111111111111111111 核心代码: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.Runtime.InteropServices;using System.IO;using MediaControlLibrary;namespace MusicPlayer{ public partial class MainForm : Form { //public const Int32 AW_HOR_POSITIVE = 0x00000001; //public const Int32 AW_HOR_NEGATIVE = 0x00000002; //public const Int32 AW_VER_POSITIVE = 0x00000004; //public const Int32 AW_VER_NEGATIVE = 0x00000008; public const Int32 AW_CENTER = 0x00000010; //public const Int32 AW_HIDE = 0x00010000; //public const Int32 AW_ACTIVATE = 0x00020000; //public const Int32 AW_SLIDE = 0x00040000; //public const Int32 AW_BLEND = 0x00080000; public MainForm() { InitializeComponent(); //设置最大尺寸,防止全屏时遮挡任务栏 this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; //启动动画 AnimateWindow(this.Handle, 100, 0x00000010);//开始窗体动画,中心展开 //歌词窗口 //lyricShow1.InitAndShowDesktopLyric(); for (int i = 0; i < 1; i ) { MediaList list = new MediaList("默认列表"); for (int j = 0; j < 10; j ) { MediaItem item = new MediaItem("歌曲" j, "00:00"); item.SecondContent = "111223"; list.SubItems.Add(item); } mediaContainer1.Lists.Add(list); MediaList list1 = new MediaList("新建列表"); mediaContainer1.Lists.Add(list1); } } /// /// 退出时动画效果 /// /// /// private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { if (this.WindowState != FormWindowState.Minimized) { while (this.Height > 10) { this.Location = new Point(this.Location.X, this.Location.Y 15); this.Height -= 30; this.Opacity -= 0.01; } } Application.Exit(); } #region 播放控制与信息显示相关变量 MyMedia mySong = new MyMedia(); bool IsMute = false; bool IsStop = false; #endregion #region API和常量 [DllImport("user32.dll")] private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] private static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam); private const int WM_SYSCOMMAND = 0x0112; private const int SC_MOVE = 0xF010; private const int HTCAPTION = 0x0002; private const int WM_NCHITTEST = 0x84; private const int HTCLIENT = 0x1; private const int WM_NCLBUTTONDBLCLK = 0xA3;//鼠标双击标题栏消息 //改变窗体大小 public const int WMSZ_LEFT = 0xF001; public const int WMSZ_RIGHT = 0xF002; public const int WMSZ_TOP = 0xF003; public const int WMSZ_TOPLEFT = 0xF004; public const int WMSZ_TOPRIGHT = 0xF005; public const int WMSZ_BOTTOM = 0xF006; public const int WMSZ_BOTTOMLEFT = 0xF007; public const int WMSZ_BOTTOMRIGHT = 0xF008; #endregion #region 无边框窗口拖动及大小状态切换 protected override CreateParams CreateParams { get { const int WS_MINIMIZEBOX = 0x00020000; // Winuser.h中定义 CreateParams cp = base.CreateParams; cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作 return cp; } } private void tpnlMain_MouseDown(object sender, MouseEventArgs e) { //如果是顶部或底部的空栏 if ((e.Y > 0 && e.Y < 30) || (e.Y > this.Height - 40 && e.Y < this.Height)) { //按下的是鼠标左键,则拖动窗口 if (e.Button == MouseButtons.Left) { ReleaseCapture(); SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE HTCAPTION, 0);//*********************调用移动无窗体控件函数 } //双击顶部标题栏切换窗口状态 if ((e.Y > 0 && e.Y < 30) && e.Button == MouseButtons.Left && e.Clicks == 2) { if (this.WindowState == FormWindowState.Normal) { SendMessage(this.Handle, 274, 61488, 0); return; } if (this.WindowState == FormWindowState.Maximized) { SendMessage(this.Handle, 274, 61728, 0); return; } } } //拉伸改变大小 if (e.Y>0&&e.Y
- 2014-06-07下载
- 积分:1
-
巴特沃斯低通滤波器C语言
使用C语言实现巴特沃斯低通滤波器,滤波效果良好,转载一下,供大家学习下载
- 2022-09-15 21:40:03下载
- 积分:1
-
TB
说明: 一个很好的用VC++编写的"显示多姿多彩的动画图标"源代码.(A good written using VC++ " display colorful animated icons" source code.)
- 2010-12-09 18:39:24下载
- 积分:1
-
saolei
扫雷小游戏,可供大学生学习c语言使用,此压缩包为源程序,各项功能有待完善。( Small game, can be used for college students to learn C language, for the initial source, the various functions to be improved.
)
- 2016-07-05 14:16:06下载
- 积分:1
-
实验24 SPI实验
说明: 鉴于stm32在keil平台上的SPI通信实验(spi communications experiment)
- 2020-06-20 11:40:02下载
- 积分:1
-
代码
说明: 分为主机,从机两部分,从机收集温度并动态显示在数码管上;主机和从机通过nrf24l01模块进行无线通信,主机把从机(3个)的温度数据显示在lcd1602上(It is divided into two parts: the master and slave, which collect the temperature from the slave and display it dynamically on the digital tube; the master and slave communicate with each other through the nRF24L01 module, and the host displays the temperature data of the slave (3) on the lcd1602.)
- 2020-06-16 11:00:02下载
- 积分:1
-
BK9531-BK9532数据手册V1.4
说明: 国产无线通信芯片,KTV,会议,无线麦克风通信射频芯片(Domestic Wireless Communication Chip, KTV, Conference, Wireless Microphone Communication RF Chip)
- 2020-11-21 18:29:36下载
- 积分:1
-
heat transfer coffecient FLUENT udf
说明: 这个文件是计算传热系数的初级程序,希望对大家有帮助(This file is a preliminary procedure for calculating the heat transfer coefficient)
- 2021-03-31 16:19:09下载
- 积分:1
-
10.3
基于Web Service的数字油田监控系统,源码来源于嵌入式linux程序设计案例与实验教程实例。(Web Service based on the number of field monitoring system, source code from the embedded linux programming tutorial examples and experimental cases.)
- 2010-12-14 09:51:56下载
- 积分:1