Exactly Mike, that's what i am trying to do.
But when i do exactly what the article says i get error :winocc.cpp line 307. Basically it doesn't like the movewindow method. I tested the control using visual studio activex test control container. Tried with IE as the article says same error message.
Last edited by tarunk; February 15th, 2008 at 04:58 AM.
I'm using Visual Studio 2005 and I followed the sample program in the article above. I was able to build and display the control in the test container. Make sure you set the resource flags for the dialog as stated in the article.
That's strange. I tried again exactly with the resources and everything mentioned. Didn't work. Point no 5. says using classwizard create oncreate(wm_create) , i don't know if it sounds silly. But i created a virtual OnCreate(LPCREATESTRUCT lpCreateStruct) in the ctrl.h and cpp and added the code.
Here is a .h and .cpp file as i can't attach the entire project(too big). if you can help to find out what is wrong.
Corrected the virutal to afx_msg...that was a silly mistake.
isn't OLEMISC_STATUS for ATL activex ctrl... i tried to add it, but the compiler complains. I believe i need to add the atl header files. Documentation says OLEMISC_SIMPLEFRAME(miscstatus) but my code is happy with void. Bit confusing. Also if i try with the second addition, the activex container complaines there is an unknown error. Not easy isn't it?
I used the project wizard too, mfc activex control wizard. If i edit just the first part you mentioned, making it afx-msg, my container says unspecified error(i wrongly wrote only after the second addition). I wish i could get this done.