True DBGrid in VC++
-
Hi, I try to translate text to text in True DBGrid control, but it seems not work in VC++, my code list below: .... CValueItems oValueItems; oValueItems = m_CtrlTDBG.GetColumns().GetItem(&index).GetValueItems(); CValueItemDisp* pValueItemDisp = new CValueItemDisp(); pValueItemDisp->SetValue(old_value); pValueItemDisp->SetDisplayValue(new_value); oValueItems.Add((LPDISPATCH)pValueItemDisp); oValueItems.SetTranslate(TRUE); .... I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!
-
Hi, I try to translate text to text in True DBGrid control, but it seems not work in VC++, my code list below: .... CValueItems oValueItems; oValueItems = m_CtrlTDBG.GetColumns().GetItem(&index).GetValueItems(); CValueItemDisp* pValueItemDisp = new CValueItemDisp(); pValueItemDisp->SetValue(old_value); pValueItemDisp->SetDisplayValue(new_value); oValueItems.Add((LPDISPATCH)pValueItemDisp); oValueItems.SetTranslate(TRUE); .... I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!
liur17 wrote:
I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!
what type of TrueDB grid are using.... UnBounded or bounded
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
liur17 wrote:
I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!
what type of TrueDB grid are using.... UnBounded or bounded
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you