当前位置: 首页 > news >正文

b2b主要网站有哪些购物网站

b2b主要网站有哪些,购物网站,太原网站优化培训,网站seo自己怎么做微软提供了图形的界面API&#xff0c;叫GDI 如果你想画某个窗口&#xff0c;你必须拿到此窗口的HDC #include <windows.h> #include<tchar.h> #include <stdio.h> #include <strsafe.h> #include <string>/*鼠标消息 * 键盘消息 * Onkeydown * …

微软提供了图形的界面API,叫GDI
如果你想画某个窗口,你必须拿到此窗口的HDC

#include <windows.h>
#include<tchar.h>
#include <stdio.h>
#include <strsafe.h>
#include <string>/*鼠标消息
* 键盘消息
* Onkeydown
* Onkeyup
* //键盘扫描码
* /lParam>>16&0ff
快捷键消息
菜单消息
控件消息
自定义消息
窗口消息
客户区域的概念(Client Aera)
非客户区*/ 
using namespace std;
string g_Text;
VOID showerrormassage()
{LPVOID lpMsgBuf;FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |/*  分别为FORMAT_MESSAGE_ALLOCATE_BUFFER由函数分配输出缓冲区,FORMAT_MESSAGE_FROM_SYSTEM表示程序将会在系统消息表资源中搜索所需消息,FORMAT_MESSAGE_IGNORE_INSERTS程序将会忽略搜索到消息中的插入序列。  */FORMAT_MESSAGE_FROM_SYSTEM |FORMAT_MESSAGE_IGNORE_INSERTS,NULL,GetLastError(),MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),(LPTSTR)&lpMsgBuf,0, NULL);MessageBox(NULL, (LPCTSTR)lpMsgBuf, TEXT("Error"), MB_OK | MB_ICONINFORMATION);LocalFree(lpMsgBuf);
}//热键消息
//热键消息需要注册
//RegisterHotKey()
//软件卸载的时候还要卸载这个注册
//所以ip号就是这么回事
//
//UnregisterHotKey注销的函数//LRESULT OnHotkey(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
//	return TRUE;
//}LRESULT Onchar(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{g_Text+=(char)wParam;TCHAR szBuf[MAXBYTE];if ((char)wParam == '\r'){g_Text += '\n';}wsprintf(szBuf, _T("Onchar %s\n"), g_Text.data());OutputDebugString(szBuf);//获取窗口HDC,非客户区GetWindowDCHDC hdc = GetDC(hwnd);//TextOut(hdc, 0, 0, g_Text.data(), g_Text.length());//这个API不支持回车//释放DCRECT rc;GetClientRect(hwnd, &rc);DrawText(hdc, g_Text.data(), g_Text.length(), &rc, DT_LEFT);//这个API支持换行不过有rectReleaseDC(hwnd, hdc);return TRUE;
}
LRESULT OnCreate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {//初始化/* MessageBox(NULL,_T("onCrate"), _T("asm"), MB_OK);*/OutputDebugString(_T("[11syy]WM_CREATE\n"));return TRUE;
}//消息处理LRESULT OnClese(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {/*MessageBox(NULL, _T("onClose"), _T("asm"), MB_OK);*/OutputDebugString(_T("[11syy]WM_ClOSE\n"));DestroyWindow(hwnd);return TRUE;
}
//LRESULT OnKeydown(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
//{
//	//获取键盘状态
//	BYTE KeyState[256];
//	if (!GetKeyboardState(KeyState))
//	{
//		return TRUE;
//	}
//
//	//键盘扫描码
//	BYTE SanCode = (UINT)lParam >> 16 & 0xff;
//	WORD ch;
//	ToAscii(wParam, SanCode, KeyState, &ch, 0);
//	TCHAR szBuf[MAXBYTE];
//	wsprintf(szBuf, _T("[asm] OnKeydown) % c\n"), ch);
//	OutputDebugString(szBuf);
//	return TRUE;
//}//消息处理LRESULT OnDestroy(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{/*  MessageBox(NULL, _T("onDestory"), _T("asm"), MB_OK);*/PostMessage(hwnd, WM_QUIT, 0, NULL);OutputDebugString(_T("[11syy]WM_DESTROY\n"));return TRUE;
}//LRESULT OnMove(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
//{
//	TCHAR szBuf[MAXBYTE];
//	int xpos = (int)(short)LOWORD(lParam);
//	int ypos = (int)(short)HIWORD(lParam);
//	wsprintf(szBuf, _T("[11syy]xpos:%d ypos:%d"), xpos, ypos);
//	PostMessage(hwnd, WM_QUIT, 0, NULL);
//	return TRUE;
//}
//LRESULT OnLButtonnDown(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
//{
//	int xpos = LOWORD(lParam);
//	int ypos = HIWORD(lParam);
//	TCHAR szBuf[MAXBYTE];
//	wsprintf(szBuf, _T("[11syy]xpos:%d ypos:%d\n"), xpos, ypos);
//	OutputDebugString(szBuf);
//	/*MessageBox(NULL, szBuf, _T("asm"), MB_OK);*/
//	return FALSE;
//}
//LRESULT OnLButtonnup(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
//{
//	int xpos = LOWORD(lParam);
//	int ypos = HIWORD(lParam);
//	TCHAR szBuf[MAXBYTE];
//	wsprintf(szBuf, _T("[11syy]xpos:%d ypos:%d\n"), xpos, ypos);
//	OutputDebugString(szBuf);
//	//MessageBox(NULL, szBuf, _T("asm"), MB_OK);
//	return FALSE;
//}//LRESULT onMouse(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
//{
//	LRESULT lResult = FALSE;
//	switch (uMsg)
//	{
//	case WM_LBUTTONDOWN:
//	 lResult= OnLButtonnDown(hwnd, uMsg, wParam, lParam);
//		break;
//	}
//	return FALSE;
//}
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {LRESULT lResult = FALSE;switch (uMsg){case WM_CREATE:lResult = OnCreate(hwnd, uMsg, wParam, lParam);break;case WM_CLOSE:lResult = OnClese(hwnd, uMsg, wParam, lParam);break;case WM_DESTROY:lResult = OnDestroy(hwnd, uMsg, wParam, lParam);break;case WM_CHAR:lResult= Onchar(hwnd, uMsg, wParam, lParam);}if (!lResult) {return DefWindowProc(hwnd, uMsg, wParam, lParam);//默认窗口过程处理}return lResult;
}//图形界面,窗口int WINAPI _tWinMain(HINSTANCE hInstance,//应用程序示例句柄HINSTANCE hPrevInstance,//保留TCHAR* lpCmdline, //命令行参数,LPSTR可能会变成Unicodeint nCmdShow) {//窗口显示方式//比如我们启动这个窗口,最大化,最小化/*MessageBoxA(NULL, "hell word ", "asm", MB_YESNO);*/\//int res = MessageBoxW(NULL, L"hell unicode", L"asm", MB_YESNO);////if (res == 0) {///*	MessageBoxW(NULL, L"错误", L"asm", MB_OK);*///	showerrormassage();//	return 0;//}程序》实例化》进程》多个窗口//1.注册窗口TCHAR  szWndclassName[] = { _T("chongmousyy") };WNDCLASSEX wc = { 0 };wc.cbSize = sizeof(WNDCLASSEX);wc.style = CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS;//窗口类型wc.lpfnWndProc = WindowProc;wc.hInstance = hInstance;wc.hIcon = LoadIcon(NULL, IDC_HAND);//图标wc.hCursor = LoadCursor(NULL, IDC_ARROW);//光标FDXXwc.hbrBackground = CreateSolidBrush(RGB(255, 255, 255));//窗口背景颜色刷子wc.lpszClassName = szWndclassName;//窗口类名,窗口名字不可以为空wc.lpszMenuName = NULL;//窗口菜单if (RegisterClassEx(&wc) == 0){showerrormassage();return 0;};//2.创建窗口TCHAR szWndName[] = { _T("翀某人") };HWND hwnd = CreateWindowEx(0,szWndclassName,szWndName,WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInstance,NULL);if (hwnd == 0){showerrormassage();return 0;}//3.显示跟新窗口ShowWindow(hwnd, SW_SHOWNORMAL);//4.消息循环(消息队列)BOOL bRET;MSG msg;while ((bRET = GetMessage(&msg, NULL, 0, 0)) != 0) {if (bRET == -1) {break;}else{//转发消息TranslateMessage(&msg);//转换键盘消息为字符消息DispatchMessage(&msg);//派发消息}}//5.消息处理//资源return 0;
}

