Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: saving a CListCtrl as a file Pin
Rage22-Apr-03 5:07
professionalRage22-Apr-03 5:07 
GeneralGet Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 4:37
triggerdie22-Apr-03 4:37 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage22-Apr-03 5:35
professionalRage22-Apr-03 5:35 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 22:02
triggerdie22-Apr-03 22:02 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage22-Apr-03 23:07
professionalRage22-Apr-03 23:07 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage23-Apr-03 23:10
professionalRage23-Apr-03 23:10 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
eXplodus22-Apr-03 8:10
eXplodus22-Apr-03 8:10 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Joan M22-Apr-03 21:35
professionalJoan M22-Apr-03 21:35 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 22:21
triggerdie22-Apr-03 22:21 
GeneralQuestion about Int64. Pin
George222-Apr-03 4:26
George222-Apr-03 4:26 
GeneralRe: Question about Int64. Pin
Tim Smith22-Apr-03 4:40
Tim Smith22-Apr-03 4:40 
GeneralRe: Question about Int64. Pin
George222-Apr-03 16:26
George222-Apr-03 16:26 
GeneralRe: Question about Int64. Pin
John R. Shaw22-Apr-03 16:42
John R. Shaw22-Apr-03 16:42 
GeneralRe: Question about Int64. Pin
George222-Apr-03 19:43
George222-Apr-03 19:43 
GeneralPixels - char (difficult) Pin
JensB22-Apr-03 3:52
JensB22-Apr-03 3:52 
Hi
I'm inserting all kind of columns in a CListCtrl
with structure LV_COLUMN like this:

ColumnVi = new LV_COLUMN();
CString Title;
ColumnVi->mask = LVCF_TEXT | LVCF_WIDTH;
ColumnVi->fmt = LVCFMT_CENTER;

//Inserting
ColumnVi->cx = 35;
Title = "Nr.";
ColumnVi->pszText = Title.GetBuffer(3); m_PersCtrl.InsertColumn(0,ColumnVi);
//Insert the column into the clistctrl

The width of column i've set to 35, i tested it out and changed the value until it looked good. but the caption can change at some time .. so how can i know how much pixels 1 char. takes or anyone have other ideas to make it more dynamic?

Greetings Jens
GeneralRe: Pixels - char (difficult) Pin
Hans Ruck22-Apr-03 4:01
Hans Ruck22-Apr-03 4:01 
GeneralRe: Pixels - char (difficult) Pin
Jim Crafton22-Apr-03 4:40
Jim Crafton22-Apr-03 4:40 
GeneralCrash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 3:39
dandy7222-Apr-03 3:39 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 3:53
Tim Smith22-Apr-03 3:53 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 4:28
dandy7222-Apr-03 4:28 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 4:42
Tim Smith22-Apr-03 4:42 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 5:10
dandy7222-Apr-03 5:10 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 6:19
Tim Smith22-Apr-03 6:19 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 8:13
dandy7222-Apr-03 8:13 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 9:03
Tim Smith22-Apr-03 9: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.