Click here to Skip to main content
16,013,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:12
adapterJohn10-Mar-03 4:12 
GeneralComms Problems Pin
TheFox10-Mar-03 1:49
TheFox10-Mar-03 1:49 
GeneralRe: Comms Problems Pin
Ted Ferenc10-Mar-03 3:49
Ted Ferenc10-Mar-03 3:49 
GeneralRe: Comms Problems Pin
TheFox10-Mar-03 5:29
TheFox10-Mar-03 5:29 
GeneralRe: Comms Problems Pin
Ted Ferenc10-Mar-03 6:09
Ted Ferenc10-Mar-03 6:09 
Generalto put text on a label field into bold Pin
JensB10-Mar-03 1:39
JensB10-Mar-03 1:39 
GeneralRe: to put text on a label field into bold Pin
Brian Shifrin10-Mar-03 2:09
Brian Shifrin10-Mar-03 2:09 
GeneralRe: to put text on a label field into bold Pin
JensB10-Mar-03 2:15
JensB10-Mar-03 2:15 
yes i know
i used a LOGFONT for my new font but i want it to be set on initdialog when the dialog shows, and you don't have a CDC pointer available in that function.

I have it like this:
LOGFONT logFont;
logFont.lfHeight = 8;
logFont.lfWidth = 0;
logFont.lfEscapement = 0;
logFont.lfOrientation = 0;
logFont.lfWeight = FW_BOLD;
logFont.lfItalic = 0;
logFont.lfUnderline = 0;
logFont.lfStrikeOut = 0;
logFont.lfCharSet = ANSI_CHARSET;
logFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
logFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
logFont.lfQuality = PROOF_QUALITY;
logFont.lfPitchAndFamily = VARIABLE_PITCH | FF_ROMAN;
strcpy(logFont.lfFaceName, 'Times New Roman');

CFont font;
font.CreateFontIndirect(&logFont);
CFont* oldFont = pDC->SelectObject(&font);
m_FuncNedCtrl.SetWindowText("Example");

pDC->SelectObject(oldFont);
GeneralRe: to put text on a label field into bold Pin
Iain Clarke, Warrior Programmer10-Mar-03 3:32
Iain Clarke, Warrior Programmer10-Mar-03 3:32 
GeneralRe: to put text on a label field into bold Pin
Alvaro Mendez10-Mar-03 7:39
Alvaro Mendez10-Mar-03 7:39 
GeneralCreate from resource Pin
Zizilamoroso10-Mar-03 1:31
Zizilamoroso10-Mar-03 1:31 
GeneralRe: Create from resource Pin
Baris Kurtlutepe10-Mar-03 5:25
Baris Kurtlutepe10-Mar-03 5:25 
GeneralProblem with the GetCurrentDirectory function !! Pin
Cris10-Mar-03 0:59
Cris10-Mar-03 0:59 
GeneralRe: Problem with the GetCurrentDirectory function !! Pin
Baris Kurtlutepe10-Mar-03 1:08
Baris Kurtlutepe10-Mar-03 1:08 
GeneralRe: Problem with the GetCurrentDirectory function !! Pin
Cris10-Mar-03 1:36
Cris10-Mar-03 1:36 
GeneralRe: Problem with the GetCurrentDirectory function !! Pin
kirk he10-Mar-03 1:09
susskirk he10-Mar-03 1:09 
Questionhow can i use a straight c function in a C++ program? Pin
kirk he10-Mar-03 0:23
susskirk he10-Mar-03 0:23 
AnswerRe: how can i use a straight c function in a C++ program? Pin
Christian Graus10-Mar-03 0:27
protectorChristian Graus10-Mar-03 0:27 
GeneralRe: how can i use a straight c function in a C++ program? Pin
kirk he10-Mar-03 0:37
susskirk he10-Mar-03 0:37 
GeneralRe: how can i use a straight c function in a C++ program? Pin
Christian Graus10-Mar-03 0:46
protectorChristian Graus10-Mar-03 0:46 
GeneralRe: how can i use a straight c function in a C++ program? Pin
kirk he10-Mar-03 0:53
susskirk he10-Mar-03 0:53 
AnswerRe: how can i use a straight c function in a C++ program? Pin
Baris Kurtlutepe10-Mar-03 0:51
Baris Kurtlutepe10-Mar-03 0:51 
GeneralRe: how can i use a straight c function in a C++ program? Pin
kirk he10-Mar-03 1:05
susskirk he10-Mar-03 1:05 
GeneralRe: how can i use a straight c function in a C++ program? Pin
Baris Kurtlutepe10-Mar-03 1:13
Baris Kurtlutepe10-Mar-03 1:13 
GeneralCustom Formatting in VC++ Pin
Iain Clarke, Warrior Programmer10-Mar-03 0:09
Iain Clarke, Warrior Programmer10-Mar-03 0: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.