Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Performance Evaluation of fingerprint recognition and face recognition system Pin
Member 1313893619-Apr-17 10:38
Member 1313893619-Apr-17 10:38 
QuestionCFileDialog fileDlg debug assertion error Pin
D.Manivelan19-Apr-17 3:07
D.Manivelan19-Apr-17 3:07 
AnswerRe: CFileDialog fileDlg debug assertion error Pin
Jochen Arndt19-Apr-17 3:48
professionalJochen Arndt19-Apr-17 3:48 
AnswerRe: CFileDialog fileDlg debug assertion error Pin
Randor 19-Apr-17 19:25
professional Randor 19-Apr-17 19:25 
QuestionSharing a structure between a console application and a static library Pin
manoharbalu17-Apr-17 21:51
manoharbalu17-Apr-17 21:51 
AnswerRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan18-Apr-17 3:04
mveRichard MacCutchan18-Apr-17 3:04 
AnswerRe: Sharing a structure between a console application and a static library Pin
Chris Losinger18-Apr-17 3:07
professionalChris Losinger18-Apr-17 3:07 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan18-Apr-17 5:18
mveRichard MacCutchan18-Apr-17 5:18 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger18-Apr-17 5:22
professionalChris Losinger18-Apr-17 5:22 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan19-Apr-17 5:39
mveRichard MacCutchan19-Apr-17 5:39 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger19-Apr-17 5:44
professionalChris Losinger19-Apr-17 5:44 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan19-Apr-17 6:09
mveRichard MacCutchan19-Apr-17 6:09 
GeneralRe: Sharing a structure between a console application and a static library Pin
Munchies_Matt19-Apr-17 5:18
Munchies_Matt19-Apr-17 5:18 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger19-Apr-17 5:22
professionalChris Losinger19-Apr-17 5:22 
GeneralRe: Sharing a structure between a console application and a static library Pin
Munchies_Matt19-Apr-17 5:38
Munchies_Matt19-Apr-17 5:38 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger19-Apr-17 5:45
professionalChris Losinger19-Apr-17 5:45 
QuestionCDateTimeCtrl in Windows 10 Pin
Member 1313216716-Apr-17 19:24
Member 1313216716-Apr-17 19:24 
SuggestionRe: CDateTimeCtrl in Windows 10 Pin
Richard MacCutchan16-Apr-17 21:35
mveRichard MacCutchan16-Apr-17 21:35 
QuestionRe: CDateTimeCtrl in Windows 10 Pin
David Crow17-Apr-17 3:54
David Crow17-Apr-17 3:54 
AnswerRe: CDateTimeCtrl in Windows 10 Pin
leon de boer17-Apr-17 17:41
leon de boer17-Apr-17 17:41 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124918-Apr-17 21:37
Member 150124918-Apr-17 21:37 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer19-Apr-17 9:56
leon de boer19-Apr-17 9:56 
Yeah I take it back MFC is bugged now you can't set any font not just that one ..... just go around the stupidity of MFC and use the Windows API direct
LOGFONT lf;
// clear out structure
memset(&lf, 0, sizeof(LOGFONT));
// request a 12-pixel-height font
lf.lfHeight = 12;
// request a face name "MS Shell Dlg"
_tcsncpy_s(lf.lfFaceName, LF_FACESIZE, _T("MS Shell Dlg"), _tcslen(_T("MS Shell Dlg")));
// create the font
HFONT hfont = ::CreateFontIndirect(&lf);

// Send the WM_SETFONT message to the date time control
m_dateTimeCtrl.SendMessage(WM_SETFONT, (WPARAM)hfont, 1);

That works fine and they can't break that or everything would break because it is how you change fonts on any window.
In vino veritas


modified 19-Apr-17 16:20pm.

GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124920-Apr-17 20:41
Member 150124920-Apr-17 20:41 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124920-Apr-17 21:14
Member 150124920-Apr-17 21:14 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer22-Apr-17 19:17
leon de boer22-Apr-17 19:17 

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.