Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to write up bsearch function code Pin
Jack Puppy26-Dec-05 17:28
Jack Puppy26-Dec-05 17:28 
GeneralRe: how to write up bsearch function code Pin
javanull26-Dec-05 19:23
javanull26-Dec-05 19:23 
QuestionTurning off CListBox autosort? Pin
Lord Kixdemp26-Dec-05 12:52
Lord Kixdemp26-Dec-05 12:52 
AnswerRe: Turning off CListBox autosort? Pin
Tsikin Sandy26-Dec-05 15:19
Tsikin Sandy26-Dec-05 15:19 
AnswerRe: Turning off CListBox autosort? Pin
vikas amin26-Dec-05 19:07
vikas amin26-Dec-05 19:07 
GeneralRe: Turning off CListBox autosort? Pin
Lord Kixdemp27-Dec-05 14:24
Lord Kixdemp27-Dec-05 14:24 
QuestionMove Up/Down in ListBox? Pin
Lord Kixdemp26-Dec-05 12:03
Lord Kixdemp26-Dec-05 12:03 
JokeRe: Move Up/Down in ListBox? Pin
ChrisLang26-Dec-05 12:38
ChrisLang26-Dec-05 12:38 
Try this where m_pList is the pointer to your list, m_curSel is the index of the currently selected item, curStr is a CString where you store the value of the currently selected item and iDirection is either 1 or -1 depending of if you want to move the originally selected item up or down (1 to go down).


CString curStr;
long curID;

// get current data
m_pList->GetText(m_curSel,curStr);
// then delete the string.
m_pList->DeleteString(m_curSel);

// adjust the current selection to the new spot
m_curSel = m_curSel + iDirection;

// then update the list, by inserting the string. and updating.
m_pList->InsertString(m_curSel, curStr);
m_pList->SetCurSel(m_curSel);

Chris
GeneralRe: Move Up/Down in ListBox? Pin
Lord Kixdemp26-Dec-05 12:49
Lord Kixdemp26-Dec-05 12:49 
QuestionUsing variable in two forms Pin
MsFiTProgrammer26-Dec-05 8:40
MsFiTProgrammer26-Dec-05 8:40 
AnswerRe: Using variable in two forms Pin
javanull26-Dec-05 16:26
javanull26-Dec-05 16:26 
QuestionHow to create a view larger than Max Int Pin
ChrisLang26-Dec-05 8:26
ChrisLang26-Dec-05 8:26 
AnswerRe: How to create a view larger than Max Int Pin
Gary R. Wheeler26-Dec-05 9:38
Gary R. Wheeler26-Dec-05 9:38 
QuestionRe: How to create a view larger than Max Int Pin
ChrisLang26-Dec-05 12:30
ChrisLang26-Dec-05 12:30 
AnswerRe: How to create a view larger than Max Int Pin
Gary R. Wheeler27-Dec-05 2:09
Gary R. Wheeler27-Dec-05 2:09 
AnswerRe: How to create a view larger than Max Int Pin
ChrisLang27-Dec-05 3:01
ChrisLang27-Dec-05 3:01 
AnswerRe: How to create a view larger than Max Int Pin
ChrisLang27-Dec-05 5:48
ChrisLang27-Dec-05 5:48 
Questionmy_page.htm and .ocx Pin
oversight-[project-zero]26-Dec-05 7:34
oversight-[project-zero]26-Dec-05 7:34 
QuestionFinding the EOF!!! Pin
DDeliyiannis26-Dec-05 5:44
DDeliyiannis26-Dec-05 5:44 
AnswerRe: Finding the EOF!!! Pin
Jörgen Sigvardsson26-Dec-05 5:51
Jörgen Sigvardsson26-Dec-05 5:51 
AnswerRe: Finding the EOF!!! Pin
vikas amin26-Dec-05 19:30
vikas amin26-Dec-05 19:30 
GeneralRe: Finding the EOF!!! Pin
sunit526-Dec-05 20:22
sunit526-Dec-05 20:22 
QuestionDirectShow: Getting the window handle of a panel Pin
Ramow26-Dec-05 5:17
Ramow26-Dec-05 5:17 
AnswerRe: DirectShow: Getting the window handle of a panel Pin
KifayatullahKhan26-Dec-05 18:28
KifayatullahKhan26-Dec-05 18:28 
QuestionGetting started with RegEx ? Pin
Mark F.26-Dec-05 3:55
Mark F.26-Dec-05 3:55 

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.