![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC
htj10
这个作者很懒,什么都没留下…
展开
-
MFC使用CHtmlView实现js与dialog的交互
类CBaseHtmlView// BaseHtmlView.cpp : 实现文件//#include "stdafx.h"#include "HtmlDialog.h"#include "BaseHtmlView.h"// CBaseHtmlViewIMPLEMENT_DYNCREATE(CBaseHtmlView, CHtmlView)///////////////////////// 实现 JS 调用 Cpp begin //////////////////// 例如:原创 2021-01-05 21:12:22 · 493 阅读 · 0 评论 -
VC获取多个屏幕的分辨率(坐标大小)
使用 ::EnumDisplayMonitors////////// 用一个全局函数(回调函数)获得第二个屏幕的大小 //////////////////////////// 在OnInitDialog()中调用 //////////////////////////////////CRect g_ScreenRect2;//第二块屏幕的大小BOOL CALLBACK MonitorProc(HMONITOR hMonitor, HDC hdc, LPRECT lprc, LPARAM dwD.原创 2020-11-09 20:25:59 · 1203 阅读 · 0 评论 -
VC中的_variant_t和_bstr_t
////////////////////////////////////////////////////////////////////////////////// Wrapper class for VARIANT/////////////////////////////////////////////////////////////////////////////////* * VARENUM usage key, * * * [V] - may appear in a VARIANT原创 2020-12-05 11:54:52 · 545 阅读 · 0 评论 -
VC 使用ADO处理大字段BLOB
CAdo ado;ado.InitADOConn();try{ ado.OpenRecordset(_T("select top 1 * from picture")); ado.m_pRecordset->AddNew();//添加新行 CFile file (strFilePath,CFile::modeRead); DWORD fileLen = file.GetLength(); char * buffer = new char[fileLen]; file.Read(b原创 2020-12-05 11:39:42 · 191 阅读 · 0 评论 -
VC 中使用ADO访问数据库
VC 中使用ADO访问数据库前言封装ADO的类使用CAdo的例子查询增常用的ADO数据库连接串Access数据库(xxx.mdb)Oracle数据库前言ADO (ActiveX Data Objects,ActiveX数据对象)是Microsoft提出的应用程序接口(API)用以实现访问关系或非关系数据库中的数据。封装ADO的类使用msado15.dll首先在 在stdafx.h中添加#import "c:\\program files\\common files\\system\\ado\\m原创 2020-12-01 22:33:34 · 234 阅读 · 0 评论 -
VC中 SAFEARRAY 的使用
前言何谓SAFEARRAY:SAFEARRAY实际上是一个结构,关于这部分可以参考MSDN。typedef struct tagSAFEARRAY { USHORT cDims; USHORT fFeatures; ULONG cbElements; ULONG cLocks; PVOID pvData; SAFEARRAYBOUND rgsabound[1];} SAFEARRAY;创原创 2020-12-01 21:28:02 · 660 阅读 · 0 评论 -
MFC 中 BITMAPFILEHEADER、BITMAPINFOHEADER及BMP结构详解
BITMAPFILEHEADER、BITMAPINFOHEADER及BMP结构详解转载 2020-11-28 11:45:19 · 423 阅读 · 0 评论 -
VC保存和显示数据库图像(BMP)--(转)
VC保存和显示数据库图像(BMP)转载 2020-11-28 11:41:53 · 79 阅读 · 0 评论 -
MFC中窗口最大化以后GetWindowRect获取的大小
对话框的最大化MFC新建一个基于对话框的程序,资源里添加一个按钮,GetWindowRect,双击该按钮,添加响应函数void CtestDialogDlg::OnBnClickedButton1(){ // TODO: 在此添加控件通知处理程序代码 CRect rc; CString str; this->GetWindowRect(rc); str.Format(_T("GetWindowRect:(%d,%d,%d,%d)"), rc.left, rc.top, rc.righ原创 2020-11-28 11:15:55 · 755 阅读 · 0 评论 -
CDC的DrawText
The method of formatting the text. This parameter can be one or more of the following values.表 1 Value Meaning DT_BOTTOM Justifies the text to the bottom of the rectangle. This value is used only with the DT_SINGLELINE value. DT_CA原创 2020-11-26 22:35:17 · 1317 阅读 · 0 评论 -
VC常用函数
获取原创 2020-11-19 13:13:49 · 191 阅读 · 0 评论