Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 0:06
D.D. de Kerf11-Sep-01 0:06 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski11-Sep-01 0:12
Tomasz Sowinski11-Sep-01 0:12 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 0:16
D.D. de Kerf11-Sep-01 0:16 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski11-Sep-01 0:24
Tomasz Sowinski11-Sep-01 0:24 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 22:54
D.D. de Kerf11-Sep-01 22:54 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski12-Sep-01 0:36
Tomasz Sowinski12-Sep-01 0:36 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf12-Sep-01 21:48
D.D. de Kerf12-Sep-01 21:48 
GeneralChanging a CEdit font!! Pin
GX10-Sep-01 20:46
GX10-Sep-01 20:46 
HELP!!

I been trying for a while to get this right with various methods but to no avail..
the closest I got had little effect. Any help will be appreciated J

// In header file

//{{AFX_DATA(COutgoingMessage)
enum { IDD = IDD_MESSAGE_OUT };
CButton m_btnOK;
CButton m_btnCancel;
CStatic m_ctlToLabel;
CStatic m_ctlTo;
CEdit m_ctlBody;
CString m_Body;
CString m_To;
//}}AFX_DATA



// in the source file
void COutgoingMessage::OnSetFont()
{
// TODO: Add your specialized code here and/or call the base class

CFont font, *pFont;

BOOL bCreated = font.CreateFontIndirect(&m_lf);

ASSERT(bCreated);

// Done with the font. Delete the font object.

pFont = &font;

CDialog::OnSetFont(pFont);
m_ctlBody.SetFont(pFont);
font.DeleteObject();
//UpdateData( FALSE );

}

// NOTE !! I have tried many different methods this is the only method that shows a difference. However the is no visual chance in the font face!
can anyone give me any suggestions??
I have used the CLabel class elsewhere and found it useful, I tried to create my own CMyEdit Class using this as an example but to no avail..
what am I doing wrong??

GeneralRe: Changing a CEdit font!! Pin
Michael Dunn10-Sep-01 21:39
sitebuilderMichael Dunn10-Sep-01 21:39 
GeneralRe: Changing a CEdit font!! Pin
GX11-Sep-01 1:47
GX11-Sep-01 1:47 
QuestionWhere do I find a DVD Decoder??? Pin
10-Sep-01 19:54
suss10-Sep-01 19:54 
GeneralMemory Management Pin
Pritesh Sidhdhapura10-Sep-01 18:58
Pritesh Sidhdhapura10-Sep-01 18:58 
GeneralRe: Memory Management Pin
Christian Graus10-Sep-01 19:17
protectorChristian Graus10-Sep-01 19:17 
GeneralRe: Memory Management Pin
Todd Smith10-Sep-01 20:04
Todd Smith10-Sep-01 20:04 
GeneralWin32 Security Programming Question Pin
the_grip10-Sep-01 18:16
the_grip10-Sep-01 18:16 
GeneralRe: Win32 Security Programming Question Pin
the_grip11-Sep-01 10:32
the_grip11-Sep-01 10:32 
Generalnetmeeting Pin
ac952_z_cn10-Sep-01 17:23
ac952_z_cn10-Sep-01 17:23 
GeneralLong lasting tooltip Pin
Darren Schroeder10-Sep-01 15:09
Darren Schroeder10-Sep-01 15:09 
GeneralRe: Long lasting tooltip Pin
Tomasz Sowinski10-Sep-01 23:49
Tomasz Sowinski10-Sep-01 23:49 
GeneralRe: Long lasting tooltip Pin
Darren Schroeder11-Sep-01 3:08
Darren Schroeder11-Sep-01 3:08 
GeneralRe: Long lasting tooltip Pin
Tomasz Sowinski11-Sep-01 3:30
Tomasz Sowinski11-Sep-01 3:30 
QuestionHow can pass a value to a property sheet? Pin
DanYELL10-Sep-01 14:41
DanYELL10-Sep-01 14:41 
GeneralCreating Outlook Accounts Pin
Vojin Pavicevic10-Sep-01 14:12
Vojin Pavicevic10-Sep-01 14:12 
General#include <afxdtctl.h> Pin
10-Sep-01 13:28
suss10-Sep-01 13:28 
GeneralRe:The file was afxdtctl.h Pin
10-Sep-01 13:56
suss10-Sep-01 13:56 

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.