#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. ((void *) 0)的含义和void的一些细节

    一.在c语言中,0是一个特殊的值,它可以表示:整型数值0,空字符,逻辑假(false).表示的东西多了,有时候不好判断.尤其是空字符和数字0之间. 为了明确的指出,0是空字符的含义,用用到了: (() ...

  2. 608. Two Sum - Input array is sorted【medium】

    Given an array of integers that is already sorted in ascending order, find two numbers such that the ...

  3. Codeforces Round #238 (Div. 2) D. Toy Sum

    D. Toy Sum   time limit per test:1 second memory limit per test:256 megabytes input:standard input o ...

  4. CMSGC造成内存碎片的解决方法

    我们知道,CMSGC在老生代回收时产生的内存碎片会导致老生代的利用率变低:或者可能在老生代总内存大小足够的情况下,却不能容纳新生代的晋升行为(由于没有连续的内存空间可用),导致触发FullGC.针对这 ...

  5. shell script 在if 的判断条件正则表达式=~中引号问题

    今天在脚本里运行if判断的时候,总是进不了对应的分支,检查正则表达式也没有错误.单独拿到shell里面执行还是显示没有匹配.比较奇怪,就搜了下,才发现是在=~ 后面的正则表达式上不能加上引号,而且以点 ...

  6. linux TZ格式

    man tzset可以很清楚了解时区设置格式,共3种: The first format is used when there is no daylight saving time in the lo ...

  7. CentOS下搭建wordpress全流程

    突然,想搭建一个个人博客,所以就在网上搜了搜相关内容,好多人推荐wordpress,那么就打算光荣地采用wordpress了.以下是安装过程中遇到的所有的坑,现在总结如下,希望给安装wordpress ...

  8. 【转】Python 第三方 http 库-Requests 学习

    原文地址:http://www.itwhy.org/%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B/python/python-%E7%AC%AC%E4%B8%89%E6%9 ...

  9. Tuning 04 Sizing the Buffer Cache

    Buffer Cache 特性 The buffer cache holds copies of the data blocks from the data files. Because the bu ...

  10. ajax优点

    使用Ajax的最大优点,就是能在不更新整个页面的前提下维护数据.这使得Web应用程序更为迅捷地回应用户动作,并避免了在网络上发送那些没有改变的信息. 只要是JS调用异步通讯组件并使用格式化的数据来更新 ...