VC - Creating an Active X Control by subclassing ComboBoxEx

I need a way to come up with a simple (free) combobox activeX control I
can use in a third party development tool.  I tried just subclassing
ComboBoxEx using the ActiveX control wizard in VC6.  It clearly creates
the control, but it doesn't seem to be created with the properties and
methods (like AddItem/New) and when I plop on a VB6 form it doesn't
look like a combobox.  Granted I am newbie working way over my head, by
why would the ActiveX control wizard ask me which control to inherit
from if it isn't going to give me _roughly_ the same functionality?
Can anyone point me in a direction?

0
timnels (2)
7/19/2005 12:09:36 PM
vc.mfc 33608 articles. 0 followers. Follow

1 Replies
768 Views

Similar Articles

[PageSpeed] 19

Hi,

Subclassing an existing control makes your ActiveX Control a combobox 
control. You can interact with the control using the messages recognized by 
a combobox (CBM_*). However the external interface ( AddItem, Clear, etc) 
are totally your responsibility.

Atul Godbole
http://www.ssware.com/
Shell MegaPack - Windows Explorer Shell Controls for ActiveX and .Net


<timnels@gmail.com> wrote in message 
news:1121774976.523086.107910@g44g2000cwa.googlegroups.com...
>I need a way to come up with a simple (free) combobox activeX control I
> can use in a third party development tool.  I tried just subclassing
> ComboBoxEx using the ActiveX control wizard in VC6.  It clearly creates
> the control, but it doesn't seem to be created with the properties and
> methods (like AddItem/New) and when I plop on a VB6 form it doesn't
> look like a combobox.  Granted I am newbie working way over my head, by
> why would the ActiveX control wizard ask me which control to inherit
> from if it isn't going to give me _roughly_ the same functionality?
> Can anyone point me in a direction?
> 


0
Atul
7/19/2005 2:19:52 PM
Reply:

Similar Artilces:

Read data from Owner Draw Controls
Hey Friends Is there a way by which i can read data from owner draw control in another application? Regards you can use WriteProcessMemory / ReadProcessMemory to inject your datas and codes. But, you need to know about how to work target owner draw control. It's harder than just injection techniques. Using disassembler and reverse engineering, you can done your work. -- WebSite : Realization of Dream { imagine your dream} - http://rodream.net WebMail : rodream@naver.com "vikrantkpr@gmail.com" wrote: > Hey Friends > > Is there a way by which i can ...

Cannot create a Universal Security Group in AD.
Hello all, I have an Exchange 2003 Enterprise. I am trying to set it up to host two domains. In order to do this, I need to setup a group to use. This group is required to be a security group that grant permissions and be able to send mail to my second domain. I created a new OU in AD users and Computers. When I tried to create the group under this OU, I found that the universal button is greyed out. The group scope can be 1. Domain Local, 2 . Global, and 3 Universal while the Group Type can be Security or Distribution. I want to select Universal in Group Scope and Security in Group ...

Error -2147221233 from background index create
Help I have a Exchange server 2003 and I keep getting Event ID 1229 error. Description reads as follows: Error -2147221233 froom background index create Folder 1-40B2C7 index ?T668f+Q674a Database "First Storage Group\Mailbox Store (AUSTIN)" I have clicked on the web link and is tells me that the fix was in Exchange 2003 SP1 I have installed SP2 and still getting the error, on top of that it generates a 5MB log file killing on disk space. Can anyone help Please....... -- Thanks Duane This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C75FD7.0BCBEE30 C...

Email activities trigger or run more than once
We have a workflow that triggers on a contact attribute change that sends an email to the contact. The contact may often, but not always, receive more than one email and we can see multiple activities that sent the email. Id there a config or something that attempts to resend an email if it is not sent immediatly due to a poor system response or similar? Is this in the CRM server or router? Hi I am having this same issue at a client. I recently added a group of workflows to send off emails and help control some data etc. and the workflows are running like crazy, the same workflow runs mo...

In Macro: return column value of active cell
Using the VB tools in Excel 2003, am trying to return the column value of the active cell. Any suggestions? Hi Jim col_no = ActiveCell.column Frank Jim wrote: > Using the VB tools in Excel 2003, am trying to return the > column value of the active cell. Any suggestions? Jim, In the immediate window ?ActiveCell.Column -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Jim" <anonymous@discussions.microsoft.com> wrote in message news:74d001c3e771$35a5e0d0$a001280a@phx.g...

