www.pudn.com > ÍøÂç¶Ë¿Ú¼àÊÓ.rar > BCGCBPro.h
#ifndef __BCGCBPRO_H #define __BCGCBPRO_H // This is a part of the BCGControlBar Library // Copyright (C) 1998-2000 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and conditions // of the accompanying license agreement. #ifndef __AFXCMN_H__ #include// MFC support for Windows Common Controls #endif #if defined _AFXDLL && !defined _BCGCBPRO_STATIC_ #ifdef _BCGCBPRO_ #define BCGCBPRODLLEXPORT _declspec(dllexport) #else #define BCGCBPRODLLEXPORT _declspec(dllimport) #endif #else #define BCGCBPRODLLEXPORT #endif #include "BCGPUserToolsManager.h" inline BOOL IsStandardCommand (UINT uiCmd) { return ((uiCmd >= ID_FILE_MRU_FILE1 && uiCmd <= ID_FILE_MRU_FILE16) || // MRU commands, (uiCmd >= 0xF000 && uiCmd < 0xF1F0) || // system commands, ((int) uiCmd >= AFX_IDM_FIRST_MDICHILD) || // windows commands (uiCmd >= ID_OLE_VERB_FIRST && uiCmd <= ID_OLE_VERB_LAST) || // OLE commands g_pUserToolsManager != NULL && uiCmd == g_pUserToolsManager->GetToolsEntryCmd ()); } BCGCBPRODLLEXPORT void BCGCBProSetResourceHandle ( HINSTANCE hinstResDLL); BCGCBPRODLLEXPORT void BCGCBProCleanUp (); extern BCGCBPRODLLEXPORT CFrameWnd* g_pTopLevelFrame; inline BCGCBPRODLLEXPORT void BCGCBProSetTopLevelFrame (CFrameWnd* pFrame) { g_pTopLevelFrame = pFrame; } inline BCGCBPRODLLEXPORT CFrameWnd* BCGCBProGetTopLevelFrame (const CWnd* pWnd) { ASSERT_VALID (pWnd); return g_pTopLevelFrame == NULL ? pWnd->GetTopLevelFrame () : g_pTopLevelFrame; } BCGCBPRODLLEXPORT CFrameWnd* BCGPGetParentFrame (const CWnd* pWnd); #define BCG_GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) #define BCG_GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) #endif // __BCGCBPRO_H