a problem
-
this thing: ::SendMessage(::GetDlgItem(m_hWnd, IDC_LIST), LB_ADDSTRING, 0, (LONG) achKey); adds a string to a listbox. Is it possible to add it into a control list as a subitem or just add it? ============== www.design.kg
-
this thing: ::SendMessage(::GetDlgItem(m_hWnd, IDC_LIST), LB_ADDSTRING, 0, (LONG) achKey); adds a string to a listbox. Is it possible to add it into a control list as a subitem or just add it? ============== www.design.kg
First of all, you need to seperate this, so you verify that the GetDlgItem call does not return NULL. Then you can use LB_INSERTSTRING, as I recall. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
-
First of all, you need to seperate this, so you verify that the GetDlgItem call does not return NULL. Then you can use LB_INSERTSTRING, as I recall. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
Like this? ::SendMessage(::GetDlgItem(m_hWnd, IDC_LIST_ACCOUNTS), LB_INSERTSTRING, 0, (LONG) achKey); its add nothing :(( and I'm sure that GetDlgItem call does not return NULL. ============== www.design.kg
-
Like this? ::SendMessage(::GetDlgItem(m_hWnd, IDC_LIST_ACCOUNTS), LB_INSERTSTRING, 0, (LONG) achKey); its add nothing :(( and I'm sure that GetDlgItem call does not return NULL. ============== www.design.kg
Karavaev Denis wrote: I'm sure that GetDlgItem call does not return NULL. I'm sure too, but that does not make your code safe. I'm not sure exactly what you want to do here - add a string to a substring ? Or do you want LB_SETITEMDATA ( associate a value with an entry ) Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
-
Karavaev Denis wrote: I'm sure that GetDlgItem call does not return NULL. I'm sure too, but that does not make your code safe. I'm not sure exactly what you want to do here - add a string to a substring ? Or do you want LB_SETITEMDATA ( associate a value with an entry ) Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
My app read key names from registry. I have a sample that add this names to a list box I wana do the same, but to a Control list. Is it possible? ============== www.design.kg