Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: opengl Pin
leckey17-Jun-07 16:53
leckey17-Jun-07 16:53 
QuestionDerived Class and Base Class Pin
ForNow16-Jun-07 15:49
ForNow16-Jun-07 15:49 
AnswerRe: Derived Class and Base Class Pin
Cyrilix16-Jun-07 16:08
Cyrilix16-Jun-07 16:08 
GeneralRe: Derived Class and Base Class Pin
ForNow16-Jun-07 16:19
ForNow16-Jun-07 16:19 
AnswerRe: Derived Class and Base Class Pin
David Crow18-Jun-07 2:48
David Crow18-Jun-07 2:48 
GeneralRe: Derived Class and Base Class Pin
ForNow18-Jun-07 6:28
ForNow18-Jun-07 6:28 
QuestionSize of blank character in printf in MFC Pin
Electronic7516-Jun-07 11:03
Electronic7516-Jun-07 11:03 
AnswerRe: Size of blank character in printf in MFC Pin
Mark Salsbery16-Jun-07 11:34
Mark Salsbery16-Jun-07 11:34 
You could use a fixed-pitch font for the listbox:

// In constructor
LOGFONT logFont;
memset(&logFont, 0, sizeof(logFont));
logFont.lfHeight = -10;
logFont.lfWeight = FW_NORMAL;
logFont.lfPitchAndFamily = FIXED_PITCH | FF_MODERN;
//_tcscpy(logFont.lfFaceName, _T("some font name"));
m_fixedfont.CreateFontIndirect(&logFont);
...
// In OnInitDialog or OnCreate()
m_ListBox.SetFont(&m_fixedfont, FALSE);
 
// Test if it looks good :)
m_ListBox.AddString(_T("0.01   123.12"));
m_ListBox.AddString(_T("0.01    23.12"));
m_ListBox.AddString(_T("0.01     3.12"));
m_ListBox.AddString(_T("0.01   123.12"));
m_ListBox.AddString(_T("0.01   123.12"));




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Size of blank character in printf in MFC Pin
Electronic7516-Jun-07 17:59
Electronic7516-Jun-07 17:59 
QuestionRe: Size of blank character in printf in MFC Pin
David Crow18-Jun-07 2:43
David Crow18-Jun-07 2:43 
Questioncreating more than one window using GLUT Pin
moonraker92816-Jun-07 10:15
moonraker92816-Jun-07 10:15 
QuestionGetting Detailed NIC Info Pin
Akin Ocal16-Jun-07 9:36
Akin Ocal16-Jun-07 9:36 
AnswerRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 9:48
Mark Salsbery16-Jun-07 9:48 
GeneralRe: Getting Detailed NIC Info Pin
Akin Ocal16-Jun-07 9:49
Akin Ocal16-Jun-07 9:49 
GeneralRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 9:53
Mark Salsbery16-Jun-07 9:53 
GeneralRe: Getting Detailed NIC Info Pin
Akin Ocal16-Jun-07 10:11
Akin Ocal16-Jun-07 10:11 
GeneralRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 10:28
Mark Salsbery16-Jun-07 10:28 
QuestionEnumerating PCI & USB Devices ? Pin
Akin Ocal16-Jun-07 9:32
Akin Ocal16-Jun-07 9:32 
QuestionCArray - tripple array fails size assertion [modified] Pin
Vaclav_16-Jun-07 9:29
Vaclav_16-Jun-07 9:29 
AnswerRe: CArray - tripple array fails size assertion Pin
Mark Salsbery16-Jun-07 9:55
Mark Salsbery16-Jun-07 9:55 
QuestionProgress Control difference in Editor vs. Runtime Pin
StevenS_Dev16-Jun-07 6:35
StevenS_Dev16-Jun-07 6:35 
QuestionHow to communicate with soundcard Pin
Max++16-Jun-07 2:49
Max++16-Jun-07 2:49 
QuestionRe: How to communicate with soundcard Pin
Mark Salsbery16-Jun-07 6:01
Mark Salsbery16-Jun-07 6:01 
AnswerRe: How to communicate with soundcard Pin
Max++16-Jun-07 6:55
Max++16-Jun-07 6:55 
GeneralRe: How to communicate with soundcard Pin
Mark Salsbery16-Jun-07 7:14
Mark Salsbery16-Jun-07 7:14 

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.