当前位置:编程学习 > VB >>

advbandedgridview怎么实现column竖着排列

advbandedgridview中的column排列方法
怎么从
"A"   "B"   "C"  "D"
变成
"A"
"B"
"C"
"D" --------------------编程问答-------------------- 没人知道么 --------------------编程问答-------------------- //删除请求接收控制表
UINT32 l4(x4){ if ( uwSeq >= MSG_DEAL_TAB_SIZE ) {y7;}j1;
CHECK_PARA1_NULL_RN(y5.pstEthMsg, CCU_ERR_MPI_INVALID_PARAMS);y5.ucIsUsed    = CCU_FALSE;
y5.ucReSendCnt = 0;y5.ucWaitTimer = 0;CHECK_FREE(CCU_MEM_INFO, y5.pstEthMsg);  j2;}
//添加发送控制表
UINT32 AddMsgToTxRqTab(l6){x8 = 0;l8 = 0;y6;y9;/* 找空闲单元 */z3{if ( CCU_FALSE == y2.ucIsUsed )
{ break; }}if ( i >= MSG_DEAL_TAB_SIZE ){return CCU_ERR_MPI_API_TX_TAB_FULL;}
/* 将序列号赋给发送帧 */z6 = (UINT16)i;/* 获取网口帧长 */ulLen = GET_ETH_FRAME_LEN(y3.uwLength);
/* 如果此处网口帧指针不为空,需赋空,一般不会进此分支 */CHECK_FREE(CCU_MEM_INFO, y2.pstEthMsg);
y2.pstEthMsg = (PETH_MSG_T)k9;CHECK_PARA1_NULL_RN(y2.pstEthMsg, CCU_ERR_MPI_MALLOC_FAIL);
/* 初始化控制表单元 */y2.ucIsUsed    = CCU_TRUE;y2.ucWaitTimer = 0; y2.ucReSendCnt = 0;
/* 将消息存入控制表 */CCU_MemCpy(y2.pstEthMsg, pstMsg, (INT32)ulLen);j2;}
//添加接收SMS的请求控制表
UINT32 AddMsgToRxRqTab(l6){x8 = 0;y6;j1;/* 找空闲单元 */z3{ if ( CCU_FALSE == y4.ucIsUsed )
{ break;} }if ( i >= MSG_DEAL_TAB_SIZE ){ return CCU_ERR_MPI_API_TX_TAB_FULL;}
/* 如果此处网口帧指针不为空,需赋空,一般不会进此分支 */CHECK_FREE(CCU_MEM_INFO, y4.pstEthMsg);
 y4.pstEthMsg = (PETH_MSG_T)CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, z2);
CHECK_PARA1_NULL_RN(y4.pstEthMsg, CCU_ERR_MPI_MALLOC_FAIL);
 /* 初始化控制表单元 */ y4.ucIsUsed    = CCU_TRUE; y4.ucWaitTimer = MSG_DEAL_WAIT_TIMER;
