OSDN Git Service

Update TranslationsStatus.*
[winmerge-jp/winmerge-jp.git] / Src / StdAfx.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 //    WinMerge:  an interactive diff/merge utility
3 //    Copyright (C) 1997-2000  Thingamahoochie Software
4 //    Author: Dean Grimm
5 //    SPDX-License-Identifier: GPL-2.0-or-later
6 /////////////////////////////////////////////////////////////////////////////
7 // stdafx.cpp : source file that includes just the standard includes
8 //      Merge.pch will be the pre-compiled header
9 //      stdafx.obj will contain the pre-compiled type information
10
11 #include "stdafx.h"
12 #include "Merge.h"
13
14 int CWinMergeProfile::level = 0;
15 CMapStringToPtr CWinMergeProfile::map;
16 LARGE_INTEGER CWinMergeProfile::origin;
17
18 /**
19  * @brief Wrapper around CMergeApp::TranslateDialog()
20  */
21 void NTAPI LangTranslateDialog(HWND h)
22 {
23         theApp.TranslateDialog(h);
24 }
25
26 /**
27  * @brief Lang aware version of AfxMessageBox()
28  */
29 int NTAPI LangMessageBox(UINT nIDPrompt, UINT nType, UINT nIDHelp)
30 {
31         String string = theApp.LoadString(nIDPrompt);
32         if (nIDHelp == (UINT)-1)
33                 nIDHelp = nIDPrompt;
34         return AfxMessageBox(string.c_str(), nType, nIDHelp);
35 }