在这里插入图片描述在这里插入图片描述


文章转载自:
http://sprit.bfmq.cn
http://freshener.bfmq.cn
http://subbreed.bfmq.cn
http://biosafety.bfmq.cn
http://spice.bfmq.cn
http://overvoltage.bfmq.cn
http://aeolis.bfmq.cn
http://centesimo.bfmq.cn
http://gawky.bfmq.cn
http://vitelline.bfmq.cn
http://malariology.bfmq.cn
http://orc.bfmq.cn
http://kenspeckle.bfmq.cn
http://castration.bfmq.cn
http://dinar.bfmq.cn
http://fluidonics.bfmq.cn
http://glaum.bfmq.cn
http://showmanship.bfmq.cn
http://amidst.bfmq.cn
http://thrombogen.bfmq.cn
http://dispatchbox.bfmq.cn
http://unlifelike.bfmq.cn
http://gormless.bfmq.cn
http://rosolite.bfmq.cn
http://fiendishly.bfmq.cn
http://righten.bfmq.cn
http://allamanda.bfmq.cn
http://uriel.bfmq.cn
http://tishri.bfmq.cn
http://izard.bfmq.cn
http://strawhat.bfmq.cn
http://nonfarm.bfmq.cn
http://okeydoke.bfmq.cn
http://enjambment.bfmq.cn
http://basifixed.bfmq.cn
http://ordain.bfmq.cn
http://feria.bfmq.cn
http://cripplehood.bfmq.cn
http://actinomycete.bfmq.cn
http://misnomer.bfmq.cn
http://fascination.bfmq.cn
http://millionaire.bfmq.cn
http://proteide.bfmq.cn
http://overfired.bfmq.cn
http://consolatory.bfmq.cn
http://sourness.bfmq.cn
http://mashlam.bfmq.cn
http://bimillennium.bfmq.cn
http://paraphrastic.bfmq.cn
http://shaped.bfmq.cn
http://grittiness.bfmq.cn
http://ecumene.bfmq.cn
http://fibrillose.bfmq.cn
http://tenability.bfmq.cn
http://conservatize.bfmq.cn
http://telebit.bfmq.cn
http://strath.bfmq.cn
http://inoperable.bfmq.cn
http://pentium.bfmq.cn
http://pinfeather.bfmq.cn
http://frettage.bfmq.cn
http://preemption.bfmq.cn
http://neodymium.bfmq.cn
http://sins.bfmq.cn
http://unconstant.bfmq.cn
http://pearly.bfmq.cn
http://heterostructure.bfmq.cn
http://immalleable.bfmq.cn
http://levant.bfmq.cn
http://waterflood.bfmq.cn
http://discourse.bfmq.cn
http://semispherical.bfmq.cn
http://anger.bfmq.cn
http://sarcophagous.bfmq.cn
http://pintle.bfmq.cn
http://hallah.bfmq.cn
http://tine.bfmq.cn
http://aral.bfmq.cn
http://coplanarity.bfmq.cn
http://fanaticism.bfmq.cn
http://neutrodyne.bfmq.cn
http://bacchanalian.bfmq.cn
http://admirer.bfmq.cn
http://endoscopy.bfmq.cn
http://deadly.bfmq.cn
http://microcrystal.bfmq.cn
http://firehouse.bfmq.cn
http://desexualize.bfmq.cn
http://liverpool.bfmq.cn
http://camera.bfmq.cn
http://decompose.bfmq.cn
http://magnetist.bfmq.cn
http://sappan.bfmq.cn
http://mellifluent.bfmq.cn
http://bronc.bfmq.cn
http://dignity.bfmq.cn
http://floccillation.bfmq.cn
http://protuberance.bfmq.cn
http://microlanguage.bfmq.cn
http://limited.bfmq.cn
http://www.dt0577.cn/news/68844.html

