Click here to Skip to main content
16,006,377 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to initialize MFC app Pin
Ravi Bhavnani28-Apr-03 5:00
professionalRavi Bhavnani28-Apr-03 5:00 
AnswerRe: How to initialize MFC app Pin
bob_brown_200028-Apr-03 7:00
bob_brown_200028-Apr-03 7:00 
GeneralLooking for a Edit box where i can set the font size. Pin
whofmans28-Apr-03 3:36
whofmans28-Apr-03 3:36 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
David Crow28-Apr-03 4:25
David Crow28-Apr-03 4:25 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
whofmans28-Apr-03 4:35
whofmans28-Apr-03 4:35 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
Ravi Bhavnani28-Apr-03 4:57
professionalRavi Bhavnani28-Apr-03 4:57 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
David Crow28-Apr-03 5:14
David Crow28-Apr-03 5:14 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
basementman28-Apr-03 5:18
basementman28-Apr-03 5:18 
create a font, and set the edit control to use it. The font object should be a member var in your dlg class.

Method 1:
---------
OnInitDialog()
{
...

m_oFont.CreatePointFont(80,"MS Sans serif");
m_oEditControl.SetFont(&m_oFont);

...
}

Method 2:
---------
static LOGFONT BASED_CODE sEditFont =
{ -10, 0, 0, 0, FW_BOLD, 0, 0, 0, 0, OUT_STRING_PRECIS, CLIP_STROKE_PRECIS,
DEFAULT_QUALITY, VARIABLE_PITCH|FF_SWISS, "Arial"};

OnInitDialog()
{
...

m_oFont.CreateFontIndirect(&sEditFont);
m_oEditControl.SetFont(&m_oFont);

...
}
GeneralThank you all! Pin
whofmans28-Apr-03 7:22
whofmans28-Apr-03 7:22 
GeneralCalling Visual C++ stuff from VB.NET Pin
Patwick28-Apr-03 2:33
Patwick28-Apr-03 2:33 
Questionhow to create a shortcut ? Pin
_crs_28-Apr-03 2:24
_crs_28-Apr-03 2:24 
AnswerRe: how to create a shortcut ? Pin
David Crow28-Apr-03 3:44
David Crow28-Apr-03 3:44 
GeneralRe: how to create a shortcut ? Pin
_crs_28-Apr-03 4:41
_crs_28-Apr-03 4:41 
GeneralActiveX help requiered Pin
andreshs128-Apr-03 2:00
andreshs128-Apr-03 2:00 
GeneralCan't use template function to do 2 similar things(display member,book) Pin
grscot28-Apr-03 2:00
grscot28-Apr-03 2:00 
GeneralRe: Can't use template function to do 2 similar things(display member,book) Pin
valikac28-Apr-03 8:33
valikac28-Apr-03 8:33 
Generalpreventing repaint outside application Pin
yourbuddy7728-Apr-03 1:42
yourbuddy7728-Apr-03 1:42 
GeneralRe: preventing repaint outside application Pin
yourbuddy7728-Apr-03 1:57
yourbuddy7728-Apr-03 1:57 
GeneralRe: preventing repaint outside application Pin
Joel Lucsy28-Apr-03 3:03
Joel Lucsy28-Apr-03 3:03 
GeneralString resource as CFileDialog title Pin
-Dy28-Apr-03 1:35
-Dy28-Apr-03 1:35 
GeneralRe: String resource as CFileDialog title Pin
David Crow28-Apr-03 4:03
David Crow28-Apr-03 4:03 
GeneralSetDefaultPrinter in WinSpool.h Pin
Jaffer Mumtaz28-Apr-03 1:22
Jaffer Mumtaz28-Apr-03 1:22 
GeneralRe: SetDefaultPrinter in WinSpool.h Pin
Joel Lucsy28-Apr-03 3:05
Joel Lucsy28-Apr-03 3:05 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
Jaffer Mumtaz28-Apr-03 3:48
Jaffer Mumtaz28-Apr-03 3:48 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
jhwurmbach28-Apr-03 4:04
jhwurmbach28-Apr-03 4:04 

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.