上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 56 下一页
摘要: ▲ 绘制一行简单文字 OnPaint() 消息。 void CMFCApplication6Dlg::OnPaint() { CPaintDC cdc(this); /***OnPaint 绘制简单文字*****/ cdc.TextOutW(100, 100, TEXT("你好,MFC!")); i 阅读全文
posted @ 2024-01-23 17:14 double64 阅读(104) 评论(0) 推荐(0)
摘要: 测试程序: public class TAKS_TEST { private readonly Dictionary<int, Task<T_TEST>> DataDic = new Dictionary<int, Task<T_TEST>>(); private T_TEST GetRes(int 阅读全文
posted @ 2024-01-18 11:24 double64 阅读(36) 评论(0) 推荐(0)
摘要: List<int> list = new List<int>(); int[] arr = list.ToArray(); if (arr != null) { Console.WriteLine(arr.Length); } int[] arr1 = new int[0]; if (arr1 != 阅读全文
posted @ 2024-01-17 20:27 double64 阅读(102) 评论(0) 推荐(1)
摘要: private void btn_Test_Click(object sender, RoutedEventArgs e) { CogFitCircle cogFitCircle = new CogFitCircle(); cogFitCircle.AddPoint(0, 10); cogFitCi 阅读全文
posted @ 2024-01-10 14:21 double64 阅读(168) 评论(0) 推荐(0)
摘要: ▲ 样式 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using Sy 阅读全文
posted @ 2023-12-29 10:30 double64 阅读(427) 评论(0) 推荐(0)
摘要: 直接遍历: foreach (Control ctrl in cogToolBlockEditV2.Controls) { if (ctrl is SplitContainer spc) // 设置默认宽度 { string n = spc.Name; spc.SplitterDistance = 阅读全文
posted @ 2023-12-28 17:16 double64 阅读(101) 评论(0) 推荐(0)
摘要: // 返回 str 从前往后,第 count 次出现 ch 字符处的索引位置,失败返回 -1; protected static int IndexOf(string str, char ch, int count) { if (count < 1) { return -1; } int index 阅读全文
posted @ 2023-12-26 13:54 double64 阅读(305) 评论(0) 推荐(0)
摘要: ▲ 效果 头文件新增空间指针: private: CStatic* pBMP; BOOL CMFCApplicationBMPDlg::OnInitDialog() 里面初始化: // TODO: 在此添加额外的初始化代码 // 初始化字段 pBMP = (CStatic*)GetDlgItem(I 阅读全文
posted @ 2023-12-09 22:13 double64 阅读(199) 评论(0) 推荐(0)
摘要: ▲ 样式Demo 关联控件变量m_CList,在属性中将视图(View)设置成Report(报表)模式。 在BOOL CMFCApplication4LlisBoxDlg::OnInitDialog()初始化函数中添加测试代码: // TODO: 在此添加额外的初始化代码 //m_CList.Set 阅读全文
posted @ 2023-12-09 21:27 double64 阅读(71) 评论(0) 推荐(0)
摘要: .cpp头文件中需包括 using namespace System; //String^库文件 using namespace System::Runtime::InteropServices; //Marchal库文件 函数内容 char* c = "adsfdasf"; String^ str 阅读全文
posted @ 2023-12-08 16:18 double64 阅读(133) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 56 下一页