📄 ycode.h
字号:
#pragma once
#include "stdafx.h"
/*********************************************************************************************
* SysFunc *
* *
* YCode Y代码 YCtrl Y控件 Windows Mobile 透明控件 2008 YCtrl 1.0 *
* 作者:卢益贵 QQ:48092788 luyigui.blog.nnsky.com *
* *
**********************************************************************************************/
BOOL FileExists( LPCWSTR lpszFileName );
char * FindText( char *pStr, char *pSubStr);
/*********************************************************************************************
* CList *
* *
* YCode Y代码 YCtrl Y控件 Windows Mobile 透明控件 2008 YCtrl 1.0 *
* 作者:卢益贵 QQ:48092788 luyigui.blog.nnsky.com *
* *
**********************************************************************************************/
class CList
{
private:
void *m_pData;
UINT m_unCount;
UINT m_unMax;
void CheckMem( void );
protected:
public:
CList();
~CList();
public:
UINT Add( void *p );
void Delete( void *p );
UINT Insert( UINT unIndex, void *p );
UINT GetCount( void );
void * GetItem( UINT unIndex );
void Clear( void );
};
/*********************************************************************************************
* CString *
* *
* YCode Y代码 YCtrl Y控件 Windows Mobile 透明控件 2008 YCtrl 1.0 *
* 作者:卢益贵 QQ:48092788 luyigui.blog.nnsky.com *
* *
**********************************************************************************************/
class CString
{
private:
WCHAR *m_pszText;
int m_nLength;
int m_nBufSize;
public:
CString();
~CString();
public:
void SetBufSize( int nSize );
void CheckBufSize( int nSize );
int GetLength( void );
void Clear( void );
void Copy( LPCWSTR lpszDes, int nTextMax );
LPCWSTR GetString( void );
WCHAR operator []( int nIndex ) const;
WCHAR & operator []( int nIndex );
void operator = ( LPCWSTR pszStr );
void operator = ( LPCSTR pszStr );
CString & operator + ( LPCWSTR pszStr );
CString & operator + ( LPCSTR pszStr );
void operator += ( LPCWSTR pszStr );
void operator += ( LPCSTR pszStr );
void operator += ( WCHAR wcChar );
void operator -- ( void );
void operator = ( CString & );
CString & operator + ( CString & );
void operator += ( CString & );
};
/*********************************************************************************************
* CIni *
* *
* YCode Y代码 YCtrl Y控件 Windows Mobile 透明控件 2008 YCtrl 1.0 *
* 作者:卢益贵 QQ:48092788 luyigui.blog.nnsky.com *
* *
**********************************************************************************************/
class CIni
{
private:
HANDLE m_hFile;
CList m_lstLines;
public:
CIni(){m_hFile = INVALID_HANDLE_VALUE;};
~CIni(){Close();};
public:
void Open( LPCWSTR pszFileName );
void Close( void );
void WriteStr( LPCSTR pszSection, LPCSTR pszIdent, LPCSTR pszValue );
void WriteFloat( LPCSTR pszSection, LPCSTR pszIdent, float fValue );
void WriteInt( LPCSTR pszSection, LPCSTR pszIdent, int nValue );
void WriteDateTime( LPCSTR pszSection, LPCSTR pszIdent, SYSTEMTIME &pDateTime );
void RealStr( LPCSTR pszSection, LPCSTR pszIdent, LPCSTR pszValue );
float ReadFloat( LPCSTR pszSection, LPCSTR pszIdent );
int ReadInt( LPCSTR pszSection, LPCSTR pszIdent );
void ReadDateTime( LPCSTR pszSection, LPCSTR pszIdent, SYSTEMTIME &pDateTime );
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -