Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: antivirus Pin
rp_suman25-Jun-08 20:41
rp_suman25-Jun-08 20:41 
GeneralRe: antivirus Pin
Rajesh R Subramanian25-Jun-08 22:45
professionalRajesh R Subramanian25-Jun-08 22:45 
GeneralRe: antivirus Pin
rp_suman26-Jun-08 0:27
rp_suman26-Jun-08 0:27 
AnswerRe: antivirus Pin
Rajesh R Subramanian25-Jun-08 22:48
professionalRajesh R Subramanian25-Jun-08 22:48 
AnswerRe: antivirus Pin
Hamid_RT27-Jun-08 8:11
Hamid_RT27-Jun-08 8:11 
QuestionHow can check state of Parent and child in TreeCtrl? Pin
Le@rner25-Jun-08 18:53
Le@rner25-Jun-08 18:53 
AnswerRe: How can check state of Parent and child in TreeCtrl? Pin
sudhir_Kumar25-Jun-08 20:34
sudhir_Kumar25-Jun-08 20:34 
GeneralRe: How can check state of Parent and child in TreeCtrl? Pin
Le@rner28-Jun-08 2:06
Le@rner28-Jun-08 2:06 
It is working correctly.

At one phase i m using like this, there is only one change i m insert for loop now its not working correctly.

it is not read node one by one.It is read one node number of times.
<br />
TVITEM item;<br />
CTreeCtrl m_perm_tree;<br />
		HWND m_hwnd;<br />
		m_hwnd=m_perm_tree.GetSafeHwnd();<br />
		item.mask = TVIF_STATE|TVIF_PARAM;<br />
		item.hItem = TVI_ROOT;<br />
		HTREEITEM lastItem;<br />
CString setpermstr;<br />
		int length=0;<br />
		length=setpermstr.GetLength();<br />
<br />
		<br />
	do {//do 1<br />
		do {//do2<br />
				lastItem = item.hItem;<br />
				if (lastItem != TVI_ROOT) <br />
				{//if<br />
					TreeView_GetItem( m_hwnd, &item );<br />
			<br />
					for(int i=0;i<=length;i++)<br />
					{<br />
						if(setpermstr.Mid(i,1)=="1")<br />
						{<br />
							<br />
							m_perm_tree.SetCheck(item.hItem,1)	;<br />
							<br />
						}<br />
						else if(setpermstr.Mid(i,1)=="0")<br />
						{<br />
							<br />
							m_perm_tree.SetCheck(item.hItem,0)	;<br />
							<br />
						}<br />
					}<br />
				}//if<br />
			} //do 2<br />
			while ( (item.hItem = TreeView_GetChild( m_hwnd, lastItem )) );<br />
<br />
			while ( (! (item.hItem = TreeView_GetNextSibling( m_hwnd, lastItem ))) <br />
			&& (lastItem = item.hItem = TreeView_GetParent( m_hwnd, lastItem )) ) <br />
		{}<br />
		}//do1 <br />
		while ( item.hItem );<br />
		<br />

Please help me for this.

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

QuestionProblem with system command: Pin
T.RATHA KRISHNAN25-Jun-08 18:49
T.RATHA KRISHNAN25-Jun-08 18:49 
AnswerRe: Problem with system command: Pin
_AnsHUMAN_ 25-Jun-08 19:01
_AnsHUMAN_ 25-Jun-08 19:01 
QuestionRe: Problem with system command: Pin
T.RATHA KRISHNAN25-Jun-08 19:19
T.RATHA KRISHNAN25-Jun-08 19:19 
AnswerRe: Problem with system command: Pin
_AnsHUMAN_ 25-Jun-08 19:22
_AnsHUMAN_ 25-Jun-08 19:22 
GeneralRe: Problem with system command: Pin
T.RATHA KRISHNAN25-Jun-08 19:30
T.RATHA KRISHNAN25-Jun-08 19:30 
GeneralRe: Problem with system command: Pin
_AnsHUMAN_ 25-Jun-08 19:34
_AnsHUMAN_ 25-Jun-08 19:34 
QuestionRe: Problem with system command: Pin
T.RATHA KRISHNAN25-Jun-08 19:41
T.RATHA KRISHNAN25-Jun-08 19:41 
AnswerRe: Problem with system command: Pin
_AnsHUMAN_ 25-Jun-08 20:07
_AnsHUMAN_ 25-Jun-08 20:07 
AnswerRe: Problem with system command: Pin
Hamid_RT27-Jun-08 8:11
Hamid_RT27-Jun-08 8:11 
QuestionWindows Architecture Question Process Sharing Storage Pin
ForNow25-Jun-08 13:46
ForNow25-Jun-08 13:46 
QuestionThe API HtmlHelp(...,....,....,....) Takes four parameters, The CWnd::HtmlHelp(....,.....) takes 2 parameters. Ineed to know how to use the CWnd::HtmlHelp() Pin
Larry Mills Sr25-Jun-08 12:06
Larry Mills Sr25-Jun-08 12:06 
AnswerRe: The API HtmlHelp(...,....,....,....) Takes four parameters, The CWnd::HtmlHelp(....,.....) takes 2 parameters. Ineed to know how to use the CWnd::HtmlHelp() Pin
David Crow25-Jun-08 13:19
David Crow25-Jun-08 13:19 
QuestionHow to resolve ordinal problems Pin
problemfixer25-Jun-08 11:12
problemfixer25-Jun-08 11:12 
AnswerRepost - Please ignore Pin
CPallini25-Jun-08 11:24
mveCPallini25-Jun-08 11:24 
AnswerRe: How to resolve ordinal problems Pin
Hamid_RT27-Jun-08 8:10
Hamid_RT27-Jun-08 8:10 
Questionif parent and child classes declare the same static member variable ? Pin
amistry_petlad25-Jun-08 11:12
amistry_petlad25-Jun-08 11:12 
AnswerRe: if parent and child classes declare the same static member variable ? Pin
CPallini25-Jun-08 11:39
mveCPallini25-Jun-08 11:39 

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.