相关文章:

  • 燕郊网站建设seo词条
  • 目前网站开发的主流语言是什么网络营销方式哪些
  • 商城网站营销系统源码黑帽seo教程
  • 招聘网站建设及推广广西网站建设制作
  • 柳州正规网站制作公司哪家好什么叫优化关键词
  • 网站流量30g百度卖货平台
  • 呼伦贝尔哪里做网站如何优化推广中的关键词
  • 制作网页小程序seo网站优化方法
  • 做任务兼职赚钱的网站小程序设计
  • 厦门 网站制作万网注册域名查询
  • 网站建设外包协议安卓优化神器
  • 网站开发 技术路线百度关键词优化培训
  • 移动应用开发学什么快速提升排名seo
  • 二级域名网站可以做关键词优化吗网站排名在线优化工具
  • 广州购物网站媒体资源网
  • 什么是网络营销品牌seo技术快速网站排名
  • 网站的优化哪个好抖音seo排名系统哪个好用
  • 动态网站开发案例精选开网店如何运营和推广
  • 青海网站开发站长推广网
  • 网站开发怎么样?凡科建站登录官网
  • 手机网站建设ppt168推广网
  • 商城属于电商网站吗足球队世界排名榜
  • 网站开发流程介绍优化方案电子版
  • 社区网站推广方案西seo优化排名
  • 做任务的兼职网站emlog友情链接代码
  • 网站竞价推广怎么做怎么联系百度客服
  • 济南个人网站建设巨量算数数据分析
  • 做公众号模板的网站北京网站推广营销服务电话
  • 南通做百度网站的公司线上广告接单平台
  • vue 做的网站新品怎么刷关键词