Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Radio Button Pin
David Crow23-May-05 4:39
David Crow23-May-05 4:39 
GeneralRemoving Items From A Listbox Pin
[d3m0n]23-May-05 2:26
[d3m0n]23-May-05 2:26 
GeneralRe: Removing Items From A Listbox Pin
Tom Archer23-May-05 2:31
Tom Archer23-May-05 2:31 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 2:54
[d3m0n]23-May-05 2:54 
GeneralRe: Removing Items From A Listbox Pin
Tom Archer23-May-05 2:58
Tom Archer23-May-05 2:58 
GeneralRe: Removing Items From A Listbox Pin
ThatsAlok23-May-05 3:03
ThatsAlok23-May-05 3:03 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 3:08
[d3m0n]23-May-05 3:08 
GeneralRe: Removing Items From A Listbox Pin
lynchspawn23-May-05 4:11
lynchspawn23-May-05 4:11 
The problem isn't the bEnable state for the buttons but the focus of the list box, right?

If so, maybe this will help:

This code sets the selection to a new item (since the one that was previously selected was removed) and sets the focus on the list box/control:

LVITEM lvItem;<br />
			    ::ZeroMemory(&lvItem,sizeof(LVITEM));<br />
			    lvItem.stateMask = LVIS_SELECTED;<br />
			    lvItem.mask = LVIF_STATE;<br />
			    lvItem.state = LVIS_SELECTED;	<br />
			    m_TaskList.SetItemState(nItem,&lvItem);<br />
                            m_TaskList.SetFocus();

GeneralRe: Removing Items From A Listbox Pin
Jack Puppy23-May-05 4:06
Jack Puppy23-May-05 4:06 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 4:23
[d3m0n]23-May-05 4:23 
GeneralRe: Removing Items From A Listbox Pin
David Crow23-May-05 4:43
David Crow23-May-05 4:43 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 4:46
[d3m0n]23-May-05 4:46 
GeneralRe: Removing Items From A Listbox Pin
David Crow23-May-05 5:03
David Crow23-May-05 5:03 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 5:07
[d3m0n]23-May-05 5:07 
GeneralRe: Removing Items From A Listbox Pin
David Crow23-May-05 5:27
David Crow23-May-05 5:27 
GeneralReceiving SMS on PocketPC Pin
anevemkz23-May-05 2:21
anevemkz23-May-05 2:21 
Generalsockets vs file-dropoff Pin
Tom Archer23-May-05 1:38
Tom Archer23-May-05 1:38 
GeneralRe: sockets vs file-dropoff Pin
ThatsAlok23-May-05 2:00
ThatsAlok23-May-05 2:00 
GeneralRe: sockets vs file-dropoff Pin
Tom Archer23-May-05 2:05
Tom Archer23-May-05 2:05 
GeneralRe: sockets vs file-dropoff Pin
ThatsAlok23-May-05 2:22
ThatsAlok23-May-05 2:22 
GeneralRe: sockets vs file-dropoff Pin
Tom Archer23-May-05 2:30
Tom Archer23-May-05 2:30 
GeneralRe: sockets vs file-dropoff Pin
ThatsAlok23-May-05 2:36
ThatsAlok23-May-05 2:36 
GeneralRe: sockets vs file-dropoff Pin
Ryan Binns23-May-05 4:06
Ryan Binns23-May-05 4:06 
GeneralRe: sockets vs file-dropoff Pin
Tom Archer23-May-05 13:38
Tom Archer23-May-05 13:38 
GeneralRe: sockets vs file-dropoff Pin
ThatsAlok23-May-05 17:33
ThatsAlok23-May-05 17:33 

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.