13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SetMapperFlagsSetMapperFlagsSyntaxParametersReturn valueCommentsDWORD SetMapperFlags(hDC, dwFlag)function SetMapperFlags(DC: HDC; Flag: Longint): Longint;This function alters the algorithm that the font mapper uses when it mapslogical fonts to physical fonts. When the first bit of the wFlag parameter isset to 1, the mapper will only select fonts whose x-aspect and y-aspectexactly match those of the specified device. If no fonts exist with amatching aspect height and width, GDI chooses an aspect height andwidth and selects fonts with aspect heights and widths that match the onechosen by GD!.hDCdwFlagHDC Identifies the device context that contains the fontmapperflag.DWORD Specifies whether the font mapper attempts tomatch a font's aspect height and width to the device. Whenthe first bit is set to 1, the mapper will only select fontswhose x-aspect and y-aspect exactly match those of thespecified device.The return value specifies the previous value of the font-mapper flag.The remaining bits of the dwFlag parameter must be zero.SetMenuSyntaxParametersReturn valueCommentsBOOL SetMenu(h Wnd, hMenu)function SetMenu(Wnd: HWnd; Menu: HMenu): Bool;This function sets the given window's menu to the menu specified by thehMenu parameter. If hMenu is NULL, the window's current menu isremoved. The SetMenu function causes the window to be redrawn toreflect the menu change.h WndhMenuHWND Identifies the window whose menu is to be changed.HMENU Identifies the new menu.The return value specifies whether the menu is changed. It is nonzero ifthe menu is changed. Otherwise, it is zero.SetMenu will not destroy a previous menu. An application should call theDestroyMenu function to accomplish this task.Chapter 4, Functions directory 505

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!