Click here to Skip to main content
15,928,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SendMessage in Hooked application Pin
Naveen15-Jul-08 21:05
Naveen15-Jul-08 21:05 
AnswerRe: SendMessage in Hooked application Pin
Hamid_RT16-Jul-08 0:53
Hamid_RT16-Jul-08 0:53 
Questioncheck on invalid IP address [modified] Pin
rajveer2115-Jul-08 20:42
rajveer2115-Jul-08 20:42 
GeneralRe: check on invalid IP address Pin
CPallini15-Jul-08 20:51
mveCPallini15-Jul-08 20:51 
AnswerRe: check on invalid IP address Pin
Rajesh R Subramanian15-Jul-08 20:52
professionalRajesh R Subramanian15-Jul-08 20:52 
AnswerRe: check on invalid IP address Pin
Hamid_RT16-Jul-08 0:54
Hamid_RT16-Jul-08 0:54 
GeneralRe: check on invalid IP address Pin
rajveer2116-Jul-08 1:06
rajveer2116-Jul-08 1:06 
QuestionUse of Enter key on TreeCtrl. Pin
Le@rner15-Jul-08 20:10
Le@rner15-Jul-08 20:10 
Hi all ,
i m using this code for hadling keys of keyboard for TreeCtrl.
Here i m use Space key and its working fine.
if i m use VK_RETURN in place ok VK_SPACE fro enter key than its not working,the messagebox not shaw at this time.Please correct me.

CTreeCtrl trCtrl;	
void CTest::OnTvnKeydownReportTree(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMTVKEYDOWN pTVKeyDown = reinterpret_cast<LPNMTVKEYDOWN>(pNMHDR);
NMTVKEYDOWN* nmkd = (NMTVKEYDOWN*)pNMHDR;

CString Tree_str;
switch(nmkd->wVKey)
	{
	case VK_SPACE:
		
HTREEITEM hItem		= trCtrl.GetNextItem(TVI_ROOT, TVGN_CARET  );
if (hItem == NULL)
{
	AfxMessageBox(_T("There is no selected item);
}
else
{		
	Tree_str = trCtrl.GetItemText(hItem);		
	AfxMessageBox(Tree_str);
	
}
          }
	*pResult = 0;

}


Thanks in advance.

IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

Questionprocess termination Pin
George_George15-Jul-08 20:10
George_George15-Jul-08 20:10 
AnswerRe: process termination Pin
Stephen Hewitt15-Jul-08 20:40
Stephen Hewitt15-Jul-08 20:40 
GeneralRe: process termination Pin
George_George15-Jul-08 21:34
George_George15-Jul-08 21:34 
AnswerRe: process termination Pin
Hamid_RT16-Jul-08 0:58
Hamid_RT16-Jul-08 0:58 
GeneralRe: process termination Pin
George_George16-Jul-08 1:07
George_George16-Jul-08 1:07 
QuestionHow can close an exe file by use of function? Pin
Le@rner15-Jul-08 19:39
Le@rner15-Jul-08 19:39 
AnswerRe: How can close an exe file by use of function? Pin
Stephen Hewitt15-Jul-08 20:06
Stephen Hewitt15-Jul-08 20:06 
AnswerRe: How can close an exe file by use of function? Pin
Hamid_RT16-Jul-08 0:59
Hamid_RT16-Jul-08 0:59 
QuestionMemory consumption problem Pin
supergravity15-Jul-08 19:37
supergravity15-Jul-08 19:37 
AnswerRe: Memory consumption problem Pin
pallaka15-Jul-08 20:15
pallaka15-Jul-08 20:15 
GeneralRe: Memory consumption problem Pin
enhzflep15-Jul-08 23:59
enhzflep15-Jul-08 23:59 
AnswerRe: Memory consumption problem Pin
CPallini15-Jul-08 21:01
mveCPallini15-Jul-08 21:01 
AnswerRe: Memory consumption problem Pin
Mark Salsbery16-Jul-08 6:54
Mark Salsbery16-Jul-08 6:54 
QuestionProblem in Project file. Pin
T.RATHA KRISHNAN15-Jul-08 18:46
T.RATHA KRISHNAN15-Jul-08 18:46 
AnswerRe: Problem in Project file. Pin
pallaka15-Jul-08 19:53
pallaka15-Jul-08 19:53 
GeneralRe: Problem in Project file. Pin
T.RATHA KRISHNAN15-Jul-08 20:11
T.RATHA KRISHNAN15-Jul-08 20:11 
QuestionDynamically Creating and displaying a customized button and adding a click event handler for the same Pin
aby Skaria15-Jul-08 18:45
aby Skaria15-Jul-08 18:45 

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.