Create node under a childless node
Hi, I have the following problem when I try to add a new node under a tree parent node. ok, I will give you a example: Node1 -childnode1 Node2 -childnode2 Node3 I have a context menu, that appear on Right Click mouse, on a node, so from this menu I can add new node. For example right click on Node1 will create a new node (child) under Node1. pNENode is a object fill with some data HTREEITEM parent = m_ctlNavigationTree.GetSelectedItem(); HTREEITEM hItem = m_ctlNavigationTree.InsertItem ( pNENode->GetDisplayText(),m_icons.GetIconKey(pNENode->GetIcon()), m_icons.GetIcon...

create folder to all users
i am searching for a way to create a folder called search and replay under the outbox folder. i do not wish to use a plublic folder. the search and replay folder will open up to a web page. i need to know if there is any way of creating this folder without going to each of the workstations. we are running exchange 2003 w/ mixed outlook versions (200,xp,2003). please offer me any ideas you might have. thank you for your help. You'll have to script a solution. Nothing native in Exchange will let you do this and deploy to existing users. Nue "murr" <martynaughton@gmail....

ActiveWorkbook.PivotCaches.Create in Excel 2007
Hello, We just upgraded to 2007 from 2003 and now my pivot tables don't get create. I get an error: Type mismatch when calling Create. Set pivotDataRange = dataSheet.UsedRange ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:=pivotDataRange) Is there a change that no longer allows a range to be set as the SourceData? Thanks, Joe ...

range equal zero then "x"
If I wanted to check to see if all cells in a range are blank how would I do that. I want to put an "x" in the formula cell if all cells in the range are zero. thank you very much! Jeff =IF(COUNTBLANK(Range)=ROWS(Range),"x","not blank") -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com "It is a good thing to follow the first law of holes; if you are in one stop digging." Lord Healey "jzachar" <jzachar@discussions.microsoft.com> wrote in message news:CE64CF49-BF03-4CE0-B4B5-98C52...

How to give x axis titles dynamically in a mschart---bar char
Hi, I need to know how to give x axis title dynamically in a barchart. now i give that one at design time...problem is that when the user minimize the window the alignment with the titles and corresponding bar is not proper thanks, Harish ...

Can't create an account to account relationship in the account ent
Is this because the default (Parent Account) relationship already exists? Can you not have duplicate relationships? Thanks in advance for the clarification. > Is this because the default (Parent Account) relationship already exists? Yes. > Can you not have duplicate relationships? Yes, you cannot have duplicate relationships in this manner. To do this you need to use the Relationships/Relationship Roles functionality, where you can pretty much do any kind of relationship between clients (ie accounts and contacts.) HTH, R. "GoodByeGoldmine" wrote: > Is this beca...

Control Select Query Output Field Type
I have a simple query to generate sales closure rates Invoiced Rate: Format(([Invoiced]/[Ordered]),"#00.00%") where Invoiced & Ordered values are linked from other tables. The query generates the percentages correctly, but the field type is Text. I need the Output to be numeric (yet retain the %) If you don't want a string, then don't use the format function. If you use the format function you are going to get a string returned. You can use the format property of a control in a report or form to display the value as percentage. John Spencer A...

Can't Create/Save/Print EPS
Crew I have a 4 page brochure I created in 1999 when I first came on wit my present company, that turned out to be useful when updated t cover a current issue in our town...to now be mailed out to th entire community (10,000 residents. The commercial printer of course wants an EPS file I attempted the first stage of this EPS saving process, which is t install a PostScript driver, but then only got as far as Print Setu Properties in the second phase Since we don't have any such type printers at my company, I ha followed the directions for installing a generic EPS version (Apple. That w...

create distribution list from group of addresses given in word an.
how may I create distribution list from group of addresses given in word and excel format without retyping each individual name, address, tel#, etc? Thank you. Try the method here: http://www.outlook-tips.net/archives/2004/20041105.htm BTW, DLs only use email addresses. if you want to create contacts with the phone #, import the list to outlook using file, import then create a dl using those contacts. -- Diane Poremsky [MVP - Outlook] Author, Teach Yourself Outlook 2003 in 24 Hours Coauthor, OneNote 2003 for Windows (Visual QuickStart Guide) Author, Google and Other Search Engines (V...

How to create a CEdit custom Scroll bar
Good morning developers. I am currently almost halfway developping a custom scroll bar for a CEdit control. My problem is that it almost works ok in Debug mode but it is unacceptable in release mode. Is there any trails I should look into on how to properly skin a CEdit control Scroll bar. The way I did it is I disabled the scroll bar in the MFC UI designer and I am painting a scroll bar in the NC Area. Is this the proper way to do It? I cought almost all the message to drag the thum, and the mouse wheel and auto moving the thumb if the view is scrolled when typing. Currently I am st...

Error in Exchange 2003 Creating Public folder
I am getting the following message when creating a new public folder in the exchange systems manager (V2003). "An existing connection was forcibly closed by the remote host" Facility: win32 ID No: c0072746 Exchange System Manager A few people have reported this in forums, yet no one seems to have the answer... Any ideas. Dave Hi Dave, Do you have SSL installed? Please check the settings on Default Web Site, properties, Directory security, Secure communications, Edit. Is "require client certificates" checked? Select "ignore client certificates" and restar...

Visio ActiveX Control
Hi I have a Visio ActiveX Control embedded in my VC++ program. I am really struggling to find any consistent documentation. The main thing I am stuck on is .. locking all the elements in the Visio document from the C++ code - has anyone done this please? thanks, Neil Post this in a Office newsgroup which specialises in office/visio object model. A quick search for Visio object model gets me this: http://msdn2.microsoft.com/en-us/library/aa175615(office.11).aspx Keep in mind that its relatively easier to do automation in VB or .Net than C++. --- Ajay "neilsolent" <neil@s...

GetModuleFileName in my COM returns the exe that created the process...
What I wanted to do was get the file version of my COM dll. TCHAR szName [MAX_PATH]; HMODULE hMod = GetModuleHandle (NULL); GetModuleFileName (hMod, szName, sizeof(szName)); returns my exe path. What I want is the path to the dll (so I can GetFileVersionInfo( ... ) ). The same code runs in my exe to do the same thing, so I don't want to hard code a name in. BTW the code sits in a logger which is a static singleton object. What I didn't appreciate was that there are two objects, one in the exe and one in the dll. I suppose the dll sits in its own memory space? "Simon L&quo...

Compact and Repair function creates a new mdb file, Database 1, 2,
When we use the compact and repair function in Access 2007, on a database created in Access 2000, it creates a new database file named Database. Subsequent compactions create additional databases named Database 1, Database 2, etc. This is on a network drive, and it is a replicated database. Is the new file that is created the new version of the compacted original and should it therefore be renamed and the original be deleted? The orginal database size doesn't change, the new one that is created is considerably smaller. Also, should the replicated copies be individually compact...

Sheet activate question
I have 5 sheets that each process "Worksheet_Activate()". When my workbook first opens, Sheet1 is automatically selected by default as the first active sheet, however it does not receive any "Activate" event when the workbook is first loaded. What is a good way to ensure that the default activated sheet's "Worksheet_Activate()" handler is called?? thank you! Hi Robert Just put something like this in the ThisWorkbook module Private Sub Workbook_Open() Sheets("Sheet1").Activate End Sub Then when sheet1 is activated the wor...

how to creat dashboard
how to creat dashboard in Excel? Generally speaking, a dashboard is a quick display of information that is pertinent to your user. So, to create one, you will want to have several charts/data tables displayed on one sheet, so that your user can see all the information in one glance. Try doing a google search for excel dashboards, or check out www.PeltierTech.com/WordPress -- Best Regards, Luke M "Saif" <Saif@discussions.microsoft.com> wrote in message news:A3BB6E7D-9EE6-47B7-8193-991D3D98A17F@microsoft.com... > how to creat dashboard in Excel? ...

Export public folder adress book into Active Directory... OMA...
Hi we would like to export an address book from a public folder into active directory (contact object) in order to see contacts from OMA (oultook mobile access). Does it exist any other solution to view a adress book (or address book' contacts) which remain to a public folder from OMA ? The only the solution we found is to export this adress book into AD (creating contact objects...) But to do that we know we must user Csvde.exe but we don't know how to create a csv file from the adress book... Any idea or solution ? If all you want to do is be able to have OMA users view Public ...

email created with VB won't send
I have an application, written in VB6, that attempts to use MAPI to send an email (BCC) to a small number (typically 30-40) recipients. Here is the code: MAPISession.DownLoadMail = False MAPISession.SignOn MAPIMessages.SessionID = MAPISession.SessionID MAPIMessages.Compose MAPIMessages.MsgSubject = Subject MAPIMessages.MsgType = "SMTP" MAPIMessages.MsgNoteText = .tbIntro.Text & Paragraph & MessageText For Each strAddress In .Addre...

Row select mode to highlight active row of active cell
Yet another simple convenience for folks with large spreadasheets. Whatever row and/or column you are in gets highlighted. Sure, you could select the row or column heading, but so often you are tooling around a large spreadsheet and it would be nice not to have to finger your way over to track across. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestio...

Adding Helptext for edit controls
When i used vc++ version 6 i remember you could add help text for a control that would appear on the screen when you hovered the mouse over it. How can you get this functionality working in vc++ .net version? Look Like you are Looking for ToolTips look for CToolTipCtrl class or take a look at this article http://www.codeproject.com/dialog/windowtip.asp -- With Regards Alok Gupta Visit me at http://alok.bizhat.com "I think this will Help" "Chris Baker" <ChrisBaker@discussions.microsoft.com> wrote in message news:5AF95006-87D7-49A7-B6...