摘要:这边我用对话框来测试mfc的消息反射 当对话框初始化完成之后,点击按钮,首先相应CDialog::OnCommand其中wpARAM(低八位nId,高八位子控件句柄) 和LPARAM(句柄) OnCommand里面先调用了ReflectLastMsg(hWndCtrl);//如果子控件用了消息反射,
阅读全文
摘要:class CGridCtrl : public CWnd { DECLARE_DYNAMIC(CGridCtrl) public: void Create(CWnd* pParent, DWORD dwStyle, RECT rect, UINT nId); void InsertColumn(L
阅读全文
摘要:转载 http://blog.sina.com.cn/s/blog_a79c99e00101c2tp.html
阅读全文
摘要:头文件 #pragma once #include "pch.h" class CGridCtrl : public CWnd { public: void Create(CWnd* pParent, DWORD dwStyle, RECT rect, UINT nId); void InsertC
阅读全文
摘要:已知三点p1(x1,y1,z1),p2(x2,y2,z2),p3(x3,y3,z3),要求确定的平面方程 关键在于求出平面的一个法向量,为此做向量p1p2(x2-x1,y2-y1,z2-z1), p1p3(x3-x1,y3-y1,z3-z1),平面法线和这两个向量垂直,因此法向量n: 平面方程:a(
阅读全文
摘要:1 // Cpp.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 2 // 3 4 #include <iostream> 5 #include <variant> 6 #include <any> 7 #include <string> 8 #include <optio
阅读全文
摘要:std::variant<std::string,int,float>;//作为联合体 using va = std::variant<std::string, int, float>; va v = 23; cout << std::get<int>(v); va v2 = "this is he
阅读全文