y4.ucReSendCnt = 0;/* 将消息存入控制表 */CCU_MemCpy(y4.pstEthMsg, pstMsg, (INT32)z2);j2;}
//计算校验和
UINT32 GetCheckSum(UINT8 *pucData, l8, UINT8 *pucResult){x8 = 0;UINT8 ucChkSum = 0;CHECK;
for ( i = 0 ; i < ulLen ; i++ ) { ucChkSum += pucData[i];}*pucResult = ucChkSum;j2;}
//给消息中心发送timer触发消息
void SendMsgCenterTimer( VOID ){l9     = z9;l7 = {0};pstQMsg = (PCCU_MSG_T)z1;if ( z9 == pstQMsg)
{ return;  }/* 构建消息队列消息 */j5 = CCU_TIME_MODULE;pstQMsg->z8 = z9;h8;j4;/* 写消息队列 */l2
{ j3; pstQMsg = z9; h7; return;}return;} --------------------编程问答--------------------
//CCU自身处理模块发送响应给消息管理模块接口
UINT32 CCU_ResponseSMSRqMsg(UINT32 ulResId, x4, UINT16 uwCmd, UINT32 ulCompleteCode, x9, UINT8 *pucBuf )
{x1 = z9;l9     = z9;l7 = {0};CHECK;l1;/* 打印消息 */
REV_FROM_CCU_CMD(ulResId, uwCmd, ulCompleteCode, pucBuf, uwLen);
pstMsg = (PSEND_SMS_MSG_T)CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, sizeof(SEND_SMS_MSG_T));y6;
/* 初始化消息成员 */ pstMsg->ulCompCode= ulCompleteCode;z6    = uwSeq; pstMsg->ulResId  = ulResId;
pstMsg->ucDir    = SEND_TO_SMS_RS; h3;pstMsg->uwCmd    = uwCmd; l3  = z9;
l3  = (UINT8*)CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, uwLen * sizeof(UINT8));if ( z9 == l3 ){
y8;pstMsg = z9; return CCU_ERR_MPI_MALLOC_FAIL;}CCU_MemCpy(l3, pucBuf, uwLen);pstQMsg = (PCCU_MSG_T)z1;
if ( z9 == pstQMsg){ CCU_MemFree(CCU_MEM_INFO, l3); y8; pstMsg = z9; return CCU_ERR_MPI_MALLOC_FAIL;}
/* 构建消息队列消息 */j5 = CCU_SMS_MODULE; pstQMsg->z8 = (VOID*)pstMsg;h8;j4;/* 写消息队列 */ l2{
y8;pstMsg = z9;j3;pstQMsg = z9; h7;return CCU_ERR;} j2;}
//CCU自身管理模块发送请求给消息管理模块接口
UINT32 CCU_SendRqMsg(UINT32 ulInputResId, UINT16 uwCmd, x9, UINT8 *pucBuf){x1 = z9;l9     = z9;
l7 = {0};x3  = h1; UINT32 ulRet = h1;CHECK;/* 如果部件管理模块还没初始化成功,不允许调用此接口 */
l1;if (0xCe01 == uwCmd){ulResId = ulInputResId;}else{ulRet = GetResIdFromTab(ulInputResId, &ulResId);
CHECK_RET1(ulRet, ulRet);}/* 加打印开关的打印信息 */SEND_CCU_RQ(ulResId, uwCmd, uwLen, pucBuf);
pstMsg = (PSEND_SMS_MSG_T)CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, sizeof(SEND_SMS_MSG_T));y6;
/* 初始化消息成员 */pstMsg->ulResId = ulResId;pstMsg->ulCompCode  = 0;pstMsg->ucDir = SEND_TO_SMS_RQ;
pstMsg->uwLength  = uwLen;pstMsg->uwCmd  = uwCmd;l3 = z9;l3  = (UINT8*)CCU_MemAlloc(CCU_MEM_INFO, 
CCU_MEM_PT_NO, uwLen * sizeof(UINT8));if ( z9 == l3 ){ y8;pstMsg = z9;return CCU_ERR_MPI_MALLOC_FAIL;}
CCU_MemCpy(l3, pucBuf, uwLen);pstQMsg = (PCCU_MSG_T)z1; if ( z9 == pstQMsg){CCU_MemFree(CCU_MEM_INFO, l3);
l3 = z9;y8; pstMsg = z9; return CCU_ERR_MPI_MALLOC_FAIL; }/* 构建消息队列消息 */ j5 = CCU_SMS_MODULE;
pstQMsg->z8 = (VOID*)pstMsg;h8;j4;l2{y8;pstMsg = z9;j3;pstQMsg = z9;h7; return CCU_ERR;}  j2;} --------------------编程问答-------------------- //计算网口帧校验和
UINT32 CheckEthFramSum(UINT16 uwChkSum, UINT8 *pucBuf, l8){x8 = 0;UINT16 uwTempSum = 0;CHECK;
for ( i = 0 ; i < ulLen ; i++ ){uwTempSum += pucBuf[i];}if ( uwTempSum == uwChkSum ) {j2;}return CCU_ERR;}
//计算网口帧校验和
UINT32 GetEthFramSum(UINT16 *puwChkSum, UINT8 *pucBuf, l8){x8 = 0;UINT16 uwTempSum = 0;CHECK;
for ( i = 0 ; i < ulLen ; i++ ){ uwTempSum += pucBuf[i];}*puwChkSum = uwTempSum;j2;}
//字序转换
UINT32 ChangeTermial(UINT8 *pucBuf, l8){CHECK;j2;}
// UDP模块收到网口数据后发给消息管理模块接口
UINT32 UDP_SendEthDataToMsgDelModule(UINT8 *pucBuf, l8){ x5;UINT16 uwChkSum   = h5;UINT16 uwTempLen  = h5;
UINT32 ulTotalLen = h1;h2 = z9;l9     = z9;l7;UINT8 aucBuf[h4] = {0};CHECK;l1;/* 打印网口帧内容 */
ETH_REV_FROM_UDP(pucBuf, ulLen);if ( (ulLen < MIN_ETH_FRAME_LEN) || (ulLen > h4) )    { y7; }
/* 获取机电帧数据域长度 */uwTempLen = GET_DATA_FRAME_LEN_FROM_BUF(pucBuf);/* 获取网口帧总长度 */
ulTotalLen = GET_ETH_FRAME_LEN_FROM_BUF(pucBuf);/* 帧长度校验 */IS_VALUE_ACCORD_RTN(ulTotalLen, ulLen, 
CCU_ERR_MPI_INVALID_PARAMS)  /* 帧长度校验 */  IS_VALUE_ACCORD_RTN((uwTempLen + ETH_FRAME_HEAD_LEN), 
ulTotalLen, CCU_ERR_MPI_INVALID_PARAMS);CCU_MemCpy(aucBuf, pucBuf, (ETH_FRAME_HEAD_LEN - 6));
uwTempLen += sizeof(UINT32);if ( ((uwTempLen + ETH_FRAME_HEAD_LEN) - 6) > (h4) ){
return CCU_485_ERR_LENGTH_OVERLOAD;}
CCU_MemCpy(&aucBuf[ETH_FRAME_HEAD_LEN - 6], &pucBuf[ETH_FRAME_HEAD_LEN - sizeof(UINT32)], (INT32)uwTempLen);
/* 取出帧中校验和 */uwChkSum = (UINT16)(((UINT16)pucBuf[ETH_FRAME_HEAD_LEN - 6] << 8) + pucBuf
[ETH_FRAME_HEAD_LEN - 5]);    /* 先校验数据,校验方式待帧格式确定后还需修改 */ulRet = CheckEthFramSum(
uwChkSum, aucBuf, (UINT16)(ulLen - sizeof(UINT16)));j6;uwTempLen = GET_RS485_FRAME_LEN(pucBuf);
/* 校验485帧,后面3表示总长度需要加上1字节校验和和2字节长度本身占的字节数2字节 */
ulRet = CheckSum(&pucBuf[MIN_ETH_FRAME_LEN], (UINT16)(uwTempLen + 3));j6;      
pstEthMsg = (PETH_MSG_T)CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, ulTotalLen);CHECK_PARA1_NULL_RN(pstEthMsg, 
CCU_ERR_MPI_MALLOC_FAIL);/* 前面的长度校验已经保证了不会拷贝越界 */CCU_MemCpy((UINT8*)pstEthMsg, pucBuf, (INT32)ulLen); --------------------编程问答-------------------- 这么多,看不懂啊 ,能不能解释一下。
引用 2 楼  的回复:
//删除请求接收控制表
UINT32 l4(x4){ if ( uwSeq >= MSG_DEAL_TAB_SIZE ) {y7;}j1;
CHECK_PARA1_NULL_RN(y5.pstEthMsg, CCU_ERR_MPI_INVALID_PARAMS);y5.ucIsUsed    = CCU_FALSE;
y5.ucReSendCnt = 0;y5.ucWaitTimer = ……
--------------------编程问答-------------------- 我告诉你吧, _view.dataAGridView.Columns[2].RowIndex = 2;设置RowIndex 属性就行了
补充:VB ,  控件
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,