From b76cfabb985d364850a04c8a70f5c04293357da4 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期五, 15 十一月 2024 10:06:29 +0800
Subject: [PATCH] 1. 添加控件库 2.Axis设定界面文本字体不跟对话框大小变化3.修复修改用户界面的bug
---
SourceCode/Bond/BLControlsSDK/include/LogCtrl.h | 105 ++++++++++++++++++++++++++--------------------------
1 files changed, 52 insertions(+), 53 deletions(-)
diff --git a/SourceCode/Bond/BLControlsSDK/include/LogCtrl.h b/SourceCode/Bond/BLControlsSDK/include/LogCtrl.h
index 4b81fd1..bcff222 100644
--- a/SourceCode/Bond/BLControlsSDK/include/LogCtrl.h
+++ b/SourceCode/Bond/BLControlsSDK/include/LogCtrl.h
@@ -1,5 +1,4 @@
//LogCtrl.h
-//LogCtrl.h
#ifndef __LOGCTRL_H
#define __LOGCTRL_H
#define __LOGCTRL_LIB_H
@@ -46,18 +45,18 @@
typedef struct tagLOGCELL
{
- BYTE m_nLine; //惑窍谅快 扼牢
- UINT m_nState;//促弗伎苞 捍钦灯绰瘤 ..
- UINT m_nFormat;//沥纺葛靛
- RECT m_rect; //伎狼 康开
- COLORREF m_txtclr;//臂磊祸
- COLORREF m_bkgclr;//硅版祸
- CString m_strTxt;//臂磊
- CFont* m_pfont; //迄飘
- CBitmap* m_pBitmap;//厚飘甘
+ BYTE m_nLine; //鎯戠獚璋呭揩 鎵肩墷
+ UINT m_nState;//淇冨紬浼庤嫗 鎹嶉挦鐏话鐦� ..
+ UINT m_nFormat;//娌ョ汉钁涢潧
+ RECT m_rect; //浼庣嫾 搴峰紑
+ COLORREF m_txtclr;//鑷傜绁�
+ COLORREF m_bkgclr;//纭呯増绁�
+ CString m_strTxt;//鑷傜
+ CFont* m_pfont; //杩勯
+ CBitmap* m_pBitmap;//鍘氶鐢�
}LOGCELL;
-//Orientation=啊肺(1), 技肺(2) bDialog=DoModal()
+//Orientation=鍟婅偤(1), 鎶�鑲�(2) bDialog=DoModal()
class CPrintDC
{
public:
@@ -93,96 +92,96 @@
void RemoveAll();
void operator=(CLogPage& page);
- //青,凯 肮荐甫 汲沥茄促.
+ //闈�,鍑� 鑲崘鐢� 姹叉播鑼勪績.
void SetColCount(int nCount);
void SetRowCount(int nCount);
BOOL RemoveRow(int nRow);
- //厘钎 免仿困摹
+ //鍘橀拵 鍏嶄豢鍥版懝
void SetStartPoint(CPoint startPnt);
CPoint GetStartPoint() const;
- //青,凯 肮荐甫 府畔茄促.
+ //闈�,鍑� 鑲崘鐢� 搴滅晹鑼勪績.
int GetColCount() const;
int GetRowCount() const;
- //气,臭捞甫 汲沥茄促.
+ //姘�,鑷崬鐢� 姹叉播鑼勪績.
BOOL SetColWidth(int nCol, int nWidth);
BOOL SetRowHeight(int nRow, int nHeight);
- //迄飘甫 汲沥茄促.
+ //杩勯鐢� 姹叉播鑼勪績.
BOOL SetCellFont(int nRow, int nCol, CFont* pf);
BOOL SetCellFont(int nsRow, int nsCol, int neRow, int neCol, CFont* pf);
CFont* GetCellFont(int nRow, int nCol);
- //硅版祸阑 汲沥茄促.
+ //纭呯増绁搁槕 姹叉播鑼勪績.
BOOL SetCellBkgColor(int nRow, int nCol, COLORREF color);
COLORREF GetCellBkgColor(int nRow, int nCol);
- //臂磊祸阑 汲沥茄促.
+ //鑷傜绁搁槕 姹叉播鑼勪績.
BOOL SetCellTxtColor(int nRow, int nCol, COLORREF color);
COLORREF GetCellTxtColor(int nRow, int nCol);
- //臂磊困摹 汲沥
+ //鑷傜鍥版懝 姹叉播
BOOL SetCellFormat(int nRow, int nCol, int nFormat);
int GetCellFormat(int nRow, int nCol);
- //Rect阑 汲沥茄促.
+ //Rect闃� 姹叉播鑼勪績.
BOOL SetCellRect(int nRow, int nCol, CRect rect);
BOOL GetCellRect(int nRow, int nCol, CRect& rect);
- //BITMAP阑 汲沥茄促.
+ //BITMAP闃� 姹叉播鑼勪績.
BOOL SetCellBmp(int nRow, int nCol, CBitmap* pBmp);
CBitmap* GetCellBmp(int nRow, int nCol);
- //荤阿屈 弊副锭 绢蠢 困摹甫 弊副 巴牢啊 汲沥茄促.
+ //鑽ら樋灞� 寮婂壇閿� 缁㈣牏 鍥版懝鐢� 寮婂壇 宸寸墷鍟� 姹叉播鑼勪績.
BOOL SetCellLine(int nRow, int nCol, int nState=LCS_RECT/*LCS_RECT*/);
int GetCellLine(int nRow, int nCol);
- //伎俊 臂磊阑 涝仿茄促.
+ //浼庝繆 鑷傜闃� 娑濅豢鑼勪績.
BOOL SetItemText(int nRow, int nCol, LPCTSTR lpstr, int nFormat=DT_CENTER|DT_VCENTER|DT_SINGLELINE);
CString GetItemText(int nRow, int nCol);
BOOL SetCell(int nRow, int nCol, CLogCell lc);
CLogCell* GetCell(int nRow, int nCol);
- //伎阑 捍钦茄促.
+ //浼庨槕 鎹嶉挦鑼勪績.
BOOL CellMerge(int nsCol, int nsRow, int neCol ,int neRow );
- //免仿茄促.(nPageNO绰 其捞瘤 锅龋捞哥 0老 版快 免仿登瘤 臼绰促.)
+ //鍏嶄豢鑼勪績.(nPageNO缁� 鍏舵崬鐦� 閿呴緥鎹炲摜 0鑰� 鐗堝揩 鍏嶄豢鐧荤槫 鑷肩话淇�.)
void Draw(CDC* pDC, int nPageNO=0);
- //SetPageRect(,)窃荐甫 荤侩矫
- //Draw(CDC* pDC, int nPageNO=0);窃荐甫 龋免窍扁 官肺傈俊 荤侩秦具窃
- //侩档:
+ //SetPageRect(,)绐冭崘鐢� 鑽や京鐭�
+ //Draw(CDC* pDC, int nPageNO=0);绐冭崘鐢� 榫嬪厤绐嶆墎 瀹樿偤鍌堜繆 鑽や京绉﹀叿绐�
+ //渚╂。:
// <<page>> <<device>>
// 0 100 0 1000
- // ΓΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΔ ΓΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΔ
- // Β (10,10) (90,10)Β Β (100,100) (900,100)Β
- // Β ΓΑΑΑΑΑΑΑΑΑΑΑΔ Β Β ΓΑΑΑΑΑΑΑΑΑΑΑΔ Β
- // Β Β Β Β Β Β Β Β
- // Β Β Β ΜΜΜΜΜΜΜ>Β Β Β
- // Β Β Β Β Β Β Β Β
- // Β Β Β Β Β Β Β Β
- // Β ΖΑΑΑΑΑΑΑΑΑΑΑΕ Β Β ΖΑΑΑΑΑΑΑΑΑΑΑΕ Β
- // Β (10,40) (90,40)Β Β (100,400) (900,400)Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // Β Β Β Β
- // ΖΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΕ ΖΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΕ
+ // 螕螒螒螒螒螒螒螒螒螒螒螒螒螒螒螒螖 螕螒螒螒螒螒螒螒螒螒螒螒螒螒螒螒螖
+ // 螔 (10,10) (90,10)螔 螔 (100,100) (900,100)螔
+ // 螔 螕螒螒螒螒螒螒螒螒螒螒螒螖 螔 螔 螕螒螒螒螒螒螒螒螒螒螒螒螖 螔
+ // 螔 螔 螔 螔 螔 螔 螔 螔
+ // 螔 螔 螔 螠螠螠螠螠螠螠>螔 螔 螔
+ // 螔 螔 螔 螔 螔 螔 螔 螔
+ // 螔 螔 螔 螔 螔 螔 螔 螔
+ // 螔 螙螒螒螒螒螒螒螒螒螒螒螒螘 螔 螔 螙螒螒螒螒螒螒螒螒螒螒螒螘 螔
+ // 螔 (10,40) (90,40)螔 螔 (100,400) (900,400)螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螔 螔 螔 螔
+ // 螙螒螒螒螒螒螒螒螒螒螒螒螒螒螒螒螘 螙螒螒螒螒螒螒螒螒螒螒螒螒螒螒螒螘
// 200 100,200 2000 1000,2000
//
// CRect page(0,0,100,200);
// CRect device(0,0,1000,2000);
- // 咯归阑 炼陛 林妨搁: CRect device(100,100,900,1900);
+ // 鍜綊闃� 鐐奸櫅 鏋楀Θ鎼�: CRect device(100,100,900,1900);
// SetPageRect(pDC, page, device);
BOOL SetPageRect(CDC* pDC, CRect page, CRect device);
protected:
@@ -193,9 +192,9 @@
CLogItemArray m_liAry;
};
-//厘钎 傈眉甫 包府茄促.
-//厘钎甫 免仿窍扁 困秦 怖 鞘夸窍柳 臼促.
-//CLogPage甫 荤侩秦档 公规窍促.
+//鍘橀拵 鍌堢湁鐢� 鍖呭簻鑼勪績.
+//鍘橀拵鐢� 鍏嶄豢绐嶆墎 鍥扮Е 鎬� 闉樺じ绐嶆煶 鑷间績.
+//CLogPage鐢� 鑽や京绉︽。 鍏绐嶄績.
class CLogCtrl
{
public:
--
Gitblit v1.9.3