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

C / C++ / MFC

 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 3:50
Bob Stanneveld23-May-05 3:50 
AnswerRe: Inheritance? Pin
Ryan Binns23-May-05 3:58
Ryan Binns23-May-05 3:58 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 6:04
Bob Stanneveld23-May-05 6:04 
AnswerRe: Inheritance? Pin
S. Senthil Kumar23-May-05 5:25
S. Senthil Kumar23-May-05 5:25 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 20:14
Bob Stanneveld23-May-05 20:14 
GeneralRadio Button Pin
alvarillo23-May-05 2:31
alvarillo23-May-05 2:31 
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 
Hi I have a listbox on my dialog and some Add, Modify and Remove buttons. If I select an item in the listbox and click Remove, the item gets removed and the Remove button gets disabled (as no item is selected).

When I do this, the item gets removed correctly but now my focus is completely lost. Pressing Tab or Enter or Escape doesn't do anything. I can still use the mouse though.

I tried adding a m_pbtnAdd->SetFocus() to the OnBtnRemove function, but it makes no difference.

Does anyone know the proper way to remove an item from a listbox in this way? Confused | :confused:

Thanks
d3m0n
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 
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 

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.