上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 56 下一页
摘要: View 的 WM_LBUTTONDOWN 事件消息。 void CMFCApplication1View::OnLButtonDown(UINT nFlags, CPoint point) { CString str; str.Format(TEXT("x = %d, y = %d"), poin 阅读全文
posted @ 2024-01-24 17:14 double64 阅读(22) 评论(0) 推荐(0)
摘要: ▲ 类向导->MFC类 创建两个子窗体。 1。创建两个子窗体。 2。属性设置:1)、“Style”选择“Child”;中文版“样式”选择“下层”。2)、“Border”为“None”;中文版“边框”选择“无”。 3。主窗体中实例子窗体对象: 声明: private: CSubForm1* m_CSu 阅读全文
posted @ 2024-01-24 10:01 double64 阅读(165) 评论(0) 推荐(0)
摘要: ▲ 点击 OK 按钮,会隐藏或者显示旁边的Cancel按钮 void CMFCApplication3Dlg::OnBnClickedOk() { int show = m_Btn_Canc.IsWindowVisible() ? SW_HIDE : SW_SHOW; m_Btn_Canc.Show 阅读全文
posted @ 2024-01-23 20:53 double64 阅读(198) 评论(0) 推荐(0)
摘要: 重写PreTranslateMessage(MSG* pMsg)函数。 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lPa 阅读全文
posted @ 2024-01-23 20:31 double64 阅读(184) 评论(0) 推荐(0)
摘要: ▲ 绘制一行简单文字 OnPaint() 消息。 void CMFCApplication6Dlg::OnPaint() { CPaintDC cdc(this); /***OnPaint 绘制简单文字*****/ cdc.TextOutW(100, 100, TEXT("你好,MFC!")); i 阅读全文
posted @ 2024-01-23 17:14 double64 阅读(118) 评论(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 阅读(44) 评论(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 阅读(109) 评论(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 阅读(178) 评论(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 阅读(449) 评论(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 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 56 下一页