Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is wrong ? Pin
Bravoone_20065-Dec-06 21:18
Bravoone_20065-Dec-06 21:18 
GeneralRe: what is wrong ? Pin
Mark Salsbery6-Dec-06 5:37
Mark Salsbery6-Dec-06 5:37 
QuestionTo send OutPut by e-mail Pin
mikobi4-Dec-06 20:21
mikobi4-Dec-06 20:21 
QuestionShowing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ? Pin
anand_study4-Dec-06 20:13
anand_study4-Dec-06 20:13 
AnswerRe: Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ? Pin
Naveen4-Dec-06 21:01
Naveen4-Dec-06 21:01 
GeneralUnable to pass-on LVS_GETDISPINFO - please help...(Urgent) Pin
anand_study6-Dec-06 17:04
anand_study6-Dec-06 17:04 
GeneralRe: Unable to pass-on LVS_GETDISPINFO - please help...(Urgent) Pin
Naveen6-Dec-06 20:31
Naveen6-Dec-06 20:31 
GeneralRe: Unable to pass-on LVS_GETDISPINFO - please help...(Urgent) Pin
anand_study7-Dec-06 3:25
anand_study7-Dec-06 3:25 
Naveen, Thanks a lot for helping.

What I tried is:
1. Downloaded sample from following article and unzipped

Multi column Combo box (2) (CodeGuru Article)
http://www.codeguru.com/cpp/controls/combobox/multicolumncombos/article.php/c1819/

2. Removed code which displays Multi-column Combo in toolbar (from Mainframe.h and Mainframe.cpp) as I don't need that

3. Added LVS_OWNERDATA style to defaultListControlStyle

4. Created new dialog resource (Set style to Child and Border None), and
added custome control IDC_CUSTOM1 (class MultiColumnComboBox)
5. Created new view class CMyTestView (derived from CFormView)

5. Added protected member to CMyTestView ->> CMultiColumnComboBox m_combo;

6.
void CMyTestView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();

// subclassed custom control (as suggested in article)
m_combo.SubclassDlgItem(IDC_CUSTOM1);

// add columns to list
// do not insert items in list (as it is virtual)
CListCtrl* pList = m_combo.GetListCtrl();
pList->InsertColumn(0, _T("Col 1"), LVCFMT_LEFT, 100);
pList->InsertColumn(1, _T("Col 2"), LVCFMT_LEFT, 100);
}

8. To make view class as parent of list control,

In CMultiColumnComboBox::OnInit() (where ListControl is created)

I replaced following line

// if( m_pListCtrl->Create(WS_BORDER|WS_CHILD|defaultListControlStyle, Crect(0,0,0,0), GetDeskTopwindow(), IDLISTCTRL) )

with

if( m_pListCtrl->Create(WS_BORDER|WS_CHILD|defaultListControlStyle, Crect(0,0,0,0), this->GetParent(), IDLISTCTRL) )

7. Then tried as you suggested in CMyTestView.
In view, I am getting LVN_GETDISPINFO notification
I am setting item text
but list is not getting even single item

I am unable to get data through LVS_GETDISPINFO to list of combo in form view.
(i.e. I could use list of this combo in normal mode in my form
but unable to get data from view in list of combo in virtual list mode)

Please help...(Urgent help needed).

I truly appreciate any idea/help.
Anand
GeneralRe: Unable to pass-on LVS_GETDISPINFO - please help...(Urgent) Pin
Naveen7-Dec-06 16:21
Naveen7-Dec-06 16:21 
GeneralRe: Unable to pass-on LVS_GETDISPINFO - please help...(Urgent) Pin
Naveen7-Dec-06 19:40
Naveen7-Dec-06 19:40 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
anand_study8-Dec-06 1:35
anand_study8-Dec-06 1:35 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
Naveen8-Dec-06 1:55
Naveen8-Dec-06 1:55 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
anand_study8-Dec-06 3:32
anand_study8-Dec-06 3:32 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
Naveen10-Dec-06 16:18
Naveen10-Dec-06 16:18 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
anand_study11-Dec-06 1:57
anand_study11-Dec-06 1:57 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
Naveen11-Dec-06 2:07
Naveen11-Dec-06 2:07 
GeneralRe: Got LVS_GETDISPINFO...with id of ListCtrl Pin
anand_study11-Dec-06 2:19
anand_study11-Dec-06 2:19 
QuestionHtmlHelp not working Pin
Ramu.e4-Dec-06 18:43
Ramu.e4-Dec-06 18:43 
AnswerRe: HtmlHelp not working Pin
S Douglas4-Dec-06 19:47
professionalS Douglas4-Dec-06 19:47 
AnswerRe: HtmlHelp not working Pin
KarstenK4-Dec-06 23:32
mveKarstenK4-Dec-06 23:32 
QuestionPost method fails when Kerberos Authentication is enabled Pin
_AnsHUMAN_ 4-Dec-06 17:58
_AnsHUMAN_ 4-Dec-06 17:58 
QuestionQuestion about finding harddisk partitions ? Pin
Sakthiu4-Dec-06 17:20
Sakthiu4-Dec-06 17:20 
AnswerRe: Question about finding harddisk partitions ? Pin
Nibu babu thomas4-Dec-06 17:30
Nibu babu thomas4-Dec-06 17:30 
AnswerRe: Question about finding harddisk partitions ? Pin
ThatsAlok4-Dec-06 23:53
ThatsAlok4-Dec-06 23:53 
Questionmemory & handle increase problem IXMLDOMDocument::load() Pin
neerajkchauhan4-Dec-06 17:19
neerajkchauhan4-Dec-06 17:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.