Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why does BitBlt not work right? Pin
Kaaib11-Mar-11 12:24
Kaaib11-Mar-11 12:24 
QuestionTransparent window Pin
csrss11-Mar-11 8:39
csrss11-Mar-11 8:39 
AnswerRe: Transparent window Pin
csrss11-Mar-11 9:15
csrss11-Mar-11 9:15 
GeneralRe: Transparent window Pin
Richard MacCutchan11-Mar-11 22:08
mveRichard MacCutchan11-Mar-11 22:08 
QuestionHow can I know which item is selected ? [modified] Pin
_Flaviu11-Mar-11 8:01
_Flaviu11-Mar-11 8:01 
AnswerRe: How can I know which item is selected ? Pin
Chris Meech11-Mar-11 8:40
Chris Meech11-Mar-11 8:40 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 8:59
_Flaviu11-Mar-11 8:59 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 9:19
_Flaviu11-Mar-11 9:19 
I did it .. and for those who have the same issue , I put here the sample code :
void CMyView::OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here

	CString sTemp;
	LVHITTESTINFO lv;
	int nItem,nSubItem;
	DWORD dwPos = ::GetMessagePos();
	CPoint point((int)LOWORD(dwPos),(int)HIWORD(dwPos));
	m_List.ScreenToClient(&point);
	lv.pt = point;
	m_List.SubItemHitTest(&lv);
	nItem = lv.iSubItem;
	nSubItem = lv.iItem;
	sTemp.Format("nItem %d nSubItem %d",nItem,nSubItem);
	MessageBox(sTemp);

	*pResult = 0;
}


Thank you all , specially to Chris !
GeneralRe: How can I know which item is selected ? Pin
Hans Dietrich11-Mar-11 13:12
mentorHans Dietrich11-Mar-11 13:12 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:29
_Flaviu11-Mar-11 20:29 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:37
_Flaviu11-Mar-11 20:37 
QuestionHow can create heading and format cell text in excel? Pin
Le@rner10-Mar-11 23:38
Le@rner10-Mar-11 23:38 
AnswerRe: How can create heading and format cell text in excel? Pin
Richard MacCutchan10-Mar-11 23:56
mveRichard MacCutchan10-Mar-11 23:56 
AnswerRe: How can create heading and format cell text in excel? Pin
Cool_Dev11-Mar-11 0:10
Cool_Dev11-Mar-11 0:10 
QuestionCopying From Single Dimension Array To Multiple Dimension Array Pin
Mike Certini10-Mar-11 15:06
Mike Certini10-Mar-11 15:06 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
chevu10-Mar-11 17:30
chevu10-Mar-11 17:30 
GeneralRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Mike Certini10-Mar-11 17:51
Mike Certini10-Mar-11 17:51 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
chevu10-Mar-11 18:11
chevu10-Mar-11 18:11 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Richard MacCutchan10-Mar-11 22:38
mveRichard MacCutchan10-Mar-11 22:38 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Stefan_Lang11-Mar-11 2:18
Stefan_Lang11-Mar-11 2:18 
QuestionRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
David Crow11-Mar-11 2:49
David Crow11-Mar-11 2:49 
QuestionData Structure library Pin
pandit8410-Mar-11 2:32
pandit8410-Mar-11 2:32 
AnswerRe: Data Structure library Pin
Richard MacCutchan10-Mar-11 3:30
mveRichard MacCutchan10-Mar-11 3:30 
GeneralRe: Data Structure library Pin
pandit8410-Mar-11 23:39
pandit8410-Mar-11 23:39 
GeneralRe: Data Structure library Pin
Richard MacCutchan10-Mar-11 23:52
mveRichard MacCutchan10-Mar-11 23:52 

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.