Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen1-Oct-08 14:18
Naveen1-Oct-08 14:18 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj1-Oct-08 22:42
josip cagalj1-Oct-08 22:42 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen1-Oct-08 22:54
Naveen1-Oct-08 22:54 
GeneralRe: Subitem hiliting in CListCtrl [modified] Pin
josip cagalj1-Oct-08 23:14
josip cagalj1-Oct-08 23:14 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj2-Oct-08 0:59
josip cagalj2-Oct-08 0:59 
AnswerRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 21:49
josip cagalj30-Sep-08 21:49 
AnswerRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 21:50
josip cagalj30-Sep-08 21:50 
QuestionProblem with VScroll Bar. [modified] Pin
Le@rner30-Sep-08 2:28
Le@rner30-Sep-08 2:28 
Hi all,

I m using a TreeCtrl with CTreeCtrl derived class.
Here i m using a LButtonDown function for get Item Text.

	void CTree::OnLButtonDown(UINT nFlags, CPoint point)<br />
{<br />
CTreeView::OnLButtonDown(nFlags, point);<br />
<br />
CTreeCtrl& tc = GetTreeCtrl();<br />
::GetCursorPos(&point);<br />
tc.ScreenToClient(&point);<br />
<br />
UINT uFlags ;<br />
HTREEITEM hItem = tc.HitTest(point, &uFlags);<br />
if ((hItem != NULL) && (TVHT_ONITEM & uFlags))<br />
{<br />
tc.Select(hItem, TVGN_CARET);<br />
}<br />
tc.SelectItem(hItem);<br />
tc.SetFocus(); <br />
CString Tree_str;<br />
Tree_str = tc.GetItemText(hItem);<br />
AfxMessageBox(Tree_str);<br />
<br />
}<br />
<br />
<br />


Here number of items are present.
if i expnd all th item the VScroll display.
if scrollbar displays and i select any item than it prompt a wrong value of item.

i think its happens becoz of position change by VScroll.

Please tell me any solution for this.

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

modified on Saturday, October 4, 2008 1:45 AM

AnswerRe: Problem with VScroll Bar. Pin
Sarath C30-Sep-08 3:25
Sarath C30-Sep-08 3:25 
GeneralRe: Problem with VScroll Bar. Pin
Le@rner3-Oct-08 19:46
Le@rner3-Oct-08 19:46 
GeneralRe: Problem with VScroll Bar. Pin
Sarath C3-Oct-08 23:28
Sarath C3-Oct-08 23:28 
QuestionTraverse System Volume Information Folder Pin
john563230-Sep-08 2:02
john563230-Sep-08 2:02 
AnswerRe: Traverse System Volume Information Folder [modified] Pin
Michael Schubert30-Sep-08 2:30
Michael Schubert30-Sep-08 2:30 
QuestionRe: Traverse System Volume Information Folder Pin
john563230-Sep-08 20:09
john563230-Sep-08 20:09 
AnswerRe: Traverse System Volume Information Folder Pin
Michael Schubert30-Sep-08 20:20
Michael Schubert30-Sep-08 20:20 
QuestionMFC dll creation Pin
AnithaSubramani30-Sep-08 1:58
AnithaSubramani30-Sep-08 1:58 
AnswerRe: MFC dll creation Pin
_AnsHUMAN_ 30-Sep-08 2:25
_AnsHUMAN_ 30-Sep-08 2:25 
AnswerRe: MFC dll creation Pin
SandipG 30-Sep-08 3:03
SandipG 30-Sep-08 3:03 
QuestionIcons Pin
Sarriss30-Sep-08 1:56
Sarriss30-Sep-08 1:56 
AnswerRe: Icons Pin
Iain Clarke, Warrior Programmer30-Sep-08 2:15
Iain Clarke, Warrior Programmer30-Sep-08 2:15 
QuestionRe: Icons [modified] Pin
Sarriss30-Sep-08 2:20
Sarriss30-Sep-08 2:20 
AnswerRe: Icons Pin
Iain Clarke, Warrior Programmer30-Sep-08 4:39
Iain Clarke, Warrior Programmer30-Sep-08 4:39 
GeneralRe: Icons Pin
Sarriss30-Sep-08 5:00
Sarriss30-Sep-08 5:00 
QuestionCompression in C# Pin
RYU^^30-Sep-08 1:23
RYU^^30-Sep-08 1:23 
AnswerRe: Compression in C# Pin
RYU^^30-Sep-08 1:23
RYU^^30-Sep-08 1:23 

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.