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

📄 itapi.h

📁 完整的MP3播放器源码
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
//
// $NoKeywords: $

#ifndef ITAPI_INCLUDED
#define	ITAPI_INCLUDED


/////////////////////////////////////////////////////////////////////////////
// Global API Functions
//
// @doc EXTERNAL API

// All of the functions in this file are in this namespace.
namespace ITCLIB
{

/////////////////////////////////////////////////////////////////////////////

 LPVOID  FindLoadAndLockResource(LPCTSTR lpName, 
	LPCTSTR lpType, DWORD* pdwSizeof = NULL, HINSTANCE* phModule = NULL,
	HRSRC* phResInfo = NULL);
 CSize  GetScreenDimensions();
 CString  GetLastErrorMessage();
 CString  GetLastErrorMessage(DWORD dwLastError);
 DWORD  GetLastWNetError();
 CString  GetLastWNetErrorMessage();
 CString  GetLastWNetErrorMessage(DWORD dwLastWNetError);
 void  SelectWindowText(CWnd*);
 BOOL  PostUniqueMessage(HWND hWnd, UINT message, WPARAM wParam = 0, LPARAM lParam = 0);
 CString&  AppendStringWithPrefix(CString& str, CString strPrefix, CString strAppend);
 CString  GetComputerName();
 CString  GetUserName();
 void  GetRealClientRect(HWND hWnd, CRect& rc);
 void  GetRealClientRect(CWnd* pWnd, CRect& rc);
 HWND  FindWindowNT(HWND hwndParent, HWND hwndChildAfter,LPCTSTR lpszClass, LPCTSTR lpszWindow);
 void  DumpField(CDumpContext& dc, LPCTSTR lpszField, BOOL);
 void  DumpField(CDumpContext& dc, LPCTSTR lpszField, CString);
 CString  AppProfileFindPath(CWinApp* pApp, LPCTSTR lpszSection,LPCTSTR lpszBasePathEntry, LPCTSTR lpszFileEntry,LPCTSTR lpszBaseDefault = NULL, LPCTSTR lpszFileDefault = NULL);
 void  SplitPath(CString strFullPath, CString& strFolder, CString& strFileName);
 LPCTSTR  CopyString(LPTSTR lpszDest, LPCTSTR lpszSrc, size_t nDestLen);
 LPCTSTR  InsertString(int nIndex, LPCTSTR lpszInsert, LPTSTR lpszDest, size_t nDestLen);
 int  CompareRight(LPCTSTR lpszSrc, LPCTSTR pszTail);
 LPCTSTR  StripNewline(LPTSTR);
 LPCTSTR  StripNewline(CString&);
 CString  BytesToString(long bytes);
 LPCTSTR  TrimString(CString& rString);
 LPCTSTR  TrimString(LPTSTR lpszSrc);
 BOOL  SplitString(const CString& rString, char chSplit,CString& strLeft, CString& strRight);
 void  RemoveLastChar(CString& rString);
 void  ReplaceLastChar(CString& rString, TCHAR ch);
 LPCTSTR  ReverseFindString(LPCTSTR lpszString, LPCTSTR lpszSub);
 CString  GetStringAfterSeperator(CString strValue, CString strSeperator);
 TCHAR  FirstChar(CString& rString);
 TCHAR  LastChar(CString& rString);
 int  ReplaceChars(CString& string, TCHAR chReplaceThis, TCHAR chReplaceWith);
 CString  ToString(long value);
 int StringToStringArray(CString strValue, CString strSeperator, CStringArray& lines);
 CString& StringArrayToString(CStringArray& lines, CString strSeperator, CString& strValue);
 CSize  DeviceResolutionDP(CDC*);
 CSize  DeviceResolutionLP(CDC*);
 CPoint  SetViewportOrgLP(CDC*, CPoint);
 BOOL  ShowAndEnableWindow(HWND hWnd, BOOL bShow, BOOL bEnable);
 BOOL  ShowAndEnableWindow(CWnd* pChild, BOOL bShow, BOOL bEnable);
 BOOL  ShowAndEnableWindow(CWnd* pParent, UINT nIDC, BOOL bShow, BOOL bEnable);
 BOOL  ShowDialogControl(CWnd* pParent, UINT nIDC, BOOL bShow, BOOL bEnable = TRUE, BOOL bSmart = TRUE);
 BOOL  ShowNextDialogSibling(CWnd* pParent, UINT nIDC, BOOL bShow, BOOL bEnable = TRUE);
 BOOL  ShowPrevDialogSibling(CWnd* pParent, UINT nIDC, BOOL bShow, BOOL bEnable = TRUE);
 const CObject*  TypeCastKindOf(CRuntimeClass* pClass, const CObject* pObject);
 CObject*  TypeCastKindOf(CRuntimeClass* pClass, CObject* pObject);
 void  TraceClassesByModule();
 int  TraceDuplicateClassModules();
 LRESULT  SendMessageToOwner(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam);
 LRESULT  SendNotifyToOwner(HWND hWnd, WORD wNotifyCode);
 LRESULT  SendNotifyToOwner(CWnd* pControl, WORD wNotifyCode);
 LRESULT  SendNotifyToOwner(HWND hWnd, LPNMHDR pnmh);
 LRESULT  SendNotifyToOwner(CWnd* pControl, LPNMHDR pnmh);
 BOOL  CompareClassName(HWND hWnd, LPCTSTR lpszClassName);
 BOOL  IsEditControl(HWND hWndCtl);
 BOOL  IsButtonControl(HWND hWndCtl);
 BOOL  IsComboBoxControl(HWND hWndCtl);
 BOOL  IsListBoxControl(HWND hWndCtl);
 BOOL  IsStaticControl(HWND hWndCtl);
 BOOL  EnumProcessWindows(WNDENUMPROC lpEnumFunc, LPARAM lParam);
 HWND  FindChildWindowWithClassAndId(HWND hWndParent, LPCTSTR lpszClass, int nID);
 HWND  FindThreadWindowByName(LPCTSTR lpszWindowCaption);
 DWORD  GetEnvironmentVariable(LPCTSTR lpName, CString& strBuffer);
 BOOL  FileExists(CString strFilePath);
 BOOL  FolderExists(CString strFolder);

#ifdef _DEBUG
 void  TraceWindow(CWnd* pWnd, int nLevel);
 void  TraceWindowChildren(CWnd* pParentWnd, BOOL bRecursive, int nLevel = 0);
#endif

/////////////////////////////////////////////////////////////////////////////

} // namespace ITCLIB

/////////////////////////////////////////////////////////////////////////////
// Inline function declarations.

#ifdef _ITC_ENABLE_INLINES
#define _ITC_INLINE inline
#include <ITAPI.inl>
#undef _ITC_INLINE
#endif // _ITC_ENABLE_INLINES

/////////////////////////////////////////////////////////////////////////////

#endif // ITAPI_INCLUDED

⌨️ 快捷键说明

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