How to use ActiveX without dialog ?
-
Hello All ! I want to write an application use ActiveX, but I do not want insert in Dialog. And I think that to do this by two way: 1. Use dialog and insert ActiveX normal, but set Dialog for hide. (Application base on Dialog, only one Dialog) 2. Maybe use only ActiveX in project ?! Need some help. Thank you very much!
-
Hello All ! I want to write an application use ActiveX, but I do not want insert in Dialog. And I think that to do this by two way: 1. Use dialog and insert ActiveX normal, but set Dialog for hide. (Application base on Dialog, only one Dialog) 2. Maybe use only ActiveX in project ?! Need some help. Thank you very much!
Hello! Here is a way to do it. 1- Add the ActiveX to your project and you will get a .h and .cpp file that descripes the control. 2- Let us say the class is CMyCoontrol CMyControl ctrlActiveX; if(!ctrlActiveX.Create(NULL, WS_CHILD, CRect(0,0,0,0), AfxGetApp ()->GetMainWnd(), WM_USER + 9999, NULL, FALSE, NULL)) { AfxMessageBox("Could not create object"); return FALSE; } // Control is created successfully do your work here ......
-
Hello! Here is a way to do it. 1- Add the ActiveX to your project and you will get a .h and .cpp file that descripes the control. 2- Let us say the class is CMyCoontrol CMyControl ctrlActiveX; if(!ctrlActiveX.Create(NULL, WS_CHILD, CRect(0,0,0,0), AfxGetApp ()->GetMainWnd(), WM_USER + 9999, NULL, FALSE, NULL)) { AfxMessageBox("Could not create object"); return FALSE; } // Control is created successfully do your work here ......