Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 226 of file macro.c.
Referenced by MACRO_ChangeEnable().
{ WINHELP_WINDOW* win = MACRO_CurrentWindow(); WINHELP_BUTTON* button; WINHELP_BUTTON** b; LONG size; LPSTR ptr; WINE_TRACE("(\"%s\", \"%s\")\n", id, macro); b = MACRO_LookupButton(win, id); if (!*b) {WINE_FIXME("Couldn't find button '%s'\n", id); return;} size = sizeof(WINHELP_BUTTON) + lstrlen(id) + lstrlen((*b)->lpszName) + lstrlen(macro) + 3; button = HeapAlloc(GetProcessHeap(), 0, size); if (!button) return; button->next = (*b)->next; button->hWnd = (*b)->hWnd; button->wParam = (*b)->wParam; ptr = (char*)button + sizeof(WINHELP_BUTTON); lstrcpy(ptr, id); button->lpszID = ptr; ptr += lstrlen(id) + 1; lstrcpy(ptr, (*b)->lpszName); button->lpszName = ptr; ptr += lstrlen((*b)->lpszName) + 1; lstrcpy(ptr, macro); button->lpszMacro = ptr; *b = button; WINHELP_LayoutMainWindow(win); }