Click here to Skip to main content
15,883,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Owner draw button's font problem. Pin
Richard MacCutchan13-May-11 4:46
mveRichard MacCutchan13-May-11 4:46 
Questionhow to move images in same list control Pin
rjkg12-May-11 0:52
rjkg12-May-11 0:52 
AnswerRe: how to move images in same list control Pin
Richard MacCutchan12-May-11 3:28
mveRichard MacCutchan12-May-11 3:28 
QuestionHow can I know which item was selected in TreeCtrl ? Pin
_Flaviu12-May-11 0:45
_Flaviu12-May-11 0:45 
AnswerRe: How can I know which item was selected in TreeCtrl ? Pin
Niklas L12-May-11 2:16
Niklas L12-May-11 2:16 
GeneralRe: How can I know which item was selected in TreeCtrl ? Pin
_Flaviu12-May-11 2:26
_Flaviu12-May-11 2:26 
QuestionRe: How can I know which item was selected in TreeCtrl ? Pin
David Crow12-May-11 3:06
David Crow12-May-11 3:06 
AnswerRe: How can I know which item was selected in TreeCtrl ? Pin
_Flaviu12-May-11 3:12
_Flaviu12-May-11 3:12 
Like that :
void CMyListTree::OnClick(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here

	CTreeCtrl& Tree = GetTreeCtrl();
	NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
	HTREEITEM hItemSel = pNMTreeView->itemNew.hItem;
	if(hItemSel)TRACE("%d\n",Tree.GetItemData(hItemSel));
	else TRACE("null\n");
	hItemSel = Tree.GetSelectedItem();
	if(hItemSel)TRACE("%d\n",Tree.GetItemData(hItemSel));
	else TRACE("null\n");

	*pResult = 0;
}

GeneralRe: How can I know which item was selected in TreeCtrl ? Pin
Richard MacCutchan12-May-11 3:27
mveRichard MacCutchan12-May-11 3:27 
GeneralRe: How can I know which item was selected in TreeCtrl ? Pin
David Crow12-May-11 3:42
David Crow12-May-11 3:42 
GeneralRe: How can I know which item was selected in TreeCtrl ? Pin
_Flaviu12-May-11 6:57
_Flaviu12-May-11 6:57 
QuestionSetting Image to a Button through ocde Pin
pix_programmer11-May-11 22:17
pix_programmer11-May-11 22:17 
AnswerRe: Setting Image to a Button through ocde Pin
«_Superman_»11-May-11 23:04
professional«_Superman_»11-May-11 23:04 
QuestionSocket connection is getting closed when terminal services is enabled in Win2008R2 OS Pin
V K 211-May-11 21:32
V K 211-May-11 21:32 
Questionhow do i find all "src" attributes from frame object of html document? Pin
yogish29311-May-11 2:25
yogish29311-May-11 2:25 
AnswerRe: how do i find all "src" attributes from frame object of html document? Pin
Bram van Kampen11-May-11 14:34
Bram van Kampen11-May-11 14:34 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
Albert Holguin11-May-11 14:46
professionalAlbert Holguin11-May-11 14:46 
QuestionRe: how do i find all "src" attributes from frame object of html document? Pin
David Crow11-May-11 17:47
David Crow11-May-11 17:47 
JokeRe: how do i find all "src" attributes from frame object of html document? Pin
Code-o-mat11-May-11 21:08
Code-o-mat11-May-11 21:08 
AnswerRe: how do i find all "src" attributes from frame object of html document? Pin
«_Superman_»11-May-11 23:13
professional«_Superman_»11-May-11 23:13 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
yogish29313-May-11 1:36
yogish29313-May-11 1:36 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
«_Superman_»13-May-11 1:39
professional«_Superman_»13-May-11 1:39 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
yogish29313-May-11 2:52
yogish29313-May-11 2:52 
QuestionLoad image from Resource Pin
john563210-May-11 21:48
john563210-May-11 21:48 
AnswerRe: Load image from Resource Pin
Groulien10-May-11 21:56
Groulien10-May-11 21:56 

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.