Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A question about reading non-data CDs Pin
Ceri24-Mar-04 2:54
Ceri24-Mar-04 2:54 
GeneralRe: A question about reading non-data CDs Pin
Roger Wright24-Mar-04 4:39
professionalRoger Wright24-Mar-04 4:39 
GeneralGetting a window to come forward on XP Pin
Tom Wright23-Mar-04 12:01
Tom Wright23-Mar-04 12:01 
GeneralRe: Getting a window to come forward on XP Pin
Antony M Kancidrowski23-Mar-04 12:38
Antony M Kancidrowski23-Mar-04 12:38 
GeneralRe: Getting a window to come forward on XP Pin
Christian Graus23-Mar-04 16:18
protectorChristian Graus23-Mar-04 16:18 
GeneralRe: Getting a window to come forward on XP Pin
Mike Dimmick24-Mar-04 2:59
Mike Dimmick24-Mar-04 2:59 
GeneralRe: Getting a window to come forward on XP Pin
Tom Wright24-Mar-04 5:56
Tom Wright24-Mar-04 5:56 
GeneralCListCtrl - Sort Pin
jcplatt23-Mar-04 11:59
jcplatt23-Mar-04 11:59 
I have been using an application-defined comparison function for sorting CListCtrl in Report format. The item string is obtained by searching the list for a match on the item data (see below). This works fine if there are subitems, however with NO subitems the ASSERT fires. If the list control is redrawn during the sort, the row with lParam1 is missing - replaced by a duplicate of another row.

Any ideas?

Many thanks.


int CALLBACK CSortListCtl::CompareItems( LPARAM lParam1, LPARAM lParam2, LPARAM lParamData )<br />
{<br />
	....<br />
<br />
	LVFINDINFO findInfo;<br />
	findInfo.flags  = LVFI_PARAM;<br />
	findInfo.lParam	= lParam1;<br />
	int index1 = pListCtrl->FindItem( &findInfo );<br />
	ASSERT( index1 > -1 );<br />
	CString text1 = pListCtrl->GetItemText( index1, subItem );<br />
<br />
	....<br />
}

GeneralRe: CListCtrl - Sort Pin
David Crow24-Mar-04 2:08
David Crow24-Mar-04 2:08 
GeneralRe: CListCtrl - Sort Pin
jcplatt25-Mar-04 8:46
jcplatt25-Mar-04 8:46 
GeneralCan't write to HKEY_CURRENT_USER when impersonating (new problem) Pin
ICantChangeMyAcct23-Mar-04 10:02
ICantChangeMyAcct23-Mar-04 10:02 
GeneralRe: Can't write to HKEY_CURRENT_USER when impersonating (new problem) Pin
David Crow23-Mar-04 10:29
David Crow23-Mar-04 10:29 
GeneralRe: Can't write to HKEY_CURRENT_USER when impersonating (new problem) Pin
ICantChangeMyAcct23-Mar-04 11:06
ICantChangeMyAcct23-Mar-04 11:06 
GeneralPrevent to open program multiplie times Pin
Snillet2k23-Mar-04 9:52
Snillet2k23-Mar-04 9:52 
GeneralRe: Prevent to open program multiplie times Pin
David Crow23-Mar-04 9:55
David Crow23-Mar-04 9:55 
GeneralGetLastError problem Pin
rmnowick23-Mar-04 9:20
rmnowick23-Mar-04 9:20 
GeneralRe: GetLastError problem Pin
David Crow23-Mar-04 9:53
David Crow23-Mar-04 9:53 
GeneralRe: GetLastError problem Pin
rmnowick23-Mar-04 11:35
rmnowick23-Mar-04 11:35 
GeneralRe: GetLastError problem Pin
Neville Franks23-Mar-04 9:59
Neville Franks23-Mar-04 9:59 
GeneralRe: GetLastError problem Pin
rmnowick23-Mar-04 11:47
rmnowick23-Mar-04 11:47 
GeneralRe: GetLastError problem Pin
Maksim Lepikhin23-Mar-04 12:08
Maksim Lepikhin23-Mar-04 12:08 
GeneralRe: GetLastError problem Pin
rmnowick23-Mar-04 12:28
rmnowick23-Mar-04 12:28 
GeneralSaving Encrypted Passwords Pin
ExtraLean23-Mar-04 9:18
ExtraLean23-Mar-04 9:18 
GeneralRe: Saving Encrypted Passwords Pin
Robert A. T. Káldy23-Mar-04 9:35
Robert A. T. Káldy23-Mar-04 9:35 
GeneralRe: Saving Encrypted Passwords Pin
ExtraLean23-Mar-04 10:03
ExtraLean23-Mar-04 10:03 

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.