Click here to Skip to main content
15,909,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Thread & Message pb? Pin
Ori10-Oct-00 2:45
Ori10-Oct-00 2:45 
AnswerRe: Thread & Message pb? Pin
Erik Funkenbusch10-Oct-00 11:22
Erik Funkenbusch10-Oct-00 11:22 
GeneralRe: Thread & Message pb? Pin
Ori11-Oct-00 1:50
Ori11-Oct-00 1:50 
GeneralRe: Thread & Message pb? Pin
Erik Funkenbusch11-Oct-00 10:15
Erik Funkenbusch11-Oct-00 10:15 
AnswerRe: Thread & Message pb? Pin
Mark Jones18-Oct-00 11:25
Mark Jones18-Oct-00 11:25 
QuestionCan anyone help me draw to a picture control? Pin
Rick Gungadoo10-Oct-00 1:15
sussRick Gungadoo10-Oct-00 1:15 
Questionhow to change the font for a label Pin
Mac9-Oct-00 22:10
Mac9-Oct-00 22:10 
AnswerRe: how to change the font for a label Pin
frydaysoft.de10-Oct-00 7:25
sussfrydaysoft.de10-Oct-00 7:25 
i think this way could work:

overwrite or go into InitDialog (WM_INITDIALOG)
and set here the font for the label.
I hope that is correct, because it's only a part of 16-bit-code-application (MFC). I believe IDC_ErrorA was a Label.

//define at the top of your cpp-file
CFont m_biggerFont; //must be are here, global in View for Paint()

void Cxx_View::OnInitialUpdate()
{
LOGFONT logfont;
CRect rect; // get edit control size

GetDlgItem(IDC_ErrorA)->GetWindowRect(&rect);
ScreenToClient(&rect); // in parent coordinate
memset(&logfont, 0, sizeof(logfont));
logfont.lfHeight = int ((rect.bottom-rect.top));
logfont.lfWeight = FW_BOLD;
switch(FontType)
{
case 0: strcpy(logfont.lfFaceName, "MS Sans Serif");break;
default: strcpy(logfont.lfFaceName, "MS Sans Serif");
}
VERIFY(m_biggerFont.CreateFontIndirect(&logfont));
GetDlgItem(IDC_BigA)->SetFont(&m_biggerFont,TRUE);
GetDlgItem(IDC_BigA)->UpdateWindow();
...
}


QuestionStrings from a text file or database? Pin
Fredrik9-Oct-00 21:40
Fredrik9-Oct-00 21:40 
GeneralTitleBar Text Pin
Frank Deo9-Oct-00 11:14
Frank Deo9-Oct-00 11:14 
GeneralMS Access 2000 and VC6 Pin
Gozer9-Oct-00 9:48
Gozer9-Oct-00 9:48 
GeneralWin32API/GDI/Fonts Pin
Kirill Sherman9-Oct-00 9:29
sussKirill Sherman9-Oct-00 9:29 
GeneralCopy constructor in Exception Class Pin
Robin8-Oct-00 16:41
Robin8-Oct-00 16:41 
GeneralRe: Copy constructor in Exception Class Pin
Tim Deveaux9-Oct-00 5:08
Tim Deveaux9-Oct-00 5:08 
GeneralSingle Document naming Pin
kin8-Oct-00 13:28
kin8-Oct-00 13:28 
GeneralRe: Single Document naming Pin
Tim Deveaux8-Oct-00 14:48
Tim Deveaux8-Oct-00 14:48 
GeneralRe: Single Document naming Pin
Sam Hobbs9-Oct-00 20:27
Sam Hobbs9-Oct-00 20:27 
GeneralEnabling/graying normal menu items? (Win 2000) Pin
Martin Vrbovsky8-Oct-00 12:09
sussMartin Vrbovsky8-Oct-00 12:09 
GeneralRe: Enabling/graying normal menu items? (Win 2000) Pin
Michael Dunn9-Oct-00 9:58
sitebuilderMichael Dunn9-Oct-00 9:58 
General*** Displaying TABLES from Access in a MFC application *** Pin
Steve Lai8-Oct-00 8:53
Steve Lai8-Oct-00 8:53 
General*** Saving TABLES from Access with MFC application *** Pin
Steve Lai8-Oct-00 8:52
Steve Lai8-Oct-00 8:52 
Generaldocking Pin
mike99998-Oct-00 6:53
mike99998-Oct-00 6:53 
Generalhwnd of other windows Pin
valec8-Oct-00 5:47
valec8-Oct-00 5:47 
GeneralRe: hwnd of other windows Pin
Tim Deveaux8-Oct-00 7:17
Tim Deveaux8-Oct-00 7:17 
GeneralRe: hwnd of other windows Pin
Michael Dunn8-Oct-00 7:55
sitebuilderMichael Dunn8-Oct-00 7:55 

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.