how to pass an object to view class.
-
Hello everyone, I have an MFC application with CFormview class. there is an Activex embedded on the form view. I have also declared a variable for the activeX through which i control all the functionalities of the activeX. Now there is another window with a customised list control. So what i am aiming for is, whenever i enter some value in the listcontrol that value should be wrapped in an object and passed to this activeX control. How do i access the pointer of the activex control from the CList class. I have tried declaring a pointer of the object in the view class and then passing that value to the Clist class but that is not working. Can anyone provide any alternative solution?
-
Hello everyone, I have an MFC application with CFormview class. there is an Activex embedded on the form view. I have also declared a variable for the activeX through which i control all the functionalities of the activeX. Now there is another window with a customised list control. So what i am aiming for is, whenever i enter some value in the listcontrol that value should be wrapped in an object and passed to this activeX control. How do i access the pointer of the activex control from the CList class. I have tried declaring a pointer of the object in the view class and then passing that value to the Clist class but that is not working. Can anyone provide any alternative solution?
i think u should declare a varaible and modify the Serialize fun and in listctl command use CEditStringDlg myDialog; myDialog.listcontrolvar= declared variable; if(myDialog.DoModal() == IDOK && myDialog.listcontrolvar!= declared variable) { declared variable= myDialog.listcontrolvar; UpdateAllViews(NULL); SetModifiedFlag(); }
-
i think u should declare a varaible and modify the Serialize fun and in listctl command use CEditStringDlg myDialog; myDialog.listcontrolvar= declared variable; if(myDialog.DoModal() == IDOK && myDialog.listcontrolvar!= declared variable) { declared variable= myDialog.listcontrolvar; UpdateAllViews(NULL); SetModifiedFlag(); }
p_ wrote:
modify the Serialize fun and in listctl command use
modify the Serialize fun and in listctl command use Well sorry i am a newbie... can you explain this...?