1996-05-06 18:06:24 +02:00
|
|
|
/*
|
|
|
|
* Help Viewer
|
|
|
|
*
|
|
|
|
* Copyright 1996 Ulrich Schmid
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1996-05-06 18:06:24 +02:00
|
|
|
*/
|
|
|
|
|
1997-01-01 18:29:55 +01:00
|
|
|
#include "windows.h"
|
|
|
|
#include "commdlg.h"
|
1996-05-06 18:06:24 +02:00
|
|
|
#include "winhelp.h"
|
|
|
|
#include "macro.h"
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
|
|
|
|
|
|
|
|
void MACRO_About(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("About()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_AddAccelerator(LONG u1, LONG u2, LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("AddAccelerator(%lu, %lu, \"%s\")\n", u1, u2, str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ALink(LPCSTR str1, LONG u, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ALink(\"%s\", %lu, \"%s\")\n", str1, u, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Annotate(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Annotate()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_AppendItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("AppendItem(\"%s\", \"%s\", \"%s\", \"%s\")\n", str1, str2, str3, str4);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Back(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Back()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_BackFlush(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("BackFlush()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_BookmarkDefine(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("BookmarkDefine()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_BookmarkMore(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("BookmarkMore()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_BrowseButtons(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
MACRO_CreateButton("BTN_PREV", "&<<", "Prev()");
|
|
|
|
MACRO_CreateButton("BTN_NEXT", "&>>", "Next()");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ChangeButtonBinding(LPCSTR str1, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ChangeButtonBinding(\"%s\", \"%s\")\n", str1, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ChangeEnable(LPCSTR str1, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ChangeEnable(\"%s\", \"%s\")\n", str1, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ChangeItemBinding(LPCSTR str1, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ChangeItemBinding(\"%s\", \"%s\")\n", str1, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CheckItem(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("CheckItem(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CloseSecondarys(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINHELP_WINDOW *win;
|
|
|
|
for (win = Globals.win_list; win; win = win->next)
|
|
|
|
if (win->lpszName && lstrcmpi(win->lpszName, "main"))
|
|
|
|
DestroyWindow(win->hMainWnd);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CloseWindow(LPCSTR lpszWindow)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINHELP_WINDOW *win;
|
|
|
|
if (!lpszWindow || !lpszWindow[0]) lpszWindow = "main";
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
for (win = Globals.win_list; win; win = win->next)
|
|
|
|
if (win->lpszName && !lstrcmpi(win->lpszName, lpszWindow))
|
|
|
|
DestroyWindow(win->hMainWnd);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Compare(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Compare(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Contents(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
if (Globals.active_win->page)
|
|
|
|
MACRO_JumpContents(Globals.active_win->page->file->lpszPath, NULL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ControlPanel(LPCSTR str1, LPCSTR str2, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ControlPanel(\"%s\", \"%s\", %lu)\n", str1, str2, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CopyDialog(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("CopyDialog()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CopyTopic(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("CopyTopic()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_CreateButton(LPCSTR id, LPCSTR name, LPCSTR macro)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINHELP_WINDOW *win = Globals.active_win;
|
|
|
|
WINHELP_BUTTON *button, **b;
|
|
|
|
LONG size;
|
|
|
|
LPSTR ptr;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
size = sizeof(WINHELP_BUTTON) + lstrlen(id) + lstrlen(name) + lstrlen(macro) + 3;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
button = HeapAlloc(GetProcessHeap(), 0, size);
|
|
|
|
if (!button) return;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
button->next = 0;
|
|
|
|
button->hWnd = 0;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
ptr = (char*)button + sizeof(WINHELP_BUTTON);
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
lstrcpy(ptr, (LPSTR) id);
|
|
|
|
button->lpszID = ptr;
|
|
|
|
ptr += lstrlen(id) + 1;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
lstrcpy(ptr, (LPSTR) name);
|
|
|
|
button->lpszName = ptr;
|
|
|
|
ptr += lstrlen(name) + 1;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
lstrcpy(ptr, (LPSTR) macro);
|
|
|
|
button->lpszMacro = ptr;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
button->wParam = WH_FIRST_BUTTON;
|
|
|
|
for (b = &win->first_button; *b; b = &(*b)->next)
|
|
|
|
button->wParam = max(button->wParam, (*b)->wParam + 1);
|
|
|
|
*b = button;
|
|
|
|
|
|
|
|
SendMessage(win->hMainWnd, WM_USER, 0, 0);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_DeleteItem(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("DeleteItem(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_DeleteMark(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("DeleteMark(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_DestroyButton(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("DestroyButton(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_DisableButton(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("DisableButton(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_DisableItem(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("DisableItem(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_EnableButton(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("EnableButton(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_EnableItem(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("EnableItem(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_EndMPrint(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("EndMPrint()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ExecFile(LPCSTR str1, LPCSTR str2, LONG u, LPCSTR str3)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ExecFile(\"%s\", \"%s\", %lu, \"%s\")\n", str1, str2, u, str3);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ExecProgram(LPCSTR str, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ExecProgram(\"%s\", %lu)\n", str, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Exit(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
while (Globals.win_list)
|
|
|
|
DestroyWindow(Globals.win_list->hMainWnd);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ExtAbleItem(LPCSTR str, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ExtAbleItem(\"%s\", %lu)\n", str, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ExtInsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u1, LONG u2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ExtInsertItem(\"%s\", \"%s\", \"%s\", \"%s\", %lu, %lu)\n", str1, str2, str3, str4, u1, u2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ExtInsertMenu(LPCSTR str1, LPCSTR str2, LPCSTR str3, LONG u1, LONG u2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ExtInsertMenu(\"%s\", \"%s\", \"%s\", %lu, %lu)\n", str1, str2, str3, u1, u2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL MACRO_FileExist(LPCSTR str)
|
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("FileExist(\"%s\")\n", str);
|
|
|
|
return TRUE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_FileOpen(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
OPENFILENAME openfilename;
|
|
|
|
CHAR szPath[MAX_PATHNAME_LEN];
|
|
|
|
CHAR szDir[MAX_PATHNAME_LEN];
|
|
|
|
CHAR szzFilter[2 * MAX_STRING_LEN + 100];
|
|
|
|
LPSTR p = szzFilter;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
LoadString(Globals.hInstance, 0X12B, p, MAX_STRING_LEN);
|
|
|
|
p += strlen(p) + 1;
|
|
|
|
lstrcpy(p, "*.hlp");
|
|
|
|
p += strlen(p) + 1;
|
|
|
|
LoadString(Globals.hInstance, 0x12A, p, MAX_STRING_LEN);
|
|
|
|
p += strlen(p) + 1;
|
|
|
|
lstrcpy(p, "*.*");
|
|
|
|
p += strlen(p) + 1;
|
|
|
|
*p = '\0';
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
GetCurrentDirectory(sizeof(szDir), szDir);
|
2002-05-14 05:48:10 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
szPath[0]='\0';
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
openfilename.lStructSize = 0;
|
|
|
|
openfilename.hwndOwner = Globals.active_win->hMainWnd;
|
|
|
|
openfilename.hInstance = Globals.hInstance;
|
|
|
|
openfilename.lpstrFilter = szzFilter;
|
|
|
|
openfilename.lpstrCustomFilter = 0;
|
|
|
|
openfilename.nMaxCustFilter = 0;
|
|
|
|
openfilename.nFilterIndex = 1;
|
|
|
|
openfilename.lpstrFile = szPath;
|
|
|
|
openfilename.nMaxFile = sizeof(szPath);
|
|
|
|
openfilename.lpstrFileTitle = 0;
|
|
|
|
openfilename.nMaxFileTitle = 0;
|
|
|
|
openfilename.lpstrInitialDir = szDir;
|
|
|
|
openfilename.lpstrTitle = 0;
|
|
|
|
openfilename.Flags = 0;
|
|
|
|
openfilename.nFileOffset = 0;
|
|
|
|
openfilename.nFileExtension = 0;
|
|
|
|
openfilename.lpstrDefExt = 0;
|
|
|
|
openfilename.lCustData = 0;
|
|
|
|
openfilename.lpfnHook = 0;
|
|
|
|
openfilename.lpTemplateName = 0;
|
1996-05-06 18:06:24 +02:00
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
if (GetOpenFileName(&openfilename))
|
|
|
|
WINHELP_CreateHelpWindowByHash(szPath, 0, "main", FALSE, 0, NULL, SW_SHOWNORMAL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Find(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Find()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Finder(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Finder()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_FloatingMenu(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("FloatingMenu()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Flush(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Flush()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_FocusWindow(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("FocusWindow(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Generate(LPCSTR str, WPARAM w, LPARAM l)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Generate(\"%s\", %x, %lx)\n", str, w, l);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_GotoMark(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("GotoMark(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_HelpOn(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
MACRO_JumpContents((Globals.wVersion > 4) ? "winhelp32.hlp" : "winhelp.hlp", NULL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_HelpOnTop(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("HelpOnTop()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_History(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("History()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
BOOL MACRO_InitMPrint(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("InitMPrint()\n");
|
|
|
|
return FALSE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_InsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("InsertItem(\"%s\", \"%s\", \"%s\", \"%s\", %lu)\n", str1, str2, str3, str4, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_InsertMenu(LPCSTR str1, LPCSTR str2, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("InsertMenu(\"%s\", \"%s\", %lu)\n", str1, str2, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
BOOL MACRO_IsBook(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("IsBook()\n");
|
|
|
|
return TRUE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL MACRO_IsMark(LPCSTR str)
|
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("IsMark(\"%s\")\n", str);
|
|
|
|
return FALSE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL MACRO_IsNotMark(LPCSTR str)
|
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("IsNotMark(\"%s\")\n", str);
|
|
|
|
return TRUE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINHELP_CreateHelpWindowByHash(lpszPath, 0, lpszWindow, FALSE, 0, NULL, SW_NORMAL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpContext(LPCSTR lpszPath, LPCSTR lpszWindow, LONG context)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("JumpContext(\"%s\", \"%s\", %lu)\n", lpszPath, lpszWindow, context);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINHELP_CreateHelpWindowByHash(lpszPath, lHash, lpszWindow, FALSE, 0, NULL, SW_NORMAL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpHelpOn(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("JumpHelpOn()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpID(LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR topic_id)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
MACRO_JumpHash(lpszPath, lpszWindow, HLPFILE_Hash(topic_id));
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_JumpKeyword(LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR keyword)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("JumpKeyword(\"%s\", \"%s\", \"%s\")\n", lpszPath, lpszWindow, keyword);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_KLink(LPCSTR str1, LONG u, LPCSTR str2, LPCSTR str3)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("KLink(\"%s\", %lu, \"%s\", \"%s\")\n", str1, u, str2, str3);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Menu(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Menu()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_MPrintHash(LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("MPrintHash(%lu)\n", u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_MPrintID(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("MPrintID(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Next(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
if (Globals.active_win->page->next)
|
|
|
|
WINHELP_CreateHelpWindowByPage(Globals.active_win->page->next, "main", FALSE, 0, NULL, SW_NORMAL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_NoShow(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("NoShow()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_PopupContext(LPCSTR str, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("PopupContext(\"%s\", %lu)\n", str, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_PopupHash(LPCSTR str, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("PopupHash(\"%s\", %lu)\n", str, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_PopupId(LPCSTR str1, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("PopupId(\"%s\", \"%s\")\n", str1, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_PositionWindow(LONG i1, LONG i2, LONG u1, LONG u2, LONG u3, LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("PositionWindow(%li, %li, %lu, %lu, %lu, \"%s\")\n", i1, i2, u1, u2, u3, str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Prev(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
if (Globals.active_win->page->prev)
|
|
|
|
WINHELP_CreateHelpWindowByPage(Globals.active_win->page->prev, "main", FALSE, 0, NULL, SW_NORMAL);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Print(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
1998-03-29 21:44:57 +02:00
|
|
|
PRINTDLG printer;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1998-03-29 21:44:57 +02:00
|
|
|
printer.lStructSize = sizeof(printer);
|
|
|
|
printer.hwndOwner = Globals.active_win->hMainWnd;
|
|
|
|
printer.hInstance = Globals.hInstance;
|
|
|
|
printer.hDevMode = 0;
|
|
|
|
printer.hDevNames = 0;
|
|
|
|
printer.hDC = 0;
|
|
|
|
printer.Flags = 0;
|
|
|
|
printer.nFromPage = 0;
|
|
|
|
printer.nToPage = 0;
|
|
|
|
printer.nMinPage = 0;
|
|
|
|
printer.nMaxPage = 0;
|
|
|
|
printer.nCopies = 0;
|
|
|
|
printer.lCustData = 0;
|
|
|
|
printer.lpfnPrintHook = 0;
|
|
|
|
printer.lpfnSetupHook = 0;
|
|
|
|
printer.lpPrintTemplateName = 0;
|
|
|
|
printer.lpSetupTemplateName = 0;
|
|
|
|
printer.hPrintTemplate = 0;
|
|
|
|
printer.hSetupTemplate = 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-06-08 06:58:18 +02:00
|
|
|
if (PrintDlgA(&printer)) {
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Print()\n");
|
|
|
|
}
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_PrinterSetup(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("PrinterSetup()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_RegisterRoutine(LPCSTR str1, LPCSTR str2, LPCSTR str3)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("RegisterRoutine(\"%s\", \"%s\", \"%s\")\n", str1, str2, str3);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_RemoveAccelerator(LONG u1, LONG u2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("RemoveAccelerator(%lu, %lu)\n", u1, u2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ResetMenu(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ResetMenu()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_SaveMark(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("SaveMark(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Search(void)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Search()\n");
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_SetContents(LPCSTR str, LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("SetContents(\"%s\", %lu)\n", str, u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_SetHelpOnFile(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("SetHelpOnFile(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_SetPopupColor(LONG u1, LONG u2, LONG u3)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("SetPopupColor(%lu, %lu, %lu)\n", u1, u2, u3);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ShellExecute(LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ShellExecute(\"%s\", \"%s\", %lu, %lu, \"%s\", \"%s\")\n", str1, str2, u1, u2, str3, str4);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_ShortCut(LPCSTR str1, LPCSTR str2, WPARAM w, LPARAM l, LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("ShortCut(\"%s\", \"%s\", %x, %lx, \"%s\")\n", str1, str2, w, l, str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_TCard(LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("TCard(%lu)\n", u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_Test(LONG u)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("Test(%lu)\n", u);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL MACRO_TestALink(LPCSTR str)
|
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("TestALink(\"%s\")\n", str);
|
|
|
|
return FALSE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL MACRO_TestKLink(LPCSTR str)
|
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("TestKLink(\"%s\")\n", str);
|
|
|
|
return FALSE;
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_UncheckItem(LPCSTR str)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("UncheckItem(\"%s\")\n", str);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|
|
|
|
|
2002-07-16 03:46:29 +02:00
|
|
|
void MACRO_UpdateWindow(LPCSTR str1, LPCSTR str2)
|
1996-05-06 18:06:24 +02:00
|
|
|
{
|
2002-07-16 03:46:29 +02:00
|
|
|
WINE_FIXME("UpdateWindow(\"%s\", \"%s\")\n", str1, str2);
|
1996-05-06 18:06:24 +02:00
|
|
|
}
|