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

C / C++ / MFC

 
GeneralRe: Serialize Pin
David Crow17-Sep-04 7:59
David Crow17-Sep-04 7:59 
GeneralRe: Serialize Pin
Ryan Binns16-Sep-04 18:27
Ryan Binns16-Sep-04 18:27 
GeneralRe: Serialize Pin
TUMB17-Sep-04 1:53
TUMB17-Sep-04 1:53 
GeneralProgrammatically modifying an HTML document from visual C++ Pin
Freeman Taylor16-Sep-04 4:11
Freeman Taylor16-Sep-04 4:11 
GeneralRe: Programmatically modifying an HTML document from visual C++ Pin
David Crow16-Sep-04 5:07
David Crow16-Sep-04 5:07 
GeneralRe: Programmatically modifying an HTML document from visual C++ Pin
Freeman Taylor16-Sep-04 6:18
Freeman Taylor16-Sep-04 6:18 
GeneralRe: Programmatically modifying an HTML document from visual C++ Pin
Neville Franks16-Sep-04 10:33
Neville Franks16-Sep-04 10:33 
Generalfonts changing without me asking them to Pin
BlackDice16-Sep-04 3:57
BlackDice16-Sep-04 3:57 
I have a textbox that I'm using CFontDialog to change the font of. That works, but it also changes the font for every other control on the dialog as they're repainted. For instance, a command button will have its same font until I click on it, at which time the font changes to some big, ugly, bold font (maybe some type of default system font). I think that somehow the dialog's font is getting set to nothing because I tried opening up the font dialog sending in the dialog's current font and it's set the first time, but the next time I open up the font dialog, nothing is selected like I have no font for my dialog. Here's what I have:
ZeroMemory(&m_Font,sizeof(LOGFONT));
  	CFont* pFont = m_LockEdit.GetFont();
	pFont->GetLogFont(&m_Font);
	CFontDialog dlg(&m_Font);
	dlg.m_cf.Flags |= CF_TTONLY;	//so user can only choose Truetype or OEM fonts
	
	if(dlg.DoModal() == IDOK)
	{
		LOGFONT lgfnt;
		dlg.GetCurrentFont(&lgfnt);
		m_cFont.DeleteObject();
		m_cFont.CreateFontIndirect( &lgfnt );
		m_LockEdit.SetFont( &m_cFont, TRUE );
		pFont->DeleteObject();
		
	}


[insert witty comment here]

bdiamond Sleepy | :zzz:
GeneralRe: fonts changing without me asking them to Pin
Gary R. Wheeler19-Sep-04 15:48
Gary R. Wheeler19-Sep-04 15:48 
Generalserial port: client server communication Pin
thelearnervc16-Sep-04 3:02
thelearnervc16-Sep-04 3:02 
GeneralA tricky problem of converting to string Pin
Anonymous16-Sep-04 2:33
Anonymous16-Sep-04 2:33 
GeneralRe: A tricky problem of converting to string Pin
Paolo Ponzano16-Sep-04 2:48
Paolo Ponzano16-Sep-04 2:48 
GeneralRe: A tricky problem of converting to string Pin
PrashantJ16-Sep-04 3:43
PrashantJ16-Sep-04 3:43 
GeneralRe: A tricky problem of converting to string Pin
David Crow16-Sep-04 4:07
David Crow16-Sep-04 4:07 
GeneralRe: A tricky problem of converting to string Pin
PrashantJ16-Sep-04 4:36
PrashantJ16-Sep-04 4:36 
GeneralRe: A tricky problem of converting to string Pin
David Crow16-Sep-04 5:00
David Crow16-Sep-04 5:00 
General2 quick questions... Pin
0v3rloader16-Sep-04 2:24
0v3rloader16-Sep-04 2:24 
GeneralRe: 2 quick questions... Pin
Arsalan Malik16-Sep-04 2:48
Arsalan Malik16-Sep-04 2:48 
GeneralRe: 2 quick questions... Pin
David Crow16-Sep-04 3:47
David Crow16-Sep-04 3:47 
GeneralRe: 2 quick questions... Pin
0v3rloader16-Sep-04 4:26
0v3rloader16-Sep-04 4:26 
GeneralRe: 2 quick questions... Pin
David Crow16-Sep-04 4:39
David Crow16-Sep-04 4:39 
GeneralRe: 2 quick questions... Pin
0v3rloader16-Sep-04 5:19
0v3rloader16-Sep-04 5:19 
GeneralRe: 2 quick questions... Pin
David Crow16-Sep-04 6:30
David Crow16-Sep-04 6:30 
GeneralRe: 2 quick questions... Pin
0v3rloader16-Sep-04 8:01
0v3rloader16-Sep-04 8:01 
GeneralOleThreadMainWndName Pin
shiraztk16-Sep-04 1:53
shiraztk16-Sep-04 1:53 

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.