Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resizing of a dialog box Pin
27-Jul-01 1:39
suss27-Jul-01 1:39 
GeneralRe: Resizing of a dialog box Pin
Christian Graus27-Jul-01 2:18
protectorChristian Graus27-Jul-01 2:18 
GeneralRe: Resizing of a dialog box Pin
26-Jul-01 7:17
suss26-Jul-01 7:17 
GeneralRe: Resizing of a dialog box Pin
Ernest Laurentin27-Jul-01 9:43
Ernest Laurentin27-Jul-01 9:43 
GeneralRe: Resizing of a dialog box Pin
31-Jul-01 1:18
suss31-Jul-01 1:18 
GeneralPersisting Bitmaps Pin
Ganesh Ramaswamy26-Jul-01 6:18
Ganesh Ramaswamy26-Jul-01 6:18 
GeneralRe: Persisting Bitmaps - forget it Pin
Ganesh Ramaswamy26-Jul-01 10:20
Ganesh Ramaswamy26-Jul-01 10:20 
QuestionCListCtrl missing GetSelItems(). Any Reason?? Pin
Chris Meech26-Jul-01 6:17
Chris Meech26-Jul-01 6:17 
I'm converting a listbox control to be a list control and in reviewing the code I came across a method of CListbox that doesn't have a similar method in CListCtrl. The method is GetSelItems(int, LPINT). Did I completely miss something?

After thinking about what would be needed, I came up with the following code as a replacement. Comments or suggestions are welcome. Thanks.
int CMyListCtrl::GetSelItems(int nMax, LPINT paIndex)
{
  int       i;
  POSITION  pos  =  GetFirstSelectedItemPosition();
  for ( i = 0; (i < nMax && pos); i++ )
  {
    *paIndex[i]  =  GetNextSelectedItem(pos);
  }

  return i;
}


Chris
AnswerRe: CListCtrl missing GetSelItems(). Any Reason?? Pin
Tomasz Sowinski26-Jul-01 6:51
Tomasz Sowinski26-Jul-01 6:51 
GeneralRe: CListCtrl missing GetSelItems(). Any Reason?? Pin
Chris Meech26-Jul-01 7:36
Chris Meech26-Jul-01 7:36 
QuestionCListCtrl missing GetSelItems(). Any Reason?? Pin
Chris Meech26-Jul-01 6:17
Chris Meech26-Jul-01 6:17 
GeneralHelp me...Set editbox focus in a listctrl itemchanged handler Pin
CMFC6.0VS.NETUser26-Jul-01 5:45
CMFC6.0VS.NETUser26-Jul-01 5:45 
QuestionHow can I Pin
26-Jul-01 5:27
suss26-Jul-01 5:27 
AnswerRe: How can I Pin
Carlos Antollini26-Jul-01 5:59
Carlos Antollini26-Jul-01 5:59 
GeneralPrinting in Dialog Pin
Michael Martin26-Jul-01 5:19
professionalMichael Martin26-Jul-01 5:19 
GeneralRe: Printing in Dialog Pin
Tomasz Sowinski26-Jul-01 7:13
Tomasz Sowinski26-Jul-01 7:13 
Generalmethod FIND Pin
Gérald Mercet26-Jul-01 4:47
Gérald Mercet26-Jul-01 4:47 
GeneralRe: method FIND Pin
Carlos Antollini26-Jul-01 5:08
Carlos Antollini26-Jul-01 5:08 
GeneralReadonly recordset Pin
Jimmy Ehrnström26-Jul-01 3:59
Jimmy Ehrnström26-Jul-01 3:59 
GeneralRe: Readonly recordset Pin
Carlos Antollini26-Jul-01 4:42
Carlos Antollini26-Jul-01 4:42 
GeneralRe: Readonly recordset Pin
Jimmy Ehrnström26-Jul-01 4:54
Jimmy Ehrnström26-Jul-01 4:54 
GeneralRe: Readonly recordset Pin
Carlos Antollini26-Jul-01 5:12
Carlos Antollini26-Jul-01 5:12 
GeneralRe: Readonly recordset Pin
Jimmy Ehrnström26-Jul-01 22:05
Jimmy Ehrnström26-Jul-01 22:05 
GeneralRe: Readonly recordset Pin
4-Sep-01 1:33
suss4-Sep-01 1:33 
GeneralLocalization in arabic Pin
Hussam Ahmad26-Jul-01 3:39
Hussam Ahmad26-Jul-01 3:39 

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.