Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Radio Buttons Pin
Nish Nishant18-Dec-01 19:12
sitebuilderNish Nishant18-Dec-01 19:12 
GeneralRe: Radio Buttons Pin
Christian Graus19-Dec-01 1:03
protectorChristian Graus19-Dec-01 1:03 
GeneralRe: Radio Buttons Pin
19-Dec-01 1:06
suss19-Dec-01 1:06 
GeneralRe: Radio Buttons Pin
Nish Nishant19-Dec-01 16:11
sitebuilderNish Nishant19-Dec-01 16:11 
GeneralResource Updating Pin
Tili18-Dec-01 10:20
Tili18-Dec-01 10:20 
GeneralRe: Resource Updating Pin
Joaquín M López Muñoz18-Dec-01 12:41
Joaquín M López Muñoz18-Dec-01 12:41 
GeneralRe: Resource Updating Pin
Tili19-Dec-01 7:31
Tili19-Dec-01 7:31 
Questionhow ? Pin
Sonu Kapoor18-Dec-01 10:05
Sonu Kapoor18-Dec-01 10:05 
Hi Guys,

i am creating an app with a doc/view architecture. The base class of my view class is CListView. Now i am using the InsertColumn function of CListCtrl. After that i am inserting some strings with the InsertItem function. The problem now us that i am changing the font, and the font of the Column also changes. WHY ?? I want that the Column Font stay always same and only the inserted String font wwould be changed...

Please see code:

void CFVCtrlView::OnInitialUpdate()
{
CListView::OnInitialUpdate();
CListCtrl &lCtrl=GetListCtrl();

lCtrl.InsertColumn(0,"Header",LVCFMT_LEFT,300);
lCtrl.ModifyStyle(0, LVS_SORTASCENDING | LVS_REPORT | LVS_EX_FULLROWSELECT );
lCtrl.SetBkColor(RGB(160, 184, 207));

}

.
.
.

void CFVCtrlView::SetFonts()
{
CListCtrl &lCtrl=GetListCtrl();
CFont *font=(CFont *)this;
font->CreatePointFont(100,"arial");
lCtrl.SetFont(font);

lCtrl.InsertItem(1,"Hello World",0);
}



Please help if anybody can...

Its really urgent.

regards

sonuCry | :((
AnswerRe: how ? Pin
Christian Graus18-Dec-01 10:10
protectorChristian Graus18-Dec-01 10:10 
GeneralCDialog - oldie but goodie Pin
john john mackey18-Dec-01 10:03
john john mackey18-Dec-01 10:03 
GeneralRe: CDialog - oldie but goodie Pin
Christian Graus18-Dec-01 10:12
protectorChristian Graus18-Dec-01 10:12 
GeneralRe: CDialog - oldie but goodie Pin
john john mackey18-Dec-01 10:47
john john mackey18-Dec-01 10:47 
GeneralRe: CDialog - oldie but goodie Pin
Christian Graus18-Dec-01 10:57
protectorChristian Graus18-Dec-01 10:57 
GeneralInitializing modal/modeless dialogs with same code Pin
Ravi Bhavnani18-Dec-01 12:07
professionalRavi Bhavnani18-Dec-01 12:07 
GeneralRe: Initializing modal/modeless dialogs with same code Pin
Christian Graus18-Dec-01 12:26
protectorChristian Graus18-Dec-01 12:26 
GeneralRe: Initializing modal/modeless dialogs with same code Pin
Ravi Bhavnani18-Dec-01 12:52
professionalRavi Bhavnani18-Dec-01 12:52 
QuestionHow ??? Pin
18-Dec-01 9:47
suss18-Dec-01 9:47 
AnswerRe: How ??? Pin
Ganesh Ramaswamy18-Dec-01 17:27
Ganesh Ramaswamy18-Dec-01 17:27 
GeneralRe: How ??? Pin
Sonu Kapoor19-Dec-01 5:41
Sonu Kapoor19-Dec-01 5:41 
GeneralRe: How ??? Pin
Sonu Kapoor21-Dec-01 7:47
Sonu Kapoor21-Dec-01 7:47 
Generaloveriding Cstatic::OnEraseBkgrd Pin
18-Dec-01 8:10
suss18-Dec-01 8:10 
GeneralRe: overiding Cstatic::OnEraseBkgrd Pin
18-Dec-01 8:33
suss18-Dec-01 8:33 
GeneralRe: overiding Cstatic::OnEraseBkgrd Pin
Tim Deveaux18-Dec-01 10:33
Tim Deveaux18-Dec-01 10:33 
GeneralCrystal Report - Date query ! Pin
Hadi Rezaee18-Dec-01 7:54
Hadi Rezaee18-Dec-01 7:54 
QuestionHow to hook? Pin
Pony18-Dec-01 7:03
Pony18-Dec-01 7:03 

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.