Click here to Skip to main content
15,879,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to manually implement ID_FILE_NEW for MDI application? Pin
transoft25-Jun-09 9:20
transoft25-Jun-09 9:20 
QuestionOperation with virtual port USB of the printer and the scanner Pin
tumanovalex25-Jun-09 1:01
tumanovalex25-Jun-09 1:01 
AnswerRe: Operation with virtual port USB of the printer and the scanner Pin
Cedric Moonen25-Jun-09 1:15
Cedric Moonen25-Jun-09 1:15 
GeneralRe: Operation with virtual port USB of the printer and the scanner Pin
tumanovalex25-Jun-09 23:47
tumanovalex25-Jun-09 23:47 
QuestionFont in Combo Pin
p_196025-Jun-09 0:24
p_196025-Jun-09 0:24 
AnswerRe: Font in Combo Pin
Rajesh R Subramanian25-Jun-09 0:43
professionalRajesh R Subramanian25-Jun-09 0:43 
GeneralRe: Font in Combo Pin
p_196025-Jun-09 2:04
p_196025-Jun-09 2:04 
GeneralRe: Font in Combo Pin
Rajesh R Subramanian25-Jun-09 2:33
professionalRajesh R Subramanian25-Jun-09 2:33 
MFC does not have any special functions for this purpose. You can use this, I suppose:
int CALLBACK EnumFontFamExProc(
  ENUMLOGFONTEX *lpelfe,
  NEWTEXTMETRICEX *lpntme,
  DWORD FontType,
  LPARAM lParam
)
{
   OutputDebugString(lpelfe->elfFullName); //Populate your combo box here
   return true;
}

CTestDlg::OnOK()
{
   LOGFONT logFont;
   logFont.lfCharSet = 0;
   _tcscpy(logFont.lfFaceName, _T("\0"));
   logFont.lfPitchAndFamily = 0;
   EnumFontFamiliesEx(*GetDC(), &logFont, (FONTENUMPROC)EnumFontFamExProc, 0, 0);
}

Watch your debugger output window to see the results printed into it from the callback function.


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: Font in Combo Pin
David Crow25-Jun-09 3:46
David Crow25-Jun-09 3:46 
GeneralRe: Font in Combo Pin
Rajesh R Subramanian25-Jun-09 4:00
professionalRajesh R Subramanian25-Jun-09 4:00 
QuestionHow to resize the controls on a dialog based on the size of the dialog Pin
V K 225-Jun-09 0:13
V K 225-Jun-09 0:13 
AnswerRe: How to resize the controls on a dialog based on the size of the dialog Pin
Rajesh R Subramanian25-Jun-09 0:18
professionalRajesh R Subramanian25-Jun-09 0:18 
AnswerRe: How to resize the controls on a dialog based on the size of the dialog Pin
David Crow25-Jun-09 3:48
David Crow25-Jun-09 3:48 
Questionc code of rotate image(imrotate) Pin
ashish_2418824-Jun-09 23:41
ashish_2418824-Jun-09 23:41 
AnswerRe: c code of rotate image(imrotate) Pin
CPallini24-Jun-09 23:59
mveCPallini24-Jun-09 23:59 
GeneralRe: c code of rotate image(imrotate) Pin
ashish_2418825-Jun-09 0:08
ashish_2418825-Jun-09 0:08 
GeneralRe: c code of rotate image(imrotate) Pin
CPallini25-Jun-09 0:15
mveCPallini25-Jun-09 0:15 
GeneralRe: c code of rotate image(imrotate) Pin
ashish_2418825-Jun-09 0:19
ashish_2418825-Jun-09 0:19 
GeneralRe: c code of rotate image(imrotate) Pin
ashish_2418825-Jun-09 0:24
ashish_2418825-Jun-09 0:24 
RantRe: c code of rotate image(imrotate) Pin
Rajesh R Subramanian25-Jun-09 0:36
professionalRajesh R Subramanian25-Jun-09 0:36 
GeneralRe: c code of rotate image(imrotate) [modified] Pin
CPallini25-Jun-09 0:43
mveCPallini25-Jun-09 0:43 
GeneralRe: c code of rotate image(imrotate) Pin
Rajesh R Subramanian25-Jun-09 0:45
professionalRajesh R Subramanian25-Jun-09 0:45 
GeneralRe: c code of rotate image(imrotate) Pin
CPallini25-Jun-09 0:41
mveCPallini25-Jun-09 0:41 
GeneralRe: c code of rotate image(imrotate) Pin
ashish_2418825-Jun-09 0:14
ashish_2418825-Jun-09 0:14 
QuestionPRINT PREVIEW ZOOM COMBOBOX Pin
Subhash Madhukar24-Jun-09 23:10
Subhash Madhukar24-Jun-09 23:10 

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.