Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nah! Pin
CPallini5-Nov-08 2:51
mveCPallini5-Nov-08 2:51 
JokeRe: Nah! Pin
Iain Clarke, Warrior Programmer5-Nov-08 0:45
Iain Clarke, Warrior Programmer5-Nov-08 0:45 
GeneralRe: Nah! Pin
CPallini5-Nov-08 0:58
mveCPallini5-Nov-08 0:58 
QuestionRegistry Vs Ini Pin
anna mathew4-Nov-08 23:33
anna mathew4-Nov-08 23:33 
AnswerRe: Registry Vs Ini Pin
Hamid_RT4-Nov-08 23:50
Hamid_RT4-Nov-08 23:50 
AnswerRe: Registry Vs Ini Pin
CPallini5-Nov-08 0:10
mveCPallini5-Nov-08 0:10 
AnswerRe: Registry Vs Ini Pin
Rajesh R Subramanian5-Nov-08 2:13
professionalRajesh R Subramanian5-Nov-08 2:13 
QuestionHelp me for CTreeView ? Pin
Le@rner4-Nov-08 23:10
Le@rner4-Nov-08 23:10 
Hi all,

i m using a TreeCtrl in CTreeView Derived class.
use this to insert item in TreeCtrl.

void CSideTree::OnInitialUpdate()
{
	CTreeView::OnInitialUpdate();

	CTreeCtrl&  trCtrl = GetTreeCtrl(); 

	trCtrl.ModifyStyle(0,WS_VISIBLE |  WS_CHILD | WS_BORDER| WS_TABSTOP|TVS_HASBUTTONS|TVS_LINESATROOT |TVS_INFOTIP);

	HTREEITEM parent1=trCtrl.InsertItem( _T("Parent1"),TVI_ROOT ); 	
	trCtrl.InsertItem(_T("Child1"),2,2,parent1);
	trCtrl.InsertItem(_T("Child2"),2,2,parent1);
	trCtrl.InsertItem(_T("Child3"),2,2,parent1);
	trCtrl.InsertItem(_T("Child4"),2,2,parent1);

	HTREEITEM parent2=trCtrl.InsertItem( _T("Parent2"),TVI_ROOT );	
	trCtrl.InsertItem(_T("Child5"),2,2,parent2);
	trCtrl.InsertItem(_T("Child6"),2,2,parent2);
	trCtrl.InsertItem(_T("Child7"),2,2,parent2);
	trCtrl.InsertItem(_T("Child8"),2,2,parent2);

}


Here if i select any item than it diplayed in blue box i mean display selected.

but the blue box size is greater than the size of item text in case of parent selection, and in case of selection of child the blue box size is proportianate to child item text.

if this possible to show selected employee blue box according to its text.

please help me for this.

thank 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

AnswerRe: Help me for CTreeView ? Pin
Iain Clarke, Warrior Programmer5-Nov-08 0:59
Iain Clarke, Warrior Programmer5-Nov-08 0:59 
GeneralRe: Help me for CTreeView ? Pin
Le@rner5-Nov-08 1:31
Le@rner5-Nov-08 1:31 
GeneralRe: Help me for CTreeView ? Pin
Iain Clarke, Warrior Programmer5-Nov-08 2:10
Iain Clarke, Warrior Programmer5-Nov-08 2:10 
GeneralRe: Help me for CTreeView ? Pin
Le@rner5-Nov-08 17:04
Le@rner5-Nov-08 17:04 
QuestionPDF generation from C++ Pin
AnithaSubramani4-Nov-08 22:27
AnithaSubramani4-Nov-08 22:27 
AnswerRe: PDF generation from C++ Pin
Hamid_RT4-Nov-08 23:57
Hamid_RT4-Nov-08 23:57 
QuestionWindows application Pin
Karmendra Suthar4-Nov-08 22:07
Karmendra Suthar4-Nov-08 22:07 
AnswerRe: Windows application Pin
CPallini4-Nov-08 22:26
mveCPallini4-Nov-08 22:26 
QuestionCRichEditCtrl problem Pin
Dhiraj kumar Saini4-Nov-08 21:39
Dhiraj kumar Saini4-Nov-08 21:39 
AnswerRe: CRichEditCtrl problem Pin
SandipG 4-Nov-08 21:51
SandipG 4-Nov-08 21:51 
AnswerRe: CRichEditCtrl problem Pin
David Crow5-Nov-08 2:59
David Crow5-Nov-08 2:59 
Question[Message Deleted] Pin
izyani4-Nov-08 21:38
izyani4-Nov-08 21:38 
AnswerRe: Crypto Acquire Contect - 80090019 Pin
Mark Salsbery5-Nov-08 4:45
Mark Salsbery5-Nov-08 4:45 
GeneralRe: Crypto Acquire Contect - 80090019 Pin
izyani5-Nov-08 13:49
izyani5-Nov-08 13:49 
QuestionSave string inside an exe Pin
akshay.is.gr84-Nov-08 21:35
akshay.is.gr84-Nov-08 21:35 
AnswerRe: Save string inside an exe Pin
CPallini4-Nov-08 22:17
mveCPallini4-Nov-08 22:17 
QuestionHow to get selected file name prgramatically Pin
SNI4-Nov-08 21:30
SNI4-Nov-08 21:30 

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.