![]() |
|
#1
|
|||
|
|||
help with ClistCtrl with combo boxeshi all
this is my first post in this forum, hopefully some1 will be able to help me im relatively new to MFC i have the following problem: i created a dialog driven application. i put a Clistctrl and made 2 columns in it. i also created a combo box control. now, in the dilaog file i overwrote the OnNMClickProperties function to get the clicks in the list ctrl, in the function when i recgonize a click on the fields that i want to show the combobox, i did the following things: i got the rectangle of the 2nd field in the listbox and move the combo box to that location and showed it, normally the combo box is hidden : PropertiesCombo.MoveWindow(m_RectSelected); PropertiesCombo.ShowWindow(SW_SHOW); propetiescombo is the combo box itself and m_rectselected is the new rectangle for it. now in the application the combobox is shown where i want it to, but when i click on the combo box, the combo box doesnt open its dropdown menu. can any one please help me?, im at my wit's end, tried everything i can think of but nothing helps. if any more info is nedded please let me know and ill post it as soon as I can. |
|
#2
|
|||
|
|||
Re: help with ClistCtrl with combo boxeshi all
just wanted to day i found the answer to solve the problem you have to do the following after creating the list and combo box : PropertiesCombo.SetParent(&PropertiesList); this line of code will make sure that it will behave as i described in the first post |
Recent GIDBlog
Observations of Iraq by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| linking a file in a combo box | cyn8 | MS Visual C++ / MFC Forum | 2 | 03-Nov-2006 08:17 |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | C++ Forum | 0 | 22-Feb-2005 20:16 |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | MS Visual C++ / MFC Forum | 0 | 22-Feb-2005 02:13 |
| Limit combo box choice according to database created in folder | shinyhui | MS Visual C++ / MFC Forum | 3 | 21-Feb-2005 21:58 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The