Hello all, I have a CComboBox control attached to my combobox. My quesiton is, is there a way to allow the user to type in a selection that is not on the list. And if so how do I get that inputed text? Thanks
When your create the combo, you pass it a style, which dictates its behavior. CBS_DROPDOWN is the style you want, call GetWindowText to get the val. Cheers!
I've a CDialog with 2 combo boxes and i want to change the list box of the 2nd como according of the item selected in the first one. I've tried to do this when receiving ON_CBN_SELCHANGE message but i just get the previous item selected instead of the new one (i've associated the 1st...
hellohelp please !in my file .rc i have a combobox : so i choise in propety - style - types = drop down (CBS_DROPDOWN)My question : how can i change combobox s style in my program ?(CBS_DROPDOWN by CBS_DROPDOWNLIST) thinks for advance...
Hello.I create a combobox with CBS_OWNERDRAWFIXED style and add several items by AddString. In DrawItem I use LPCTSTR lpszText = (LPCTSTR) lpDrawItemStruct->itemData; to obtain text of an item, as described in MSDN. When the combo is CBS_SIMPLE everything is fine, but when it's CBS_DROPDOWNL...
Hello,I'd like to make a class called CColorComboBox which will allow the user to add a string with function AddString but have a third parameter to allow a custom-color. So, a combobox could have 100 strings, with each theoretically being a different color. I know how to do ownerdraw stuff and...
HiDoes anyone know how to get the edit string in a combo box? My combo box's style is (CBS_AUTOHSCROLL|CBS_DROPDOWN|CBS_HASSTRINGS).Thank you very muchkk9...
Hello,I am developing with Visual C++ 2005 Express Edition and I would like to know how to see z-wheel events of the mouse in order to change the focus of a component on my visual interface.That is to say, I have the focus on Textbox1 and when an z-wheel event come, the focus will pass at the ...
I have a program which creates a new dialog box but when it calls the domodal function the dialog box is underneath my main screen and I have to press Alt to get it to the front, how do I get it to display at the front automatically?Cheers for any replies Nick...
Hello,I have a problem with the ZOrder of MDI-Children.I create MDI-Children, the order is OK.Sometimes the MDI-Child has an additional Frame - but not an MDI-Child:-------- ZORDER -> MDI-A MDI-B -add-Frame-B1 The next created Child-Frame is in the ZOrderabove MDI-B, but under add-F...
Hi !I have written an MFC based control , Its wrapper is derived from COleControl.I have written another ActiveX control.I put those two control inside a composite control.How can I make one control appear and hide the other one when there are both in the same place in thecomposite ?I tried the SetW...
How do I separate two childwindows of the same application so when I click focus on one of them, then I want the other window to remain in the background? For example if I have two childwindows and one is behind a notepadwindow then when I click on the other one, both of the childwindows will be bro...
Heres the scenario I would like to acheive.Ive got a large window that pops up several smaller windows. These small windows are not restricted to the large window. If another application gets the focus, it has a higher Z-order than all my windows, so mine should all be hidden. However, when the l...
Hi!When you create a window, the application adds it to a stack. The first window overlaps all the others.Is it possible to access to this list?Or how add in a "Windows" menu the list of the openned windows?Thanks in advanceSandrine...
I am making a program using CRichEditView and want to make a zomming functionality. I also want to make a ruler to go on both the vertical and horizontal axis.Thanks in advance if you can help.=================================================Neo...