Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/ttpmenu/winmisc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9048 - (show annotations) (download) (as text)
Wed Dec 16 12:24:13 2020 UTC (3 years, 5 months ago) by nmaya
File MIME type: text/x-chdr
File size: 3100 byte(s)
ソースファイルの著作権表記の "最後の発行の年" を削除

ticket #40996
1 /*
2 * Copyright (C) S.Hayakawa NTT-IT 1998-2002
3 * (C) 2002- TeraTerm Project
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 #ifndef WINMISC_H
31 #define WINMISC_H
32
33 #include <windows.h>
34 #include <tchar.h>
35
36 #include <shlobj.h>
37 #include <shellapi.h>
38
39 #include <stdio.h>
40 #include <time.h>
41 #include "i18n.h"
42
43 // Window Position
44 #define POSITION_LEFTTOP 0x00
45 #define POSITION_LEFTBOTTOM 0x01
46 #define POSITION_RIGHTTOP 0x02
47 #define POSITION_RIGHTBOTTOM 0x03
48 #define POSITION_CENTER 0x04
49 #define POSITION_OUTSIDE 0x05
50
51 // misc
52 void GetTime(TCHAR *cTimeStr);
53 void GetTimeEx(LPTSTR lpszTimeStr);
54 void SetDlgPos(HWND hWnd, int pos);
55 void EncodePassword(TCHAR *cPassword, TCHAR *cEncodePassword);
56 BOOL EnableItem(HWND hWnd, int idControl, BOOL flag);
57 BOOL OpenFileDlg(HWND hWnd, UINT editCtl, TCHAR *title, TCHAR *filter, TCHAR *defaultDir);
58 BOOL SaveFileDlg(HWND hWnd, UINT editCtl, TCHAR *title, TCHAR *filter, TCHAR *defaultDir);
59 BOOL BrowseForFolder(HWND hWnd, TCHAR *szTitle, TCHAR *szPath);
60 BOOL GetModulePath(TCHAR *szPath, DWORD dwMaxPath);
61 BOOL SetForceForegroundWindow(HWND hWnd);
62 UINT GetResourceType(LPCTSTR lpszPath);
63 int CALLBACK BrowseCallbackProc(HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
64 TCHAR *PathTok(TCHAR *str, TCHAR *separator);
65 TCHAR *lstrstri(TCHAR *s1, TCHAR *s2);
66 void UTIL_get_lang_msg(const char *key, PCHAR buf, int buf_len, const char *def, const char *iniFile);
67 int UTIL_get_lang_font(const char *key, HWND dlg, PLOGFONT logfont, HFONT *font, const char *iniFile);
68 LRESULT CALLBACK password_wnd_proc(HWND control, UINT msg,
69 WPARAM wParam, LPARAM lParam);
70
71 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26