JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
WinTools.h File Reference
#include <afxmt.h>
#include "WinBaseResource.h"
#include "BasicLib.h"
#include <userenv.h>
#include <imagehlp.h>
#include <locale.h>
Include dependency graph for WinTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EventHandler
 

Namespaces

namespace  jbxwl
 

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define _WIN32_WINNT   _WIN32_WINNT_MAXVER
 
#define JBXWL_LOCALE_US   "English"
 
#define JBXWL_LOCALE_JP   "Japanese"
 
#define JBXWL_WM_USER   WM_USER + 9000
 
#define JBXWL_WM_NETWORK_EVENT   JBXWL_WM_USER + 100
 
#define JBXWL_WM_NETWORK_OPEN   JBXWL_WM_USER + 101
 
#define JBXWL_WM_NETWORK_CLOSE   JBXWL_WM_USER + 102
 
#define JBXWL_WM_SPEECH_EVENT   JBXWL_WM_USER + 110
 
#define get_file_path_t(p)   make_file_path_t((p))
 
#define del_file_extension_t(p)   cut_file_extension_t((p))
 

Enumerations

enum  SENDKEY_Action { SENDKEY_TapAction , SENDKEY_DownAction , SENDKEY_UpAction }
 

Functions

Buffer tc2Buffer (TCHAR *tchar, int size=-1)
 locale が正しくないと,日本語の変換は失敗する. ex.) setlocale(LC_CTYPE,"jpn") or setSystemLocale()
 
Buffer ts2Buffer (LPCTSTR str, int size=-1)
 
Buffer String2Buffer (CString str)
 
CString mbs2ts (char *str)
 
char * ts2mbs (LPCTSTR str)
 
int copy_ts2Buffer (LPCTSTR str, Buffer *buf)
 
int cat_ts2Buffer (LPCTSTR str, Buffer *buf)
 
unsigned long int file_size_t (LPCTSTR fn)
 
BOOL file_exist_t (LPCTSTR fn)
 
CString get_file_name_t (LPCTSTR str)
 
CString make_file_path_t (LPCTSTR str)
 
CString cut_file_extension_t (LPCTSTR str)
 
tList * read_index_tList_file_t (LPCTSTR fn, char cc)
 
tList * get_dir_files_t (LPCTSTR dirn)
 
tList * get_dir_files_rcsv_t (LPCTSTR dirn)
 
CString numbering_name_t (LPCTSTR fmt, int n)
 
CString get_tstr_param_tList (tList *lt, char *key, LPCTSTR dflt)
 
void setResourceLocale (void)
 
CString getResourceLocale (void)
 
void setSystemLocale (LPCTSTR locale=_T(""))
 
Buffer utf8_to_sjis_byStr (CString str)
 
Buffer utf8_to_sjis (void *ptr, size_t len)
 
Buffer sjis_to_utf8_byStr (CString str)
 
Buffer sjis_to_utf8 (void *ptr, size_t len)
 
CString GetCurrentUserHomeFolder (void)
 
CString GetDefaultUserHomeFolder (void)
 
CString MakeWorkingFolderPath (LPCTSTR fnm, BOOL local, LPCTSTR dir=NULL, BOOL make=FALSE)
 
CString GetProgramFolder (void)
 
char * GetProgramFolderA (void)
 
CString GetCurrentFolder (void)
 
void SendWinMessage (UINT mesg, WPARAM wparam=NULL, LPARAM lparam=NULL)
 
int MessageDLG (LPCTSTR ttl, LPCTSTR msg, UINT type, HWND hWnd)
 
void SaveToClipboard_byStr (CString data)
 
void SaveToClipboard (void *ptr, size_t len)
 
void SendKeyAction (WORD key, SENDKEY_Action action)
 
void SendKeyActionTap (WORD key)
 
void SendKeyActionTap (WORD key1, WORD key2)
 
void SendKeyActionTap (WORD key1, WORD key2, WORD key3)
 
void SendKeyActionTapAlt (WORD key)
 
void SendKeyActionTapShift (WORD key)
 
void SendKeyActionTapCtrl (WORD key)
 
BOOL DoSystemKeyAction (LPCTSTR com, BOOL child=FALSE)
 
TCHAR * GetMouseCursorType (void)
 
unsigned short GetMsecondsTimer (void)
 
unsigned short GetMsecondsLapTimer (unsigned short pm, unsigned short *nt=NULL)
 
CString LoadString_byID (UINT id)
 
void WinSystem (char *command, DWORD flag, BOOL wait)
 
template<class T >
void releaseNull (T *&ptr)
 
template<class T >
void deleteNull (T *&ptr)
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS

Tools for Windows ライブラリ

Definition at line 14 of file WinTools.h.

◆ _WIN32_WINNT

#define _WIN32_WINNT   _WIN32_WINNT_MAXVER

Definition at line 18 of file WinTools.h.

◆ del_file_extension_t

#define del_file_extension_t ( p)    cut_file_extension_t((p))

Definition at line 75 of file WinTools.h.

◆ get_file_path_t

#define get_file_path_t ( p)    make_file_path_t((p))

Definition at line 74 of file WinTools.h.

◆ JBXWL_LOCALE_JP

#define JBXWL_LOCALE_JP   "Japanese"

Definition at line 33 of file WinTools.h.

◆ JBXWL_LOCALE_US

#define JBXWL_LOCALE_US   "English"

Definition at line 32 of file WinTools.h.

◆ JBXWL_WM_NETWORK_CLOSE

#define JBXWL_WM_NETWORK_CLOSE   JBXWL_WM_USER + 102

Definition at line 40 of file WinTools.h.

◆ JBXWL_WM_NETWORK_EVENT

#define JBXWL_WM_NETWORK_EVENT   JBXWL_WM_USER + 100

Definition at line 38 of file WinTools.h.

◆ JBXWL_WM_NETWORK_OPEN

#define JBXWL_WM_NETWORK_OPEN   JBXWL_WM_USER + 101

Definition at line 39 of file WinTools.h.

◆ JBXWL_WM_SPEECH_EVENT

#define JBXWL_WM_SPEECH_EVENT   JBXWL_WM_USER + 110

Definition at line 41 of file WinTools.h.

◆ JBXWL_WM_USER

#define JBXWL_WM_USER   WM_USER + 9000

Definition at line 36 of file WinTools.h.