随笔分类 - MFC
摘要:// 01 Dll插件Dlg.h : 头文件 // #pragma once #include using std::vector; #include "Shape.h" typedef struct _SHAPE { CPoint Begin; CPoint End; }SHAPE; // CMy01Dll插件Dlg 对话框 class CMy01Dll插件Dlg : p...
阅读全文
摘要:// MyEdit.cpp : 实现文件 // #include "stdafx.h" #include "04 WM_CTLCOLOR消息.h" #include "MyEdit.h" // CMyEdit IMPLEMENT_DYNAMIC(CMyEdit, CEdit) CMyEdit::CMyEdit() { } CMyEdit::~CMyEdit() { } BEGI...
阅读全文
摘要:// MyButton.cpp : 实现文件 // #include "stdafx.h" #include "03 图片按钮.h" #include "MyButton.h" // CMyButton IMPLEMENT_DYNAMIC(CMyButton, CButton) CMyButton::CMyButton() { } CMyButton::~CMyButton() {...
阅读全文
摘要:// 02 GDIDlg.cpp : 实现文件 // #include "stdafx.h" #include "02 GDI.h" #include "02 GDIDlg.h" #include "afxdialogex.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // 用于应用程序“关于”菜单项的 CAboutDlg 对话框 clas...
阅读全文
摘要:#include #include BOOL APIENTRY DllMain(HMODULE hModule, // 模块句柄 DWORD ul_reason_for_call, // 调用原因 LPVOID lpReserved) // 保留 { s...
阅读全文
摘要:// 09 Dll的显式链接.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include typedef void(*PROC2)(); int _tmain(int argc, _TCHAR* argv[]) { //动态加载dll文件 HMODULE hModule= LoadLibrary(TEXT("...
阅读全文
摘要://checkbox getcheck() setcheck() //文本 void CMy03文本框Dlg::OnBnClickedButton1() { // TODO: 在此添加控件通知处理程序代码 m_ctrlEdit.SetWindowText(TEXT("asdhfadfajdfhj\r\nasdfasdf")); int n = m_ctrlEd...
阅读全文
摘要:// FileCleanerDlg.h : 头文件 // #pragma once #include using std::vector; // CFileCleanerDlg 对话框 class CFileCleanerDlg : public CDialogEx { // 构造 public: CFileCleanerDlg(CWnd* pParent = NULL); ...
阅读全文
摘要:// MFCday003Dlg.h : 头文件 // #pragma once #include "MylistCtrl.h" #include "afxcmn.h" // CMFCday003Dlg 对话框 class CMFCday003Dlg : public CDialogEx { // 构造 public: CMFCday003Dlg(CWnd* pParent = NU...
阅读全文
摘要:#pragma once #include using std::vector; // CDlgB 对话框 class CDlgB : public CDialogEx { DECLARE_DYNAMIC(CDlgB) public: CDlgB(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlgB(); // 对话...
阅读全文
摘要:// MyTabCtrl.cpp : 实现文件 // #include "stdafx.h" #include "FileCleaner.h" #include "MyTabCtrl.h" // CMyTabCtrl IMPLEMENT_DYNAMIC(CMyTabCtrl, CTabCtrl) CMyTabCtrl::CMyTabCtrl() { } CMyTabCtrl::~C...
阅读全文
摘要:void CFileCleanerDlg::OnBnClickedButton2() { //打开文件夹 static TCHAR strDirName[MAX_PATH]; BROWSEINFO bi; CString szString = TEXT("选择一个源文件子文件夹"); bi.hwndOwner = ::GetFocus(); ...
阅读全文
摘要:BOOL CDialogEx::OnInitDialog(){ // 设置此对话框的图标。 当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIcon, TRUE); // 设置大图标 SetIcon(m_hIcon, FALSE); // 设置小图标 // TODO: 在此添加...
阅读全文
摘要:#pragma once #include using std::vector; // CMyTabCtrl class CMyTabCtrl : public CTabCtrl { DECLARE_DYNAMIC(CMyTabCtrl) public: CMyTabCtrl(); virtual ~CMyTabCtrl(); // m_ctrl...
阅读全文

浙公网安备 33010602011771号