⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pocketpc.cpp

📁 Password Safe Password Safe is a password database utility. Users can keep their passwords securely
💻 CPP
字号:
// PocketPC.cpp////-----------------------------------------------------------------------------#include "../PwsPlatform.h"#if defined(POCKET_PC)#include "pocketpc.h"extern int errno = 0;/** * Renames a file, uses the WinCE API to implement the function that is not * provided in the WinCE / PocketPC standard C library. */#ifdef UNICODEint rename( const wchar_t *oldname, const wchar_t *newname )#elseint rename( const char *oldname, const char *newname )#endif{	int	ret;	ret = ::MoveFile( oldname, newname );	if ( ret == 0 )	{		errno = ::GetLastError();		return -1;	}	errno = 0;	return errno;}/** * Gets the number of */time_t time( time_t *timer ){	CTime now = CTime::GetCurrentTime();	return now.GetTime();}void centreWithin( CRect &larger, CRect &smaller, CRect &result ){	result.left   = larger.left + ((larger.Width() - smaller.Width()) >> 1);	result.top    = larger.top + ((larger.Height() - smaller.Height()) >> 1);	result.bottom = result.top + smaller.Height();	result.right  = result.left + smaller.Width();}void centreWithin( CWnd *parent, CWnd *child, CRect &result ){	CRect	larger;	CRect	smaller;	parent->GetWindowRect( larger );	child->GetWindowRect( smaller );	centreWithin( larger, smaller, result );}DWORD DisableWordCompletion( HWND hwnd ){	DWORD	flags;	SIPINFO	info;	memset( &info, 0, sizeof(info) );	info.cbSize = sizeof(info);	SHSipInfo( SPI_GETSIPINFO, 0, &info, 0 );	flags			 = info.fdwFlags;	info.fdwFlags	|= SIPF_DISABLECOMPLETION;	SHSipInfo( SPI_SETSIPINFO, 0, &info, 0 );	if ( flags & SIPF_ON )	{		SHSipPreference( hwnd, SIP_DOWN );		SHSipPreference( hwnd, SIP_UP );	}	return flags;}void EnableWordCompletion( HWND hwnd ){	SIPINFO	info;	memset( &info, 0, sizeof(info) );	info.cbSize = sizeof(info);	SHSipInfo( SPI_GETSIPINFO, 0, &info, 0 );	info.fdwFlags	&= ~(SIPF_DISABLECOMPLETION);	SHSipInfo( SPI_SETSIPINFO, 0, &info, 0 );	if ( info.fdwFlags & SIPF_ON )	{		SHSipPreference( hwnd, SIP_DOWN );		SHSipPreference( hwnd, SIP_UP );	}}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -