Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Help Viewer |
| 3 | * |
| 4 | * Copyright 1996 Ulrich Schmid |
| 5 | */ |
| 6 | |
| 7 | #include <stdio.h> |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 8 | #include "windows.h" |
| 9 | #include "commdlg.h" |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 10 | #include "winhelp.h" |
| 11 | #include "macro.h" |
| 12 | |
| 13 | VOID MACRO_About(VOID) |
| 14 | { |
| 15 | fprintf(stderr, "About()\n"); |
| 16 | } |
| 17 | |
| 18 | VOID MACRO_AddAccelerator(LONG u1, LONG u2, LPCSTR str) |
| 19 | { |
| 20 | fprintf(stderr, "AddAccelerator(%lu, %lu, \"%s\")\n", u1, u2, str); |
| 21 | } |
| 22 | |
| 23 | VOID MACRO_ALink(LPCSTR str1, LONG u, LPCSTR str2) |
| 24 | { |
| 25 | fprintf(stderr, "ALink(\"%s\", %lu, \"%s\")\n", str1, u, str2); |
| 26 | } |
| 27 | |
| 28 | VOID MACRO_Annotate(VOID) |
| 29 | { |
| 30 | fprintf(stderr, "Annotate()\n"); |
| 31 | } |
| 32 | |
| 33 | VOID MACRO_AppendItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4) |
| 34 | { |
| 35 | fprintf(stderr, "AppendItem(\"%s\", \"%s\", \"%s\", \"%s\")\n", str1, str2, str3, str4); |
| 36 | } |
| 37 | |
| 38 | VOID MACRO_Back(VOID) |
| 39 | { |
| 40 | fprintf(stderr, "Back()\n"); |
| 41 | } |
| 42 | |
| 43 | VOID MACRO_BackFlush(VOID) |
| 44 | { |
| 45 | fprintf(stderr, "BackFlush()\n"); |
| 46 | } |
| 47 | |
| 48 | VOID MACRO_BookmarkDefine(VOID) |
| 49 | { |
| 50 | fprintf(stderr, "BookmarkDefine()\n"); |
| 51 | } |
| 52 | |
| 53 | VOID MACRO_BookmarkMore(VOID) |
| 54 | { |
| 55 | fprintf(stderr, "BookmarkMore()\n"); |
| 56 | } |
| 57 | |
| 58 | VOID MACRO_BrowseButtons(VOID) |
| 59 | { |
| 60 | MACRO_CreateButton("BTN_PREV", "&<<", "Prev()"); |
| 61 | MACRO_CreateButton("BTN_NEXT", "&>>", "Next()"); |
| 62 | } |
| 63 | |
| 64 | VOID MACRO_ChangeButtonBinding(LPCSTR str1, LPCSTR str2) |
| 65 | { |
| 66 | fprintf(stderr, "ChangeButtonBinding(\"%s\", \"%s\")\n", str1, str2); |
| 67 | } |
| 68 | |
| 69 | VOID MACRO_ChangeEnable(LPCSTR str1, LPCSTR str2) |
| 70 | { |
| 71 | fprintf(stderr, "ChangeEnable(\"%s\", \"%s\")\n", str1, str2); |
| 72 | } |
| 73 | |
| 74 | VOID MACRO_ChangeItemBinding(LPCSTR str1, LPCSTR str2) |
| 75 | { |
| 76 | fprintf(stderr, "ChangeItemBinding(\"%s\", \"%s\")\n", str1, str2); |
| 77 | } |
| 78 | |
| 79 | VOID MACRO_CheckItem(LPCSTR str) |
| 80 | { |
| 81 | fprintf(stderr, "CheckItem(\"%s\")\n", str); |
| 82 | } |
| 83 | |
| 84 | VOID MACRO_CloseSecondarys(VOID) |
| 85 | { |
| 86 | WINHELP_WINDOW *win; |
| 87 | for (win = Globals.win_list; win; win = win->next) |
| 88 | if (win->lpszName && lstrcmpi(win->lpszName, "main")) |
| 89 | DestroyWindow(win->hMainWnd); |
| 90 | } |
| 91 | |
| 92 | VOID MACRO_CloseWindow(LPCSTR lpszWindow) |
| 93 | { |
| 94 | WINHELP_WINDOW *win; |
| 95 | if (!lpszWindow || !lpszWindow[0]) lpszWindow = "main"; |
| 96 | |
| 97 | for (win = Globals.win_list; win; win = win->next) |
| 98 | if (win->lpszName && !lstrcmpi(win->lpszName, lpszWindow)) |
| 99 | DestroyWindow(win->hMainWnd); |
| 100 | } |
| 101 | |
| 102 | VOID MACRO_Compare(LPCSTR str) |
| 103 | { |
| 104 | fprintf(stderr, "Compare(\"%s\")\n", str); |
| 105 | } |
| 106 | |
| 107 | VOID MACRO_Contents(VOID) |
| 108 | { |
| 109 | if (Globals.active_win->page) |
| 110 | MACRO_JumpContents(Globals.active_win->page->file->lpszPath, NULL); |
| 111 | } |
| 112 | |
| 113 | VOID MACRO_ControlPanel(LPCSTR str1, LPCSTR str2, LONG u) |
| 114 | { |
| 115 | fprintf(stderr, "ControlPanel(\"%s\", \"%s\", %lu)\n", str1, str2, u); |
| 116 | } |
| 117 | |
| 118 | VOID MACRO_CopyDialog(VOID) |
| 119 | { |
| 120 | fprintf(stderr, "CopyDialog()\n"); |
| 121 | } |
| 122 | |
| 123 | VOID MACRO_CopyTopic(VOID) |
| 124 | { |
| 125 | fprintf(stderr, "CopyTopic()\n"); |
| 126 | } |
| 127 | |
| 128 | VOID MACRO_CreateButton(LPCSTR id, LPCSTR name, LPCSTR macro) |
| 129 | { |
| 130 | WINHELP_WINDOW *win = Globals.active_win; |
| 131 | WINHELP_BUTTON *button, **b; |
| 132 | LONG size; |
| 133 | HGLOBAL handle; |
| 134 | LPSTR ptr; |
| 135 | |
| 136 | size = sizeof(WINHELP_BUTTON) + lstrlen(id) + lstrlen(name) + lstrlen(macro) + 3; |
| 137 | handle = GlobalAlloc(GMEM_FIXED, size); |
| 138 | if (!handle) return; |
| 139 | |
| 140 | button = GlobalLock(handle); |
| 141 | button->hSelf = handle; |
| 142 | button->next = 0; |
| 143 | button->hWnd = 0; |
| 144 | |
| 145 | ptr = GlobalLock(handle); |
| 146 | ptr += sizeof(WINHELP_BUTTON); |
| 147 | |
| 148 | lstrcpy(ptr, (LPSTR) id); |
| 149 | button->lpszID = ptr; |
| 150 | ptr += lstrlen(id) + 1; |
| 151 | |
| 152 | lstrcpy(ptr, (LPSTR) name); |
| 153 | button->lpszName = ptr; |
| 154 | ptr += lstrlen(name) + 1; |
| 155 | |
| 156 | lstrcpy(ptr, (LPSTR) macro); |
| 157 | button->lpszMacro = ptr; |
| 158 | |
| 159 | button->wParam = WH_FIRST_BUTTON; |
| 160 | for (b = &win->first_button; *b; b = &(*b)->next) |
Francois Gouget | 6d77d3a | 2000-03-25 21:44:35 +0000 | [diff] [blame] | 161 | button->wParam = max(button->wParam, (*b)->wParam + 1); |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 162 | *b = button; |
| 163 | |
| 164 | SendMessage(win->hMainWnd, WM_USER, 0, 0); |
| 165 | } |
| 166 | |
| 167 | VOID MACRO_DeleteItem(LPCSTR str) |
| 168 | { |
| 169 | fprintf(stderr, "DeleteItem(\"%s\")\n", str); |
| 170 | } |
| 171 | |
| 172 | VOID MACRO_DeleteMark(LPCSTR str) |
| 173 | { |
| 174 | fprintf(stderr, "DeleteMark(\"%s\")\n", str); |
| 175 | } |
| 176 | |
| 177 | VOID MACRO_DestroyButton(LPCSTR str) |
| 178 | { |
| 179 | fprintf(stderr, "DestroyButton(\"%s\")\n", str); |
| 180 | } |
| 181 | |
| 182 | VOID MACRO_DisableButton(LPCSTR str) |
| 183 | { |
| 184 | fprintf(stderr, "DisableButton(\"%s\")\n", str); |
| 185 | } |
| 186 | |
| 187 | VOID MACRO_DisableItem(LPCSTR str) |
| 188 | { |
| 189 | fprintf(stderr, "DisableItem(\"%s\")\n", str); |
| 190 | } |
| 191 | |
| 192 | VOID MACRO_EnableButton(LPCSTR str) |
| 193 | { |
| 194 | fprintf(stderr, "EnableButton(\"%s\")\n", str); |
| 195 | } |
| 196 | |
| 197 | VOID MACRO_EnableItem(LPCSTR str) |
| 198 | { |
| 199 | fprintf(stderr, "EnableItem(\"%s\")\n", str); |
| 200 | } |
| 201 | |
| 202 | VOID MACRO_EndMPrint(VOID) |
| 203 | { |
| 204 | fprintf(stderr, "EndMPrint()\n"); |
| 205 | } |
| 206 | |
| 207 | VOID MACRO_ExecFile(LPCSTR str1, LPCSTR str2, LONG u, LPCSTR str3) |
| 208 | { |
| 209 | fprintf(stderr, "ExecFile(\"%s\", \"%s\", %lu, \"%s\")\n", str1, str2, u, str3); |
| 210 | } |
| 211 | |
| 212 | VOID MACRO_ExecProgram(LPCSTR str, LONG u) |
| 213 | { |
| 214 | fprintf(stderr, "ExecProgram(\"%s\", %lu)\n", str, u); |
| 215 | } |
| 216 | |
| 217 | VOID MACRO_Exit(VOID) |
| 218 | { |
| 219 | while(Globals.win_list) |
| 220 | DestroyWindow(Globals.win_list->hMainWnd); |
| 221 | } |
| 222 | |
| 223 | VOID MACRO_ExtAbleItem(LPCSTR str, LONG u) |
| 224 | { |
| 225 | fprintf(stderr, "ExtAbleItem(\"%s\", %lu)\n", str, u); |
| 226 | } |
| 227 | |
| 228 | VOID MACRO_ExtInsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u1, LONG u2) |
| 229 | { |
| 230 | fprintf(stderr, "ExtInsertItem(\"%s\", \"%s\", \"%s\", \"%s\", %lu, %lu)\n", str1, str2, str3, str4, u1, u2); |
| 231 | } |
| 232 | |
| 233 | VOID MACRO_ExtInsertMenu(LPCSTR str1, LPCSTR str2, LPCSTR str3, LONG u1, LONG u2) |
| 234 | { |
| 235 | fprintf(stderr, "ExtInsertMenu(\"%s\", \"%s\", \"%s\", %lu, %lu)\n", str1, str2, str3, u1, u2); |
| 236 | } |
| 237 | |
| 238 | BOOL MACRO_FileExist(LPCSTR str) |
| 239 | { |
| 240 | fprintf(stderr, "FileExist(\"%s\")\n", str); |
| 241 | return TRUE; |
| 242 | } |
| 243 | |
| 244 | VOID MACRO_FileOpen(VOID) |
| 245 | { |
| 246 | OPENFILENAME openfilename; |
| 247 | CHAR szPath[MAX_PATHNAME_LEN]; |
| 248 | CHAR szDir[MAX_PATHNAME_LEN]; |
| 249 | CHAR szzFilter[2 * MAX_STRING_LEN + 100]; |
| 250 | LPSTR p = szzFilter; |
| 251 | |
| 252 | LoadString(Globals.hInstance, IDS_HELP_FILES_HLP, p, MAX_STRING_LEN); |
| 253 | p += strlen(p) + 1; |
| 254 | lstrcpy(p, "*.hlp"); |
| 255 | p += strlen(p) + 1; |
| 256 | LoadString(Globals.hInstance, IDS_ALL_FILES, p, MAX_STRING_LEN); |
| 257 | p += strlen(p) + 1; |
| 258 | lstrcpy(p, "*.*"); |
| 259 | p += strlen(p) + 1; |
| 260 | *p = '\0'; |
| 261 | |
| 262 | GetWindowsDirectory(szDir, sizeof(szDir)); |
| 263 | |
| 264 | openfilename.lStructSize = 0; |
| 265 | openfilename.hwndOwner = Globals.active_win->hMainWnd; |
| 266 | openfilename.hInstance = Globals.hInstance; |
| 267 | openfilename.lpstrFilter = szzFilter; |
| 268 | openfilename.lpstrCustomFilter = 0; |
| 269 | openfilename.nMaxCustFilter = 0; |
| 270 | openfilename.nFilterIndex = 0; |
| 271 | openfilename.lpstrFile = szPath; |
| 272 | openfilename.nMaxFile = sizeof(szPath); |
| 273 | openfilename.lpstrFileTitle = 0; |
| 274 | openfilename.nMaxFileTitle = 0; |
| 275 | openfilename.lpstrInitialDir = szDir; |
| 276 | openfilename.lpstrTitle = 0; |
| 277 | openfilename.Flags = 0; |
| 278 | openfilename.nFileOffset = 0; |
| 279 | openfilename.nFileExtension = 0; |
| 280 | openfilename.lpstrDefExt = 0; |
| 281 | openfilename.lCustData = 0; |
| 282 | openfilename.lpfnHook = 0; |
| 283 | openfilename.lpTemplateName = 0; |
| 284 | |
| 285 | if (GetOpenFileName(&openfilename)) |
Rein Klazes | 9cc9d59 | 2000-06-20 20:34:11 +0000 | [diff] [blame] | 286 | WINHELP_CreateHelpWindow(szPath, 0, "main", FALSE, 0, NULL, SW_SHOWNORMAL); |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | VOID MACRO_Find(VOID) |
| 290 | { |
| 291 | fprintf(stderr, "Find()\n"); |
| 292 | } |
| 293 | |
| 294 | VOID MACRO_Finder(VOID) |
| 295 | { |
| 296 | fprintf(stderr, "Finder()\n"); |
| 297 | } |
| 298 | |
| 299 | VOID MACRO_FloatingMenu(VOID) |
| 300 | { |
| 301 | fprintf(stderr, "FloatingMenu()\n"); |
| 302 | } |
| 303 | |
| 304 | VOID MACRO_Flush(VOID) |
| 305 | { |
| 306 | fprintf(stderr, "Flush()\n"); |
| 307 | } |
| 308 | |
| 309 | VOID MACRO_FocusWindow(LPCSTR str) |
| 310 | { |
| 311 | fprintf(stderr, "FocusWindow(\"%s\")\n", str); |
| 312 | } |
| 313 | |
| 314 | VOID MACRO_Generate(LPCSTR str, WPARAM w, LPARAM l) |
| 315 | { |
| 316 | fprintf(stderr, "Generate(\"%s\", %x, %lx)\n", str, w, l); |
| 317 | } |
| 318 | |
| 319 | VOID MACRO_GotoMark(LPCSTR str) |
| 320 | { |
| 321 | fprintf(stderr, "GotoMark(\"%s\")\n", str); |
| 322 | } |
| 323 | |
| 324 | VOID MACRO_HelpOn(VOID) |
| 325 | { |
| 326 | MACRO_JumpContents((Globals.wVersion > 4) ? "winhelp32.hlp" : "winhelp.hlp", NULL); |
| 327 | } |
| 328 | |
| 329 | VOID MACRO_HelpOnTop(VOID) |
| 330 | { |
| 331 | fprintf(stderr, "HelpOnTop()\n"); |
| 332 | } |
| 333 | |
| 334 | VOID MACRO_History(VOID) |
| 335 | { |
| 336 | fprintf(stderr, "History()\n"); |
| 337 | } |
| 338 | |
| 339 | BOOL MACRO_InitMPrint(VOID) |
| 340 | { |
| 341 | fprintf(stderr, "InitMPrint()\n"); |
| 342 | return FALSE; |
| 343 | } |
| 344 | |
| 345 | VOID MACRO_InsertItem(LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u) |
| 346 | { |
| 347 | fprintf(stderr, "InsertItem(\"%s\", \"%s\", \"%s\", \"%s\", %lu)\n", str1, str2, str3, str4, u); |
| 348 | } |
| 349 | |
| 350 | VOID MACRO_InsertMenu(LPCSTR str1, LPCSTR str2, LONG u) |
| 351 | { |
| 352 | fprintf(stderr, "InsertMenu(\"%s\", \"%s\", %lu)\n", str1, str2, u); |
| 353 | } |
| 354 | |
| 355 | BOOL MACRO_IsBook(VOID) |
| 356 | { |
| 357 | fprintf(stderr, "IsBook()\n"); |
| 358 | return TRUE; |
| 359 | } |
| 360 | |
| 361 | BOOL MACRO_IsMark(LPCSTR str) |
| 362 | { |
| 363 | fprintf(stderr, "IsMark(\"%s\")\n", str); |
| 364 | return FALSE; |
| 365 | } |
| 366 | |
| 367 | BOOL MACRO_IsNotMark(LPCSTR str) |
| 368 | { |
| 369 | fprintf(stderr, "IsNotMark(\"%s\")\n", str); |
| 370 | return TRUE; |
| 371 | } |
| 372 | |
| 373 | VOID MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow) |
| 374 | { |
Rein Klazes | 9cc9d59 | 2000-06-20 20:34:11 +0000 | [diff] [blame] | 375 | WINHELP_CreateHelpWindow(lpszPath, 0, lpszWindow, FALSE, 0, NULL, SW_NORMAL); |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 376 | } |
| 377 | |
| 378 | VOID MACRO_JumpContext(LPCSTR lpszPath, LPCSTR lpszWindow, LONG context) |
| 379 | { |
| 380 | fprintf(stderr, "JumpContext(\"%s\", \"%s\", %lu)\n", lpszPath, lpszWindow, context); |
| 381 | } |
| 382 | |
| 383 | VOID MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash) |
| 384 | { |
Rein Klazes | 9cc9d59 | 2000-06-20 20:34:11 +0000 | [diff] [blame] | 385 | WINHELP_CreateHelpWindow(lpszPath, lHash, lpszWindow, FALSE, 0, NULL, SW_NORMAL); |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 386 | } |
| 387 | |
| 388 | VOID MACRO_JumpHelpOn(VOID) |
| 389 | { |
| 390 | fprintf(stderr, "JumpHelpOn()\n"); |
| 391 | } |
| 392 | |
| 393 | VOID MACRO_JumpID(LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR topic_id) |
| 394 | { |
| 395 | MACRO_JumpHash(lpszPath, lpszWindow, HLPFILE_Hash(topic_id)); |
| 396 | } |
| 397 | |
| 398 | VOID MACRO_JumpKeyword(LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR keyword) |
| 399 | { |
| 400 | fprintf(stderr, "JumpKeyword(\"%s\", \"%s\", \"%s\")\n", lpszPath, lpszWindow, keyword); |
| 401 | } |
| 402 | |
| 403 | VOID MACRO_KLink(LPCSTR str1, LONG u, LPCSTR str2, LPCSTR str3) |
| 404 | { |
| 405 | fprintf(stderr, "KLink(\"%s\", %lu, \"%s\", \"%s\")\n", str1, u, str2, str3); |
| 406 | } |
| 407 | |
| 408 | VOID MACRO_Menu(VOID) |
| 409 | { |
| 410 | fprintf(stderr, "Menu()\n"); |
| 411 | } |
| 412 | |
| 413 | VOID MACRO_MPrintHash(LONG u) |
| 414 | { |
| 415 | fprintf(stderr, "MPrintHash(%lu)\n", u); |
| 416 | } |
| 417 | |
| 418 | VOID MACRO_MPrintID(LPCSTR str) |
| 419 | { |
| 420 | fprintf(stderr, "MPrintID(\"%s\")\n", str); |
| 421 | } |
| 422 | |
| 423 | VOID MACRO_Next(VOID) |
| 424 | { |
| 425 | fprintf(stderr, "Next()\n"); |
| 426 | } |
| 427 | |
| 428 | VOID MACRO_NoShow(VOID) |
| 429 | { |
| 430 | fprintf(stderr, "NoShow()\n"); |
| 431 | } |
| 432 | |
| 433 | VOID MACRO_PopupContext(LPCSTR str, LONG u) |
| 434 | { |
| 435 | fprintf(stderr, "PopupContext(\"%s\", %lu)\n", str, u); |
| 436 | } |
| 437 | |
| 438 | VOID MACRO_PopupHash(LPCSTR str, LONG u) |
| 439 | { |
| 440 | fprintf(stderr, "PopupHash(\"%s\", %lu)\n", str, u); |
| 441 | } |
| 442 | |
| 443 | VOID MACRO_PopupId(LPCSTR str1, LPCSTR str2) |
| 444 | { |
| 445 | fprintf(stderr, "PopupId(\"%s\", \"%s\")\n", str1, str2); |
| 446 | } |
| 447 | |
| 448 | VOID MACRO_PositionWindow(LONG i1, LONG i2, LONG u1, LONG u2, LONG u3, LPCSTR str) |
| 449 | { |
| 450 | fprintf(stderr, "PositionWindow(%li, %li, %lu, %lu, %lu, \"%s\")\n", i1, i2, u1, u2, u3, str); |
| 451 | } |
| 452 | |
| 453 | VOID MACRO_Prev(VOID) |
| 454 | { |
| 455 | fprintf(stderr, "Prev()\n"); |
| 456 | } |
| 457 | |
| 458 | VOID MACRO_Print(VOID) |
| 459 | { |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 460 | PRINTDLG printer; |
| 461 | |
| 462 | printer.lStructSize = sizeof(printer); |
| 463 | printer.hwndOwner = Globals.active_win->hMainWnd; |
| 464 | printer.hInstance = Globals.hInstance; |
| 465 | printer.hDevMode = 0; |
| 466 | printer.hDevNames = 0; |
| 467 | printer.hDC = 0; |
| 468 | printer.Flags = 0; |
| 469 | printer.nFromPage = 0; |
| 470 | printer.nToPage = 0; |
| 471 | printer.nMinPage = 0; |
| 472 | printer.nMaxPage = 0; |
| 473 | printer.nCopies = 0; |
| 474 | printer.lCustData = 0; |
| 475 | printer.lpfnPrintHook = 0; |
| 476 | printer.lpfnSetupHook = 0; |
| 477 | printer.lpPrintTemplateName = 0; |
| 478 | printer.lpSetupTemplateName = 0; |
| 479 | printer.hPrintTemplate = 0; |
| 480 | printer.hSetupTemplate = 0; |
| 481 | |
Alexandre Julliard | 27b790b | 2000-06-08 04:58:18 +0000 | [diff] [blame] | 482 | if (PrintDlgA(&printer)) { |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 483 | fprintf(stderr, "Print()\n"); |
| 484 | }; |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 485 | } |
| 486 | |
| 487 | VOID MACRO_PrinterSetup(VOID) |
| 488 | { |
| 489 | fprintf(stderr, "PrinterSetup()\n"); |
| 490 | } |
| 491 | |
| 492 | VOID MACRO_RegisterRoutine(LPCSTR str1, LPCSTR str2, LPCSTR str3) |
| 493 | { |
| 494 | fprintf(stderr, "RegisterRoutine(\"%s\", \"%s\", \"%s\")\n", str1, str2, str3); |
| 495 | } |
| 496 | |
| 497 | VOID MACRO_RemoveAccelerator(LONG u1, LONG u2) |
| 498 | { |
| 499 | fprintf(stderr, "RemoveAccelerator(%lu, %lu)\n", u1, u2); |
| 500 | } |
| 501 | |
| 502 | VOID MACRO_ResetMenu(VOID) |
| 503 | { |
| 504 | fprintf(stderr, "ResetMenu()\n"); |
| 505 | } |
| 506 | |
| 507 | VOID MACRO_SaveMark(LPCSTR str) |
| 508 | { |
| 509 | fprintf(stderr, "SaveMark(\"%s\")\n", str); |
| 510 | } |
| 511 | |
| 512 | VOID MACRO_Search(VOID) |
| 513 | { |
| 514 | fprintf(stderr, "Search()\n"); |
| 515 | } |
| 516 | |
| 517 | VOID MACRO_SetContents(LPCSTR str, LONG u) |
| 518 | { |
| 519 | fprintf(stderr, "SetContents(\"%s\", %lu)\n", str, u); |
| 520 | } |
| 521 | |
| 522 | VOID MACRO_SetHelpOnFile(LPCSTR str) |
| 523 | { |
| 524 | fprintf(stderr, "SetHelpOnFile(\"%s\")\n", str); |
| 525 | } |
| 526 | |
| 527 | VOID MACRO_SetPopupColor(LONG u1, LONG u2, LONG u3) |
| 528 | { |
| 529 | fprintf(stderr, "SetPopupColor(%lu, %lu, %lu)\n", u1, u2, u3); |
| 530 | } |
| 531 | |
| 532 | VOID MACRO_ShellExecute(LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4) |
| 533 | { |
| 534 | fprintf(stderr, "ShellExecute(\"%s\", \"%s\", %lu, %lu, \"%s\", \"%s\")\n", str1, str2, u1, u2, str3, str4); |
| 535 | } |
| 536 | |
| 537 | VOID MACRO_ShortCut(LPCSTR str1, LPCSTR str2, WPARAM w, LPARAM l, LPCSTR str) |
| 538 | { |
| 539 | fprintf(stderr, "ShortCut(\"%s\", \"%s\", %x, %lx, \"%s\")\n", str1, str2, w, l, str); |
| 540 | } |
| 541 | |
| 542 | VOID MACRO_TCard(LONG u) |
| 543 | { |
| 544 | fprintf(stderr, "TCard(%lu)\n", u); |
| 545 | } |
| 546 | |
| 547 | VOID MACRO_Test(LONG u) |
| 548 | { |
| 549 | fprintf(stderr, "Test(%lu)\n", u); |
| 550 | } |
| 551 | |
| 552 | BOOL MACRO_TestALink(LPCSTR str) |
| 553 | { |
| 554 | fprintf(stderr, "TestALink(\"%s\")\n", str); |
| 555 | return FALSE; |
| 556 | } |
| 557 | |
| 558 | BOOL MACRO_TestKLink(LPCSTR str) |
| 559 | { |
| 560 | fprintf(stderr, "TestKLink(\"%s\")\n", str); |
| 561 | return FALSE; |
| 562 | } |
| 563 | |
| 564 | VOID MACRO_UncheckItem(LPCSTR str) |
| 565 | { |
| 566 | fprintf(stderr, "UncheckItem(\"%s\")\n", str); |
| 567 | } |
| 568 | |
| 569 | VOID MACRO_UpdateWindow(LPCSTR str1, LPCSTR str2) |
| 570 | { |
| 571 | fprintf(stderr, "UpdateWindow(\"%s\", \"%s\")\n", str1, str2); |
| 572 | } |
| 573 | |
| 574 | /* Local Variables: */ |
| 575 | /* c-file-style: "GNU" */ |
| 576 | /* End: */ |