#include <Windows.h>
#include <tchar.h>
BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
HFONT CreateFont(HDC hDC, int nCharHeight, BOOL bItalic);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MSG msg;
if (!InitWindowClass(hInstance, nCmdShow))
{
MessageBox(NULL, L"创建窗口失败!", _T("创建窗口"), NULL);
return ;
}
while (GetMessage(&msg, NULL, , ))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return(int)msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hDC;
HFONT hF;
PAINTSTRUCT ps;
TEXTMETRIC tm;
TCHAR str[] = L" Hello World ";
int i = ;
static int x[], y[];
static int color[];
POINT pt;
switch (message)
{
case WM_CREATE:
SetTimer(hWnd, , , NULL);
GetCursorPos(&pt);
ScreenToClient(hWnd, &pt);
for (i = ; i < ; i++)
{
x[i] = pt.x + (i - ) * ;
y[i] = pt.y;
color[i] = * (i - );
}
break;
case WM_PAINT:
hDC = BeginPaint(hWnd, &ps);
hF = CreateFont(hDC, , );
SelectObject(hDC, hF);
for (i = ; i > ; i--)
{
x[i] = x[i - ] + ;
y[i] = y[i - ];
}
GetCursorPos(&pt);
ScreenToClient(hWnd, &pt);
x[] = pt.x;
y[] = pt.y;
for (i = ; i < ; i++)
{
SetTextColor(hDC, RGB( - color[i], color[i], ));
TextOut(hDC, x[i], y[i], &str[i], );
}
color[] = color[];
for (i = ; i > ; i--)
color[i] = color[i - ];
DeleteObject(hF);
EndPaint(hWnd, &ps);
break;
case WM_TIMER:
if (wParam == )
InvalidateRect(hWnd, NULL, );
break;
case WM_DESTROY:
PostQuitMessage();
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
break;
}
return ;
}
BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow)
{
WNDCLASSEX wcex;
HWND hWnd;
TCHAR szWindowClass[] = L"窗口示例";
TCHAR szTitle[] = L"鼠标的应用示例";
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = ;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = ;
wcex.cbWndExtra = ;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
wcex.lpszMenuName = NULL;
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
if (!RegisterClassEx(&wcex))
return FALSE;
hWnd = CreateWindow(
szWindowClass,
szTitle,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL,
NULL,
hInstance,
NULL
);
if (!hWnd)
return FALSE;
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
HFONT CreateFont(HDC hDC, int nCharHeight, BOOL bItalic)
{
HFONT hFont;
hFont = CreateFont(
nCharHeight,
,
,
,
,
bItalic,
,
,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE,
L"Arial"
);
if (hFont == NULL)
return NULL;
else
return hFont;
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABAEAAAINCAIAAADA8/EOAAAXsUlEQVR4nO3dzY9d9WHG8SzIH8Gm3c56FmERS16NZISmJSLGQQ21VNVyXVVNUKQuGledtqlCQsnUJEDAtYtJUxzkgnCMMCYG7KipC7iOaZySWk6YhNgS2GNsKH4LOV3cmXPPfZ07b/cez/P56FlgM74zE1D4fe89584nvrzrdjMzMzMzy9knvrzr9j3HN5uZmZmZ2QruP+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AGTRAAAAkEUDAABAFg0AAABZNAAAAGTRAAAAkEUDAABAFg0AAABZNAAAAGTRAAAAkEUDAABAFg0AAABZNAAAAGTRAAAAkEUDAABAFg0AAABZNAAAAGTRAAAAkEUDAABAFg0AAABZFt0AZmZmZmZ2s28RDWBmZmZmZmtyGsDMzMzMLGsawMzMzMwsaxrAzMzMzCxrGsDMzMzMLGsawMzMzMwsa3MNYGZmZmZmOft/QUMIJ/jyOG4AAAAASUVORK5CYII=" alt="" />

截图看不出效果^-^

VC++SDK编程——鼠标的应用示例的更多相关文章

  1. VC++SDK编程——字体及位置示例

    #include <Windows.h> #include <tchar.h> #include <math.h> #define PI 3.1415926 BOO ...

  2. VC++SDK编程——模拟时钟

    #include <Windows.h> #include <tchar.h> #include <math.h> typedef struct Time { in ...

  3. 海康SDK编程指南(C#二次开发版本)

    海康SDK编程指南 目前使用的海康SDK包括IPC_SDK(硬件设备),Plat_SDK(平台),其中两套SDK都需单独调用海康播放库PlayCtrl.dll来解码视频流,返回视频信息和角度信息.本文 ...

  4. 【SDK编程】

    #include <stdio.h> #include <windows.h> int main() { DeleteFile("C:\\test.txt" ...

  5. Win32 SDK 编程开始, 创建窗口, 消息的处理, 消息循环

    Windows SDK 编程的一般步骤为: 1. 注册窗口类, 使用到的结构 WNDCLASSEX, 函数 RegisterClassEx. 2. 创建窗口, 函数 CreateWindowEx. 3 ...

  6. Vc数据库编程基础MySql数据库的表查询功能

    Vc数据库编程基础MySql数据库的表查询功能 一丶简介 不管是任何数据库.都会有查询功能.而且是很重要的功能.上一讲知识简单的讲解了表的查询所有. 那么这次我们需要掌握的则是. 1.使用select ...

  7. C语言 SDK编程之通用控件的使用--ListView

    一.ListView控件属于通用控件CONTROL中的一种,在SDK编程方式时要使用通用控件 必须包含comctl32.dll,所以代码中要有头文件: commctrl.h 导入库:comctl32. ...

  8. VC/MFC 当鼠标移到控件上时显示提示信息

    VC/MFC 当鼠标移到控件上时显示提示信息 ToolTip是Win32中一个通用控件,MFC中为其生成了一个类CToolTipCtrl,总的说来其使用方法是较简单的,下面讲一下它的一般用法和高级用法 ...

  9. Windows API编程(SDK编程)配置VS2017——出现LNK 2019错误的win32项目如何解决

    最近刚入门SDK编程,在 我终于知道为什么windowsApi学的人这么少了 这篇文章中,确实发现了这样的问题,我的教程使用VS2013->Windows桌面->win32,就诞生了能使用 ...

随机推荐

  1. 动态webservice调用接口

    using System; using System.Collections; using System.IO; using System.Net; using System.Text; using ...

  2. struts解决form提交的中文参数乱码问题

    根据struts的工作原理,原文摘自<Java Web 开发实战经典> 在运行一个JSP页面前,会调用指定的ActionForm中的reset()方法,进行表单元素的初始化 因此,在相应的 ...

  3. vs2017 vs2013等vs中如何统计整个项目的代码行数

    在一个大工程中有很多的源文件和头文件,我如何快速统计总行数? ------解决方案--------------------b*[^:b#/]+.*$^b*[^:b#/]+.*$ ctrl + shif ...

  4. 使用command对象添加删除查询记录

    private void button1_Click(object sender, EventArgs e) { //实例化数据库连接对象 SqlConnection sqlcon = new Sql ...

  5. 获取openid

    请将文件MP_verify_IbWggk5i4gWgrast.txt上传至mp.weixin.qq.com指向的web服务器(或虚拟主机)的目录 怎么处理的?//将txt文件上传到你填的域名的根目录 ...

  6. ar0331

    aptina公司出品 分三个文档:ar0331_ds.pdf 数据表ar0331_dg.pdf 开发指导ar0331_rr_d.pdf 相关寄存器 色调映射(Tone Mapping):http:// ...

  7. 图表 Chart

    工作中,需要实现如下的图表,查阅了不少的资料,问了不少的人,下面对下图表的实现代码做下讲解. 实现代码: chart1.Series.Clear();//清空图表中的序列,图表中有默认的序列 //ch ...

  8. Dependency Property 依赖属性

    依赖属性就是一种可以自己没有值,并能通过使用Binding从数据源获得值(依赖在别人身上)的属性.拥有依赖属性的对象称为“依赖对象”. WPF开发中,必须使用依赖对象作为依赖属性的宿主,使二者结合起来 ...

  9. Android之怎样强制横竖屏显示

    2  强制横屏竖屏显示(不依据手机传感器调整) 在清单文件AndroidManifest.xml中 在<activity 里面增加: android:screenOrientation=&quo ...

  10. Duilib教程-简单介绍

    在读这篇博客的时候,可能您已经对duilib有一定的了解.所以,我并不打算对duilib进行过多的介绍.它的内核首先由外国人编写,后来由国人一个小组接过来继续编写,于是就有了现在的Duilib. 1. ...