Lines Matching refs:WORD
275 typedef int WORD; typedef
299 static WORD s_dlgfntheight; // height of the dialog font
300 static WORD s_dlgfntwidth; // width of the dialog font
2285 static WORD
2288 return (WORD)((numPixels * 4) / s_dlgfntwidth); in PixelToDialogX()
2294 static WORD
2297 return (WORD)((numPixels * 8) / s_dlgfntheight); in PixelToDialogY()
4159 WORD x,
4160 WORD y,
4161 WORD w,
4162 WORD h,
4163 WORD Id,
4164 WORD clss,
6734 WORD menuID; in gui_mch_menu_grey()
6741 menuID = (WORD)(menu->id); in gui_mch_menu_grey()
6743 menuID = (WORD)((long_u)(menu->submenu_id) | (DWORD)0x8000); in gui_mch_menu_grey()
6759 #define add_long(x) dwp = (DWORD *)p; *dwp++ = (x); p = (WORD *)dwp
6874 WORD *p, *pdlgtemplate, *pnumitems; in gui_mch_dialog()
7254 (WORD)(PixelToDialogY(2 * fontHeight) - 1), in gui_mch_dialog()
7255 (WORD)(IDCANCEL + 1 + i), (WORD)0x0080, (char *)pstart); in gui_mch_dialog()
7265 (WORD)(PixelToDialogY(2 * fontHeight) - 1), in gui_mch_dialog()
7266 (WORD)(IDCANCEL + 1 + i), (WORD)0x0080, (char *)pstart); in gui_mch_dialog()
7278 DLG_NONBUTTON_CONTROL + 0, (WORD)0x0082, in gui_mch_dialog()
7285 (WORD)(PixelToDialogX(messageWidth) + 1), in gui_mch_dialog()
7287 DLG_NONBUTTON_CONTROL + 1, (WORD)0x0081, (char *)message); in gui_mch_dialog()
7297 DLG_NONBUTTON_CONTROL + 2, (WORD)0x0081, (char *)textfield); in gui_mch_dialog()
7363 WORD x, in add_dialog_element()
7364 WORD y, in add_dialog_element()
7365 WORD w, in add_dialog_element()
7366 WORD h, in add_dialog_element()
7367 WORD Id, in add_dialog_element()
7368 WORD clss, in add_dialog_element()
7385 *p++ = (WORD)0xffff; in add_dialog_element()
7452 if (lpWCStr[i] == (WORD)'\t') // replace tabs with spaces in nCopyAnsiToWideChar()
7453 lpWCStr[i] = (WORD)' '; in nCopyAnsiToWideChar()
7466 WORD menu_id) in tearoff_lookup_menuhandle()
7474 if ((WORD)((long_u)(menu->submenu_id) | (DWORD)0x8000) == menu_id) in tearoff_lookup_menuhandle()
7503 if ((WORD)(LOWORD(wParam)) & 0x8000) in tearoff_callback()
7593 s_dlgfntwidth = (WORD)((size.cx / 26 + 1) / 2); in get_dialog_font_metrics()
7594 s_dlgfntheight = (WORD)size.cy; in get_dialog_font_metrics()
7618 WORD *p, *pdlgtemplate, *pnumitems, *ptrueheight; in gui_mch_tearoff()
7623 WORD dlgwidth; in gui_mch_tearoff()
7624 WORD menuID; in gui_mch_tearoff()
7668 pdlgtemplate = p = (WORD *)LocalAlloc(LPTR, template_len); in gui_mch_tearoff()
7821 WORD *newp; in gui_mch_tearoff()
7823 newp = (WORD *)LocalAlloc(LPTR, template_len + 4096); in gui_mch_tearoff()
7860 menuID = (WORD)(menu->id); in gui_mch_tearoff()
7865 menuID = (WORD)((long_u)(menu->submenu_id) | (DWORD)0x8000); in gui_mch_tearoff()
7904 (WORD)PixelToDialogX(TEAROFF_PADDING_X), in gui_mch_tearoff()
7905 (WORD)(sepPadding + 1 + 13 * (*pnumitems)), in gui_mch_tearoff()
7906 (WORD)PixelToDialogX(dlgwidth - 2 * TEAROFF_PADDING_X), in gui_mch_tearoff()
7907 (WORD)12, in gui_mch_tearoff()
7908 menuID, (WORD)0x0080, (char *)label); in gui_mch_tearoff()
7913 *ptrueheight = (WORD)(sepPadding + 1 + 13 * (*pnumitems)); in gui_mch_tearoff()