X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=6bdcf3a8f57b38fc3e5a41a20872d7b199154693;hb=f00b56b34a1d43c6cc3e7489fdde4f284d776420;hp=15ac9626de8378b85d37dde7ba9357fc94720c9a;hpb=27a6dc15aef8b81f365bb0d87ee73ef4651e00d1;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 15ac962..6bdcf3a 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -1,6 +1,5 @@ /* * WinBoard.c -- Windows NT front end to XBoard - * $Id: winboard.c,v 2.3 2003/11/25 05:25:20 mann Exp $ * * Copyright 1991 by Digital Equipment Corporation, Maynard, * Massachusetts. Enhancements Copyright @@ -88,7 +87,7 @@ #include "woptions.h" #include "wsockerr.h" #include "defaults.h" - +#include "help.h" #include "wsnap.h" //void InitEngineUCI( const char * iniDir, ChessProgramState * cps ); @@ -106,8 +105,6 @@ int FinishMove P((ChessMove moveType, int fromX, int fromY, int toX, int toY, void AnimateAtomicCapture(int fromX, int fromY, int toX, int toY, int nFrames); void DisplayMove P((int moveNumber)); Boolean ParseFEN P((Board board, int *blackPlaysFirst, char *fen)); -int HtmlHelp( HWND hwnd, LPCSTR helpFile, UINT action, DWORD data ); - typedef struct { ChessSquare piece; POINT pos; /* window coordinates of current pos */ @@ -2298,7 +2295,7 @@ SaveSettings(char* name) return; } fprintf(f, ";\n"); - fprintf(f, "; %s %s.%s Save Settings file\n", PRODUCT, VERSION, PATCHLEVEL); + fprintf(f, "; %s Save Settings file\n", PACKAGE_STRING); fprintf(f, ";\n"); fprintf(f, "; You can edit the values of options that are already set in this file,\n"); fprintf(f, "; but if you add other options, the next Save Settings will not save them.\n"); @@ -5659,7 +5656,8 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) } else if(lParam != KF_REPEAT) { if (isalpha((char)wParam) || isdigit((char)wParam)) { PopUpMoveDialog((char)wParam); - } + } else if((char)wParam == 003) CopyGameToClipboard(); + else if((char)wParam == 026) PasteGameOrFENFromClipboard(); } break; @@ -6196,7 +6194,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case IDM_HELPCONTENTS: if (!MyHelp (hwnd, "winboard.hlp", HELP_KEY,(DWORD)(LPSTR)"CONTENTS") && - !HtmlHelp(hwnd, "winboard.chm", 0, 0)) { + !HtmlHelp(hwnd, "winboard.chm", 0, 0) ) { MessageBox (GetFocus(), "Unable to activate help", szAppName, MB_SYSTEMMODAL|MB_OK|MB_ICONHAND);