Hi, great article, very helpful indeed.
My problem is when I send the CB_ADDSTRING to my combo box, it almost appears to not work. If I click the down button to open the list, it creates a small little black window. However, if I click inside the drop box and press the down key, all three choices show up.
This is a great article! The cleanliness and the code to perfection makes it even greater. I just wonder if why Microsft MSDN is not as clean and as straight forward as this. Just keep posting such articles.I think codeguru should inform to all its members whenever an article from this guru is posted.
Its was an Article I was looking for. It shows that without getting MESSUP with so much wizard generated code, how to write a clean, to the point Code, to create a COM Application. Thanks !
I have some problem ... Plz. Help !
Instead of writing a COM enabled EXE, I want to write an ActiveX. An ActiveX that is not Generated by Wizard, therefore unnecessary Code is not written. The OCX made by this, should be having this basic functionality -
1) It should contain a Combo Box, and nothing else.
2) The Combo should contain 3 Items, "RED"/"GREEN"/"BLUE".
3) It must Raise only an Event "Click()".
4) It can be placed on Web Page, or on a VB Form.
This tut is good... thanks. I want to be able to write an app which hosts several activex come objects (namely flash and wildtangent stuff), but I find myself so bogged down in message maps, inheritance, and esp. templates that I am getting nowhere fast. I really just want to give up.
I find ATL, with all the weird template suntax and inheritance to still be too much of an effort to actually learn and use. How did we get to a point where we are forced to write code that is this convoluted? Where are we going with this? I will tell you where... to a self created purgatory of confusing, hard-to-follow code that only seems to get more and more complicated as the years go by.
A plea to the teeming masses: don't bother replying to this post with some lies about how 'easy' atl is to use... you are only serving your own egos with such gobblitygook.
But... if anyone out there can suggest a good book or online tutorial that takes a non-mfc type through creating and hosting multiple activex objects with events, etc. Please reply with a specific url or what have you.
I am new ATL. I have composite control created using ATL.
Its a dll..which is getting loaded in to an MFC document.
It has lot of flickering. I noticed the ATL class registered has a name "ATL:0312A2C0" and has class styles.. CS_VREDRAW, CS_HREDRAW b'couse of which the ctrl flickers.
I wanted to remove those styles..I don't know how to use DECLARE_WND_CALLS_EX in this composite control..
I need help..