?? oneinst.h
字號(hào):
/////////
///// COneInstance implementation
////////
#ifndef _ONEINSTANCE_H_
#define _ONEINSTANCE_H_
/* common usage:
if (!AmIFirst())
{
SendData();
}
// ... initialization
Init(hMainFrame);
*/
class COneInstance
{
public:
COneInstance();
~COneInstance();
BOOL AmIFirst(LPCTSTR sUniq);
BOOL Init(HWND hw);
BOOL SendData(DWORD dwData, DWORD dwSize=0, LPVOID pData=NULL);
// receiver will have WM_COPYDATA(dwData)
protected:
HANDLE m_hFile;
BOOL m_bFirst;
LPVOID m_pData;
};
#endif //_ONEINSTANCE_H_
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -