Click here to Skip to main content
15,925,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing Bitmap Button ! Pin
Nish Nishant7-Sep-02 20:00
sitebuilderNish Nishant7-Sep-02 20:00 
GeneralRe: Changing Bitmap Button ! Pin
Hadi Rezaee8-Sep-02 7:10
Hadi Rezaee8-Sep-02 7:10 
GeneralRe: Changing Bitmap Button ! Pin
Joaquín M López Muñoz8-Sep-02 5:42
Joaquín M López Muñoz8-Sep-02 5:42 
GeneralRe: Changing Bitmap Button ! Pin
Hadi Rezaee8-Sep-02 7:15
Hadi Rezaee8-Sep-02 7:15 
Generalstrings pixle length Pin
Steve L.7-Sep-02 15:56
Steve L.7-Sep-02 15:56 
GeneralRe: strings pixle length Pin
Nish Nishant7-Sep-02 16:11
sitebuilderNish Nishant7-Sep-02 16:11 
GeneralRe: strings pixle length Pin
Steve L.7-Sep-02 16:14
Steve L.7-Sep-02 16:14 
GeneralFunction parameter. Pin
WREY7-Sep-02 15:24
WREY7-Sep-02 15:24 
The EnumFontFamProc function uses all of its parameters as "input" parameters. The third parameter, 'nFontType', however, has me a little baffled because nowhere prior to it being used, is it initialized.

Therefore my contention is that the test conducted, using 'nFontType' is invalid because it doesn't contain valid data (at least that's what I would like to think), but the program works.

If there's a mystery here, could someone explain it to me. Thanks!

Below is sample code of what I'm talking about.

==========================================

int CALLBACK CMainWindow::EnumFontFamProc(ENUMLOGFONT* lpelf, NEWTEXTMETRIC* lpntm, int nFontType, LPARAM lParam)
{
CMainWindow* pWnd = (CMainWindow*)lParam;

if((pWnd->m_wndCheckBox.GetCheck() == BST_UNCHECKED) || (nFontType & TRUETYPE_FONTTYPE))
do something etc;

etc.
}

===================================

This is the call that activates EnumFontFamProc.

::EnumFontFamilies((HDC)dc, NULL, (FONTENUMPROC)EnumFontFamProc, (LPARAM)this);


Cool | :cool:

William
GeneralRe: Function parameter. Pin
Nish Nishant7-Sep-02 16:16
sitebuilderNish Nishant7-Sep-02 16:16 
GeneralRe: Function parameter. Pin
WREY7-Sep-02 16:54
WREY7-Sep-02 16:54 
GeneralRe: Function parameter. Pin
Nish Nishant7-Sep-02 17:07
sitebuilderNish Nishant7-Sep-02 17:07 
Questionprocess hwnd ? Pin
imran_rafique7-Sep-02 15:03
imran_rafique7-Sep-02 15:03 
AnswerRe: process hwnd ? Pin
Ernest Laurentin7-Sep-02 15:31
Ernest Laurentin7-Sep-02 15:31 
GeneralRe: process hwnd ? Pin
imran_rafique8-Sep-02 8:56
imran_rafique8-Sep-02 8:56 
GeneralRe: process hwnd ? Pin
Ernest Laurentin9-Sep-02 14:41
Ernest Laurentin9-Sep-02 14:41 
QuestionSelecting an item in a list box? Pin
IGx897-Sep-02 14:15
IGx897-Sep-02 14:15 
AnswerRe: Selecting an item in a list box? Pin
valikac7-Sep-02 14:46
valikac7-Sep-02 14:46 
GeneralRe: Selecting an item in a list box? Pin
IGx897-Sep-02 15:40
IGx897-Sep-02 15:40 
GeneralRe: Selecting an item in a list box? Pin
valikac7-Sep-02 18:11
valikac7-Sep-02 18:11 
AnswerRe: Selecting an item in a list box? Pin
Michael Dunn7-Sep-02 15:50
sitebuilderMichael Dunn7-Sep-02 15:50 
GeneralRe: Selecting an item in a list box? Pin
IGx897-Sep-02 17:00
IGx897-Sep-02 17:00 
GeneralMSFlexGrid Pin
danag7-Sep-02 14:13
danag7-Sep-02 14:13 
Generaldatabase data in listbox Pin
danag7-Sep-02 10:08
danag7-Sep-02 10:08 
GeneralRe: database data in listbox Pin
Michael P Butler7-Sep-02 11:09
Michael P Butler7-Sep-02 11:09 
QuestionACM tutorial anyone? Pin
Redeemer-dk7-Sep-02 10:06
Redeemer-dk7-Sep-02 10:06 

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.