Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change button caption problem Pin
Michael Dunn3-Jan-03 21:58
sitebuilderMichael Dunn3-Jan-03 21:58 
GeneralRe: Change button caption problem Pin
Mazdak3-Jan-03 22:08
Mazdak3-Jan-03 22:08 
GeneralRe: Change button caption problem Pin
xxhimanshu3-Jan-03 22:15
xxhimanshu3-Jan-03 22:15 
Generalrun EXE on click!!!!!!!!!!!!!!! Pin
xxhimanshu3-Jan-03 20:19
xxhimanshu3-Jan-03 20:19 
GeneralRe: run EXE on click!!!!!!!!!!!!!!! Pin
Hesham Amin3-Jan-03 21:18
Hesham Amin3-Jan-03 21:18 
GeneralRe: run EXE on click!!!!!!!!!!!!!!! Pin
Nexus4-Jan-03 5:25
Nexus4-Jan-03 5:25 
GeneralMetafile Header Pin
Anthony98873-Jan-03 18:40
Anthony98873-Jan-03 18:40 
QuestionBizarre...help please anyone? Pin
Brian Tietz3-Jan-03 17:21
Brian Tietz3-Jan-03 17:21 
This function seems simple enough, and does everything the SDK documentation indicates is necessary to change the selection state of an item in a list view control. After observing that it wasn't working, I added the assert in the last line of the function and sure enough, the assert fires. This makes no sense whatsoever.... Help please!

void
ListViewHelper_t::DeselectItem(int32 index)
{
LVITEM item_info;
item_info.iSubItem = 0;
item_info.mask = LVIF_STATE;
item_info.state = 0;
item_info.stateMask = LVIS_SELECTED;
item_info.iItem = index;
SendMessage( (HWND)HelperWindowHandle(), LVM_SETITEMSTATE, index, (LPARAM)&item_info );
assert( !IsItemSelected(index) );
}



bool
ListViewHelper_t::IsItemSelected(int32 index) const
{
return ( (SendMessage( (HWND)HelperWindowHandle(), LVM_GETITEMSTATE, index, LVIS_SELECTED ) & LVIS_SELECTED) == LVIS_SELECTED );
}

AnswerRe: Bizarre...help please anyone? Pin
Michael Dunn3-Jan-03 20:15
sitebuilderMichael Dunn3-Jan-03 20:15 
GeneralRe: Bizarre...help please anyone? Pin
Brian Tietz4-Jan-03 5:33
Brian Tietz4-Jan-03 5:33 
GeneralDirectX ActiveX Control Pin
IMMASARA3-Jan-03 17:10
IMMASARA3-Jan-03 17:10 
QuestionSave into directory using what class? Pin
brandon18793-Jan-03 17:05
brandon18793-Jan-03 17:05 
AnswerRe: Save into directory using what class? Pin
xxhimanshu3-Jan-03 17:23
xxhimanshu3-Jan-03 17:23 
GeneralSTL List Problem Pin
Mark_Vandeberg3-Jan-03 16:28
Mark_Vandeberg3-Jan-03 16:28 
GeneralRe: STL List Problem Pin
Anonymous3-Jan-03 22:40
Anonymous3-Jan-03 22:40 
GeneralRe: STL List Problem Pin
Mark_Vandeberg4-Jan-03 4:13
Mark_Vandeberg4-Jan-03 4:13 
GeneralWindow style problem Pin
IGx893-Jan-03 15:31
IGx893-Jan-03 15:31 
QuestionHow to replace the ScrollBar on a List & Combo Box Pin
MaTrIX2k23-Jan-03 13:01
MaTrIX2k23-Jan-03 13:01 
AnswerRe: How to replace the ScrollBar on a List & Combo Box Pin
Gary R. Wheeler4-Jan-03 3:12
Gary R. Wheeler4-Jan-03 3:12 
GeneralRe: How to replace the ScrollBar on a List & Combo Box Pin
MaTrIX2k24-Jan-03 12:45
MaTrIX2k24-Jan-03 12:45 
GeneralRe: How to replace the ScrollBar on a List & Combo Box Pin
Gary R. Wheeler5-Jan-03 2:08
Gary R. Wheeler5-Jan-03 2:08 
QuestionPhotoshop and Alias/Handle/FSSpec ?? Pin
Anonymous3-Jan-03 12:54
Anonymous3-Jan-03 12:54 
Generaltime mesure Pin
aguest3-Jan-03 11:25
aguest3-Jan-03 11:25 
GeneralRe: time mesure Pin
Hesham Amin3-Jan-03 21:33
Hesham Amin3-Jan-03 21:33 
GeneralRe: time mesure Pin
Anonymous4-Jan-03 12:09
Anonymous4-Jan-03 12:09 

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.