Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs it possible to construct a screen which can display the points of x, y and z axis by inputing 3 txt files by c++? Pin
johndoelee1-Apr-08 3:26
johndoelee1-Apr-08 3:26 
GeneralRe: Is it possible to construct a screen which can display the points of x, y and z axis by inputing 3 txt files by c++? Pin
Iain Clarke, Warrior Programmer1-Apr-08 3:57
Iain Clarke, Warrior Programmer1-Apr-08 3:57 
GeneralRe: Is it possible to construct a screen which can display the points of x, y and z axis by inputing 3 txt files by c++? Pin
Cedric Moonen1-Apr-08 4:08
Cedric Moonen1-Apr-08 4:08 
GeneralRe: Is it possible to construct a screen which can display the points of x, y and z axis by inputing 3 txt files by c++? Pin
CPallini1-Apr-08 4:14
mveCPallini1-Apr-08 4:14 
QuestionRe: Is it possible to construct a screen which can display the points of x, y and z axis by inputing 3 txt files by c++? [modified] Pin
johndoelee1-Apr-08 4:58
johndoelee1-Apr-08 4:58 
GeneralListBox SDI SetFont Pin
_chew1-Apr-08 3:09
_chew1-Apr-08 3:09 
QuestionRe: ListBox SDI SetFont Pin
David Crow1-Apr-08 3:30
David Crow1-Apr-08 3:30 
GeneralRe: ListBox SDI SetFont Pin
_chew1-Apr-08 5:57
_chew1-Apr-08 5:57 
I have tried these three methods so far...

// First way
CFont Font;

Font.CreateFont(12, // Height
0, // Width
0, // Escapement
0, // Orientation
FW_BOLD, // Weight
FALSE, // Italic
TRUE, // Underline
0, // StrikeOut
ANSI_CHARSET, // CharSet
OUT_DEFAULT_PRECIS, // OutPrecision
CLIP_DEFAULT_PRECIS, // ClipPrecision
DEFAULT_QUALITY, // Quality
DEFAULT_PITCH | FF_SWISS, // PitchAndFamily
"Arial")); // Facename

pListBox->SetFont(&Font);


// Second way
CFont Font;
LOGFONT lfLogFont;

memset(&lfLogFont, 0, sizeof(lfLogFont));

lfLogFont.lfHeight = 12; // 12-pixel-height
lfLogFont.lfWeight = FW_BOLD; // Bold
lfLogFont.lfUnderline = TRUE; // Underlined

strcpy(lfLogFont.lfFaceName, "Arial"); // Arial

Font.CreateFontIndirect(&lfLogFont);

pListBox->SetFont(&Font);



// Third way
CFont Font;
LOGFONT lfLogFont;

memset(&lfLogFont, 0, sizeof(lfLogFont));

lfLogFont.lfHeight = 120; // 12-pixel-height
lfLogFont.lfWeight = FW_BOLD; // Bold
lfLogFont.lfUnderline = TRUE; // Underlined

strcpy(lfLogFont.lfFaceName, "Arial"); // Arial

Font.CreatePointFontIndirect(&lfLogFont);

pListBox->SetFont(&Font);
GeneralRe: ListBox SDI SetFont Pin
Mark Salsbery1-Apr-08 6:14
Mark Salsbery1-Apr-08 6:14 
QuestionRe: ListBox SDI SetFont Pin
David Crow1-Apr-08 6:15
David Crow1-Apr-08 6:15 
GeneralRe: ListBox SDI SetFont Pin
_chew1-Apr-08 17:01
_chew1-Apr-08 17:01 
GeneralRe: ListBox SDI SetFont Pin
Mark Salsbery1-Apr-08 19:22
Mark Salsbery1-Apr-08 19:22 
GeneralRe: ListBox SDI SetFont Pin
Hamid_RT7-Apr-08 3:37
Hamid_RT7-Apr-08 3:37 
Generalauto_ptr array Pin
George_George1-Apr-08 0:50
George_George1-Apr-08 0:50 
GeneralRe: auto_ptr array Pin
_AnsHUMAN_ 1-Apr-08 0:59
_AnsHUMAN_ 1-Apr-08 0:59 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 1:41
George_George1-Apr-08 1:41 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 1:55
mveCPallini1-Apr-08 1:55 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:03
George_George1-Apr-08 2:03 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 2:17
mveCPallini1-Apr-08 2:17 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:22
George_George1-Apr-08 2:22 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 2:28
mveCPallini1-Apr-08 2:28 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:54
George_George1-Apr-08 2:54 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 3:01
mveCPallini1-Apr-08 3:01 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 3:16
George_George1-Apr-08 3:16 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 4:09
mveCPallini1-Apr-08 4:09 

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.