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

C / C++ / MFC

 
QuestionWhy the controls do not show? Pin
yu-jian3-Dec-10 23:21
yu-jian3-Dec-10 23:21 
AnswerRe: Why the controls do not show? Pin
Eugen Podsypalnikov4-Dec-10 1:08
Eugen Podsypalnikov4-Dec-10 1:08 
QuestionRe: Why the controls do not show? Pin
David Crow4-Dec-10 17:42
David Crow4-Dec-10 17:42 
AnswerRe: Why the controls do not show? Pin
yu-jian8-Dec-10 2:22
yu-jian8-Dec-10 2:22 
QuestionRe: Why the controls do not show? Pin
David Crow8-Dec-10 4:14
David Crow8-Dec-10 4:14 
AnswerRe: Why the controls do not show? Pin
yu-jian9-Dec-10 0:52
yu-jian9-Dec-10 0:52 
QuestionHow can identify click on hashbutton or item label in Tree Ctrel? Pin
Le@rner3-Dec-10 23:00
Le@rner3-Dec-10 23:00 
AnswerRe: How can identify click on hashbutton or item label in Tree Ctrel? Pin
User 74293383-Dec-10 23:38
professionalUser 74293383-Dec-10 23:38 
You'll probably want to do something like this when handling the NM_DBLCLK notification:

case NM_DBLCLK:
	// Get the double clicked item
	HTREEITEM hItem = (HTREEITEM)SendMessage(((LPNMHDR) lParam)->hwndFrom,TVM_GETNEXTITEM,TVGN_CARET,0);
	TVITEM tvi;
	tvi.mask  = TVIF_PARAM;
	tvi.hItem = hItem;
	// Get the lParam value asociated with this item 
	SendMessage(((LPNMHDR) lParam)->hwndFrom,TVM_GETITEM,0,(int)&tvi);
	break;


tvi.lParam now contains the lParam value you added to the item when you added it to the tree view. You could use this value to give information on the content, e.g. if it is a hash button or item label.

modified 13-Sep-18 21:01pm.

Questionhow to input into array from keyboard Pin
atoivan3-Dec-10 16:20
atoivan3-Dec-10 16:20 
AnswerRe: how to input into array from keyboard Pin
Dr.Walt Fair, PE3-Dec-10 16:36
professionalDr.Walt Fair, PE3-Dec-10 16:36 
AnswerRe: how to input into array from keyboard Pin
Luc Pattyn3-Dec-10 17:20
sitebuilderLuc Pattyn3-Dec-10 17:20 
AnswerRe: how to input into array from keyboard [modified] Pin
Alain Rist3-Dec-10 23:55
Alain Rist3-Dec-10 23:55 
QuestionC++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 15:00
Cachel3-Dec-10 15:00 
AnswerRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Dr.Walt Fair, PE3-Dec-10 16:26
professionalDr.Walt Fair, PE3-Dec-10 16:26 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 19:34
Cachel3-Dec-10 19:34 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? [modified] Pin
User 74293383-Dec-10 22:24
professionalUser 74293383-Dec-10 22:24 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Maximilien4-Dec-10 7:22
Maximilien4-Dec-10 7:22 
QuestionRead data using assembly Pin
MKC0023-Dec-10 2:39
MKC0023-Dec-10 2:39 
AnswerRe: Read data using assembly Pin
Rajesh R Subramanian3-Dec-10 2:50
professionalRajesh R Subramanian3-Dec-10 2:50 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 3:45
MKC0023-Dec-10 3:45 
GeneralRe: Read data using assembly Pin
Rajesh R Subramanian3-Dec-10 3:53
professionalRajesh R Subramanian3-Dec-10 3:53 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 22:09
MKC0023-Dec-10 22:09 
AnswerRe: Read data using assembly Pin
Aescleal3-Dec-10 6:17
Aescleal3-Dec-10 6:17 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 22:10
MKC0023-Dec-10 22:10 
GeneralRe: Read data using assembly Pin
Emilio Garavaglia4-Dec-10 10:22
Emilio Garavaglia4-Dec-10 10:22 

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.