Problem with MFC code with ActiveX
-
Hi, I created one dialog based application. When i draw listbox on dialog box and then any activeX partially overlapping the listbox. As at build time AcitiveX control is behind the Listbox control. But after running, AcitiveX comes to the front. I need to have ActiveX behind the listbox at runtime also. Or AcitveX contorl' position should be consistence in both run and build mode. I need to solve it very urgently, Please suggest some ideas. Harinath Reddy Bangalore, India-560076
-
Hi, I created one dialog based application. When i draw listbox on dialog box and then any activeX partially overlapping the listbox. As at build time AcitiveX control is behind the Listbox control. But after running, AcitiveX comes to the front. I need to have ActiveX behind the listbox at runtime also. Or AcitveX contorl' position should be consistence in both run and build mode. I need to solve it very urgently, Please suggest some ideas. Harinath Reddy Bangalore, India-560076
Bring your listbox to top using BringWindowToTop member function in your OnInitDialog. So, your listbox will always be on your ActiveX. Hope this helps
-
Bring your listbox to top using BringWindowToTop member function in your OnInitDialog. So, your listbox will always be on your ActiveX. Hope this helps
Thanks for the suggestion. But My problem is not only with a particular control or a specific order. I will tell the problem again.. If u create Just a MFC AppWizard "dialog based" application. Now if u draw any controls like: Listbox, edit control,combobox but not button and then ActiveX control overlapping with above control. Runtime appearence of ActiveX will be different ie activeX will come to the front. This behavior is just with MFC code. I want the consistence behabior of ActiveX with Other controls. I expect some idea from u. Once again thanks -Harinath Harinath Reddy HOneywell Technology Solutions Lab, Bangalore, India-560076