using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace Demo
{
public class PicBtn : Control, IDisposable // 图形按钮
{
[DllImportAttribute("user32")]
static extern int SetWindowLong(IntPtr hWnd, int nlndex, IntPtr dwNewStyle);
[DllImportAttribute("user32")]
static extern int CallWindowProc(int hWinProc, int hWND, int Msg, int wParam, int lParam);
int _hWinProc = 0; MSG _MSG = null; EventHandler _Draw = null;
const int GWL_WNDPROC = -4, WM_MOUSEFIRST = 512, WM_SHOWWINDOW =