- 博客(301)
- 资源 (1)
- 收藏
- 关注
转载 Windows消息处理
由于看了一下,比较好理解,暂时先放到这里,待有空再翻译。只是在每节后大致介绍一下讲的内容。感觉写的比较全,无论从消息的原理还是从MFC操作上来说,值得一看,我也在此做个收藏。(一)说明:以下首先对消息进行介绍,然后在消息处理中,使用类向导创建消息循环,这个操作是在vc6.0(或者之下版本)操作的。IntroductionPerhaps one of the most impor...
2019-05-31 15:25:13 725
转载 Windows 常用消息大全
Windows 常用消息大全表A-1 Windows消息分布 消息范围 说 明 0 ~WM_USER– 1 系统消息 WM_USER~ 0x7FFF 自定义窗口类整数消息 WM_APP~ 0xBFFF 应用程序自定义消息 ...
2019-05-31 15:23:32 330
原创 Dev C++ 5.7.1中创建Windows桌面程序时的默认模板
#include <windows.h>/* This is where all the input to the window goes to */LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { /* Upon d...
2019-04-30 16:16:38 974
转载 Visual Studio 2010中创建Windows桌面程序时的默认模板
// ChineseChess.cpp : Defines the entry point for the application.//#include "stdafx.h"#include "ChineseChess.h"#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst; // curre...
2018-07-20 15:11:59 689
原创 Debug日志:Windows7或Windows10下如何调出telnet
当Windows7或者Windows10系统的命令行窗口下,不能运行telnet命令时,是由于没有安装telnet客户端的缘故。只需在“控制面板”-“程序与功能”中,打开“打开或关闭Windows功能”,在“telnet客户端”的复选框前打钩,点击“确定”,等程序运行完毕即可。再在命令行窗口输入telnet,即可转入telnet客户端执行。若要退出telnet客户端,需输入quit,而不是exit...
2018-07-17 16:02:00 589
转载 Debug日志:Win10无法使用内置管理员账户打开应用的解决方法
1、按下“WIN+R”输入:regedit回车,进入注册表编辑器;2、在注册表左侧依次打开:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,在右边找到FilterAdministratorToken,双击后将数值数据改为【1】并【确定】。若没有“FilterAdministratorTok...
2018-07-17 15:59:43 964
原创 Windows下的动态阿基米德螺线
#include<Windows.h>#include<tchar.h>#include<math.h> BOOLEAN InitWindowClass(HINSTANCE hInstance,int nCmdShow);LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinM...
2018-03-13 08:18:52 1012
原创 Windows下的动态时钟v3.0
#include<Windows.h>#include<tchar.h>#include<math.h> typedef struct Time{ int hour,min,sec;}TimeStructure;BOOLEAN InitWindowClass(HINSTANCE hInstance,int nCmdShow);LRESULT C...
2018-03-13 08:15:22 782
原创 2017年4月湖北省公务员考试中被我击败的名校学子
粗略删选,挂一漏万。公布这份名单是想说明:高考暂时的落后不等于永远落后,只要努力,人生路上还有很多反超的机会。江大不必气馁,武大不必骄傲。人生路上关键看你自己,说学校不好,那不是理由。...
2018-02-17 20:04:10 518
转载 book1 unit10 after-class reading 2 The History of Agriculture
Nobody knows exactly when or where agriculture began. But scientists now believe that it began 8,000 years ago or more when people discovered that the wild grass seeds that they threw away along with ...
2018-02-12 20:31:13 816
转载 book1 unit10 after-class reading 1 Dairying and Dairy Products
When did people begin using milk from animals? Probably about the time they began domesticating animals ---- some 8,000 to 10,000 years ago. Meat was certainly the most important food first provided b...
2018-02-10 20:05:25 448
转载 book1 unit10 in-class reading Farming for the Future
Every year, more people face poverty and hunger and more of the earth's resources are ruined. The problems are enormous, but many experts believe that the situation is not hopeless. The solution wil
2018-02-07 19:07:37 535
转载 book1 unit9 after-class reading 2 April Fools' Day
by Neil FinerA visitor from the planet Mars looking through the newspapers on 1 April would surely wonder why all the most extraordinary advances in human knowledge seem to be discovered on 31 Mar
2018-02-05 07:44:37 396
转载 book1 unit9 after-class reading 1 Why I Love Thanksgiving
by Willard ScottOver the years, I have had the opportunity to visit nearly every state in the Union, and I never cease to be amazed by our country's variety of people and places. I can ste
2018-02-04 18:07:25 1322
转载 book1 unit9 in-class reading A Merry Christmas
More Stuffing?by Patrick Brendan"Merry", as you may know, has two meanings: happy and drunk. If you're like a large number of British people, then your Christmas will be an alcoholic, rather t
2018-02-04 08:11:41 1100
转载 book1 unit8 after-class reading 2 Appointment with Love
by S. I. KishorSix minutes to six. The tall young Army Lieutenant lifted his face, and noted the exact time. His heart was pounding because he could not control it. In six minutes, he would see th
2018-02-02 19:40:18 644
转载 book1 unit8 after-class reading 1 Detour to Romance
by Gilbert WrightLocated in the checkroom in Union Station as I am, I see everybody that comes up the stairs. I think that if you wait long enough in a big railroad station like Union St
2018-02-01 21:12:15 1119
转载 book1 unit8 in-class reading A True Love Story
Elizabeth Barrett Browning and Robert Browning were both English poets. The story of how they met, fell in love, and married is one of the most famous love stories in history. This love story is fam
2018-02-01 19:04:18 791
转载 book1 unit7 after-class reading 2 The Night the President Met the Burglar
A cat burglar broke into the bedroom of the President of the Unites States, who confronted him, struck a deal with him and helped him escape.The President and First Lady ---- she slept thr
2018-01-31 19:51:12 647
转载 book1 unit7 after-class reading 1 The Two Brothers
Two brothers set out on a journey together. At noon they lay down in a forest to rest. When they woke up they saw a stone lying next to them. There was something written on the stone, and they tried
2018-01-31 15:28:30 451
转载 book1 unit7 in-class reading Take Risks When There's No Danger
by Wallace WilkinsMany of us have grown up with warnings to be careful. When people leave one another, for example, they often say, "Take care." Taking these words seriously could inhibi
2018-01-30 20:03:02 634
转载 book1 unit6 after-class reading 2 The Mystery of the Franklin Expedition
Many years ago, explorers wanted to find a way by sea from Europe to China. In 1845, John Franklin left England with 134 men to look for a route through the Arctic.Franklin's ships had e
2018-01-29 21:00:40 479
转载 book1 unit6 after-class reading 1 Life Elsewhere
As we all know, the Earth has everything that is needed for life to develop, which is why we are here. But four billion years ago, when the Earth was formed, what were the chances that life would em
2018-01-29 14:41:12 384
转载 book1 unit6 in-class reading The Bermuda Triangle
On the 5th December 1945, Flight 19, which consisted of five US Navy planes, took off from Fort Lauderdale, Florida in fine weather. There was a total of fourteen men on board the planes. The planes
2018-01-29 14:37:50 1872
转载 Visual Studio 2017中创建Windows桌面程序时的默认模板
//WindowsProject1.cpp: 定义应用程序的入口点。//#include "stdafx.h"#include "WindowsProject1.h"#define MAX_LOADSTRING 100// 全局变量: HINSTANCE hInst; // 当前实例WCHAR szTitle[MAX
2017-12-18 20:07:22 7785 1
转载 MOOC清华《VC++面向对象与可视化程序设计》第3章补例:诗文扇面
#include #include #include #define PI 3.141592653BOOLEAN InitWindowClass(HINSTANCE hInstance,int nCmdShow);LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);HFONT CreateMyFont(TCHAR * fontName,i
2017-12-14 08:41:49 323
转载 MOOC清华《VC++面向对象与可视化程序设计》第5章:图标资源例程
#include#include#includelong WINAPI WndProc(HWND hWnd,UINT iMessage,UINT wParam,LONG lParam);BOOL InitWindowsClass(HINSTANCE hInstance);BOOL InitWindows(HINSTANCE hInstance,int nCmdShow);HWND hW
2017-12-12 21:10:32 319
转载 MOOC清华《VC++面向对象与可视化程序设计》第5章:对话框资源例程(非模态对话框样例)
#include #include "001.h"HWND hdlg; //对话框句柄HINSTANCE hInst;LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);BOOL CALLBACK DlgProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMa
2017-12-12 21:07:27 568
转载 MOOC清华《VC++面向对象与可视化程序设计》第5章:对话框资源例程(模态对话框样例)
#include #include "001.h"HINSTANCE hInst;LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);BOOL CALLBACK DlgProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain( HINSTANCE hInst
2017-12-12 21:05:21 360
转载 MOOC清华《VC++面向对象与可视化程序设计》第5章:位图资源例程
#include #include #include #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);//定义变量HDC hdc; //设备环境句柄HDC hdcmem; //内存设备环境句柄HBITMAP hBm; //位图句柄BITMAP bm; //BITMAP结构int WINAP
2017-12-12 21:02:42 317
转载 MOOC清华《VC++面向对象与可视化程序设计》第5章:菜单资源例程(创建统计计算菜单项)
#include "windows.h" #include "001.h"HMENU hmenu,haddmenu; //定义菜单句柄LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevIns
2017-12-12 20:59:43 765
转载 MOOC清华《VC++面向对象与可视化程序设计》第4章:鼠标操作例程(灰白选框)
#include LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpszCmdParam, int nCmdShow) { static char szAppNam
2017-12-11 19:06:48 276
转载 MOOC清华《VC++面向对象与可视化程序设计》第4章:鼠标实例程序(光标九宫格)
#include#include#include#includeBOOL InitWindowsClass(HINSTANCE hInstance);BOOL InitWindows(HINSTANCE hInstance,int nCmdShow);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR
2017-12-11 19:03:26 424
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人