22#define WIN32_LEAN_AND_MEAN
63 for (
b = &
win->first_button; *
b;
b = &(*b)->next)
104 for (
b = &
win->first_button; *
b;
b = &(*b)->next)
187 if (
win &&
win->back.index >= 2)
245 button->next = (*b)->next;
246 button->hWnd = (*b)->hWnd;
247 button->wParam = (*b)->wParam;
306 if (!lpszWindow || !lpszWindow[0]) lpszWindow =
"main";
379 pgm,
args,
".", cmd_show);
407 WINE_FIXME(
"(%s, %s, %s, %s, %u, %u)\n",
debugstr_a(str1),
debugstr_a(str2),
debugstr_a(str3),
debugstr_a(str4),
u1,
u2);
457 if (!lpszWindow || !lpszWindow[0]) lpszWindow =
"main";
481 file =
win->page->file->help_on_file;
484 file = (
Globals.wVersion > 4) ?
"winhlp32.hlp" :
"winhelp.hlp";
498 main_wnd =
win->hMainWnd;
501 WINE_ERR(
"could not find the main window!\n");
590 if (!lpszPath || !lpszPath[0])
610 if (lpszPathWindow && (
ptr =
strchr(lpszPathWindow,
'>')) !=
NULL)
618 strcpy(tmp, lpszPathWindow);
619 tmp[
ptr - lpszPathWindow] =
'\0';
620 ptr += tmp - lpszPathWindow;
623 for (sz =
strlen(
ptr + 1); sz >= 1 &&
ptr[sz] ==
' '; sz--)
ptr[sz] =
'\0';
697 WINE_FIXME(
"(%i, %i, %u, %u, %u, %s)\n", i1, i2,
u1,
u2,
u3,
debugstr_a(
str));
846 if (
page->file->help_on_file)
861 WINE_FIXME(
"(%s, %s, %u, %u, %s, %s)\n",
debugstr_a(str1),
debugstr_a(str2),
u1,
u2,
debugstr_a(str3),
debugstr_a(str4));
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
const struct winhelp_callbacks Callbacks
const char HISTORY_WIN_CLASS_NAME[]
BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE *wpage, int nCmdShow, BOOL remember)
HLPFILE * WINHELP_LookupHelpFile(LPCSTR lpszFile)
BOOL WINHELP_OpenHelpWindow(HLPFILE_PAGE *(*lookup)(HLPFILE *, LONG, ULONG *), HLPFILE *hlpfile, LONG val, HLPFILE_WINDOWINFO *wi, int nCmdShow)
BOOL WINHELP_ReleaseWindow(WINHELP_WINDOW *win)
BOOL WINHELP_CreateIndexWindow(BOOL is_search)
void WINHELP_LayoutMainWindow(WINHELP_WINDOW *win)
void WINHELP_DeleteBackSet(WINHELP_WINDOW *win)
HLPFILE_WINDOWINFO * WINHELP_GetWindowInfo(HLPFILE *hlpfile, LPCSTR name)
BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
CLIPBOARD_GLOBALS Globals
BOOL WINAPI PrintDlgW(LPPRINTDLGW lppd)
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
HLPFILE_PAGE * HLPFILE_PageByMap(HLPFILE *hlpfile, LONG lMap, ULONG *relative)
HLPFILE_PAGE * HLPFILE_PageByHash(HLPFILE *hlpfile, LONG lHash, ULONG *relative)
LONG HLPFILE_Hash(LPCSTR lpszContext)
HLPFILE_PAGE * HLPFILE_PageByOffset(HLPFILE *hlpfile, LONG offset, ULONG *relative)
static void CALLBACK MACRO_InsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u)
static void CALLBACK MACRO_DeleteItem(LPCSTR str)
static void CALLBACK MACRO_JumpKeyword(LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR keyword)
static void CALLBACK MACRO_SaveMark(LPCSTR str)
void CALLBACK MACRO_Print(void)
void CALLBACK MACRO_SetContents(LPCSTR str, LONG u)
void CALLBACK MACRO_BookmarkDefine(void)
static void CALLBACK MACRO_CopyTopic(void)
static void CALLBACK MACRO_Find(void)
static struct MacroDesc MACRO_Builtins[]
void CALLBACK MACRO_CopyDialog(void)
void CALLBACK MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow)
static BOOL CALLBACK MACRO_TestKLink(LPCSTR str)
static void CALLBACK MACRO_RegisterRoutine(LPCSTR dll_name, LPCSTR proc, LPCSTR args)
static void CALLBACK MACRO_ExtInsertMenu(LPCSTR str1, LPCSTR str2, LPCSTR str3, LONG u1, LONG u2)
static void CALLBACK MACRO_ExecFile(LPCSTR pgm, LPCSTR args, LONG cmd_show, LPCSTR topic)
void CALLBACK MACRO_CreateButton(LPCSTR id, LPCSTR name, LPCSTR macro)
static void CALLBACK MACRO_EndMPrint(void)
void CALLBACK MACRO_Exit(void)
static int MACRO_DoLookUp(struct MacroDesc *start, const char *name, struct lexret *lr, unsigned len)
static void CALLBACK MACRO_FocusWindow(LPCSTR lpszWindow)
static BOOL CALLBACK MACRO_IsBook(void)
void CALLBACK MACRO_PopupContext(LPCSTR str, LONG u)
static BOOL CALLBACK MACRO_FileExist(LPCSTR str)
static void CALLBACK MACRO_PopupHash(LPCSTR str, LONG u)
static void CALLBACK MACRO_RemoveAccelerator(LONG u1, LONG u2)
static void CALLBACK MACRO_FloatingMenu(void)
static void CALLBACK MACRO_GotoMark(LPCSTR str)
static void CALLBACK MACRO_ControlPanel(LPCSTR str1, LPCSTR str2, LONG u)
static void CALLBACK MACRO_Menu(void)
static void CALLBACK MACRO_Prev(void)
static void CALLBACK MACRO_Back(void)
static void CALLBACK MACRO_ExecProgram(LPCSTR str, LONG u)
static void CALLBACK MACRO_CloseSecondarys(void)
static void CALLBACK MACRO_UncheckItem(LPCSTR str)
static void CALLBACK MACRO_Generate(LPCSTR str, LONG w, LONG l)
void CALLBACK MACRO_JumpContext(LPCSTR lpszPath, LPCSTR lpszWindow, LONG context)
static void CALLBACK MACRO_InsertMenu(LPCSTR str1, LPCSTR str2, LONG u)
static void CALLBACK MACRO_Flush(void)
static void CALLBACK MACRO_DeleteMark(LPCSTR str)
static void CALLBACK MACRO_IfThen(BOOL b, LPCSTR t)
void CALLBACK MACRO_PrinterSetup(void)
static void CALLBACK MACRO_DisableItem(LPCSTR str)
static void CALLBACK MACRO_ShortCut(LPCSTR str1, LPCSTR str2, LONG w, LONG l, LPCSTR str)
static void CALLBACK MACRO_Finder(void)
static void CALLBACK MACRO_KLink(LPCSTR str1, LONG u, LPCSTR str2, LPCSTR str3)
static void CALLBACK MACRO_CloseWindow(LPCSTR lpszWindow)
static void CALLBACK MACRO_TCard(LONG u)
void CALLBACK MACRO_FileOpen(void)
static void CALLBACK MACRO_BookmarkMore(void)
void CALLBACK MACRO_HelpOnTop(void)
static WINHELP_BUTTON ** MACRO_LookupButton(WINHELP_WINDOW *win, LPCSTR name)
static void CALLBACK MACRO_JumpHelpOn(void)
void CALLBACK MACRO_About(void)
static void CALLBACK MACRO_JumpID(LPCSTR lpszPathWindow, LPCSTR topic_id)
static void CALLBACK MACRO_EnableItem(LPCSTR str)
static BOOL CALLBACK MACRO_IsMark(LPCSTR str)
static BOOL CALLBACK MACRO_InitMPrint(void)
void CALLBACK MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash)
static void CALLBACK MACRO_SetHelpOnFile(LPCSTR str)
static void CALLBACK MACRO_ResetMenu(void)
static void CALLBACK MACRO_EnableButton(LPCSTR id)
static void CALLBACK MACRO_BackFlush(void)
static void CALLBACK MACRO_Contents(void)
void CALLBACK MACRO_History(void)
static BOOL CALLBACK MACRO_IsNotMark(LPCSTR str)
static void CALLBACK MACRO_IfThenElse(BOOL b, LPCSTR t, LPCSTR f)
int MACRO_Lookup(const char *name, struct lexret *lr)
static unsigned MACRO_NumLoaded
static void CALLBACK MACRO_DestroyButton(LPCSTR str)
static struct MacroDesc * MACRO_Loaded
static void CALLBACK MACRO_Search(void)
static void CALLBACK MACRO_ExtInsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u1, LONG u2)
static void CALLBACK MACRO_MPrintHash(LONG u)
void CALLBACK MACRO_Annotate(void)
static void CALLBACK MACRO_NoShow(void)
static void CALLBACK MACRO_ExtAbleItem(LPCSTR str, LONG u)
static void CALLBACK MACRO_PopupId(LPCSTR str1, LPCSTR str2)
static void CALLBACK MACRO_ChangeItemBinding(LPCSTR str1, LPCSTR str2)
static void CALLBACK MACRO_ChangeEnable(LPCSTR id, LPCSTR macro)
static void CALLBACK MACRO_SetPopupColor(LONG r, LONG g, LONG b)
static void CALLBACK MACRO_AddAccelerator(LONG u1, LONG u2, LPCSTR str)
static void CALLBACK MACRO_AppendItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4)
void CALLBACK MACRO_HelpOn(void)
static void CALLBACK MACRO_ShellExecute(LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4)
static void CALLBACK MACRO_PositionWindow(LONG i1, LONG i2, LONG u1, LONG u2, LONG u3, LPCSTR str)
static void CALLBACK MACRO_Next(void)
static void CALLBACK MACRO_MPrintID(LPCSTR str)
static void CALLBACK MACRO_CheckItem(LPCSTR str)
static void CALLBACK MACRO_Compare(LPCSTR str)
static void CALLBACK MACRO_ALink(LPCSTR str1, LONG u, LPCSTR str2)
static void CALLBACK MACRO_BrowseButtons(void)
static void CALLBACK MACRO_UpdateWindow(LPCSTR str1, LPCSTR str2)
void CALLBACK MACRO_DisableButton(LPCSTR id)
static void CALLBACK MACRO_Test(LONG u)
static BOOL CALLBACK MACRO_TestALink(LPCSTR str)
static void CALLBACK MACRO_ChangeButtonBinding(LPCSTR id, LPCSTR macro)
BOOL MACRO_ExecuteMacro(struct tagWinHelp *, LPCSTR)
struct tagWinHelp * MACRO_CurrentWindow(void)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define WS_OVERLAPPEDWINDOW
static const char topic[]
static unsigned __int64 next
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpVerb, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT iShowCmd)
HLPFILE_WINDOWINFO * wininfo
struct tagHlpFileFile * file
LPPRINTHOOKPROC lpfnPrintHook
LPSETUPHOOKPROC lpfnSetupHook
LPCWSTR lpPrintTemplateName
LPCWSTR lpSetupTemplateName
#define INVALID_FILE_ATTRIBUTES
static GLenum _GLUfuncptr fn
LONG(CALLBACK * WINHELP_LDLLHandler)(WORD, LONG_PTR, LONG_PTR)
struct tagHelpButton WINHELP_BUTTON
#define MNID_HELP_HELPTOP
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
HMENU WINAPI GetMenu(_In_ HWND)