GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Feb-2007, 06:04
dvieb dvieb is offline
New Member
 
Join Date: Feb 2007
Posts: 2
dvieb is on a distinguished road

help with ClistCtrl with combo boxes


hi 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  
Old 14-Feb-2007, 06:39
dvieb dvieb is offline
New Member
 
Join Date: Feb 2007
Posts: 2
dvieb is on a distinguished road

Re: help with ClistCtrl with combo boxes


hi 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 GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 21:12.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.