40 public CWindowImpl<CBaseBarSite, CWindow, CControlWinTraits>,
45 public IWinEventHandler,
46 public IInputObjectSite,
47 public IDeskBarClient,
172 TRACE(
"CBaseBarSite deleted\n");
202 hResult = persist->GetClassID(&tmp);
227 deskBandInfo.
dwMask = DBIM_MINSIZE | DBIM_ACTUAL | DBIM_TITLE | DBIM_BKCOLOR;
229 hResult = deskBand->GetBandInfo(0, (
fVertical) ? DBIF_VIEWMODE_VERTICAL : DBIF_VIEWMODE_NORMAL, &deskBandInfo);
238 hResult = oleWindow->GetWindow(&
bandInfo.hwndChild);
314 return serviceProvider->QueryService(guidService,
riid,
ppvObject);
333 switch (notifyHeader->
code)
341 hResult = deskBar->OnPosRectChangeDB(&newBounds);
358 hResult = winEventHandler->OnWinEvent(
hWnd, uMsg,
wParam,
lParam, theResult);
381 if (punkSite ==
NULL)
384 TRACE(
"Destroying site \n");
406 hResult = oleWindow->GetWindow(&ownerWindow);
418 _AtlBaseModule.GetModuleInstance(),
NULL);
431 , 0, 0, 0, 0,
m_hWnd,
NULL, _AtlBaseModule.GetModuleInstance(),
NULL);
484 if (
IsEqualIID(*pguidCmdGroup, IID_IDeskBand))
521 pBandInfo->fMask = fMask;
538 if (pdwBandID ==
NULL)
540 if (uBand == 0xffffffff)
573 if (
index == 0xffffffff)
594 pDockWnd->CloseDW(0);
595 pSite->SetSite(
NULL);
600 ERR(
"Can't delete the band\n");
624 if (
index == 0xffffffff)
653 if (pClassID ==
NULL)
718 UINT btnw = 20, btnh = 18, btnarea = 1 + btnw + 1;
719 HFONT newFont, oldFont;
729 info.lpText = wszTitle;
762 mt.cbSize =
sizeof(mt);
765 ERR(
"Can't get system parameters !\n");
784 for(
i = 0;
i < numBands;
i++)
791 *pdwBandID = realInfo->
fBandID;
810 hResult = dockingWindow->ShowDW(
TRUE);
817 if (
index != 0xffffffff)
825 if (
index != 0xffffffff)
835 return ShellObjectCreatorInit<CBaseBarSite, BOOL>(bVertical,
riid,
ppv);
HRESULT CBaseBarSite_CreateInstance(REFIID riid, void **ppv, BOOL bVertical)
#define STDMETHODCALLTYPE
CComPtr< IUnknown > fTheBar
STDMETHOD() EnumBands(UINT uBand, DWORD *pdwBandID) override
STDMETHOD() GetSize(DWORD dwWhich, LPRECT prc) override
STDMETHOD() IsDirty() override
HRESULT InsertBar(IUnknown *newBar)
HRESULT FindBandByGUID(REFIID pGuid, DWORD *pdwBandID)
HRESULT Initialize(BOOL vert)
STDMETHOD() GetSizeMax(ULARGE_INTEGER *pcbSize) override
STDMETHOD() OnFocusChangeIS(IUnknown *punkObj, BOOL fSetFocus) override
STDMETHOD() SetBandState(DWORD dwBandID, DWORD dwMask, DWORD dwState) override
LRESULT OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCustomDraw(LPNMCUSTOMDRAW pnmcd)
STDMETHOD() Save(IStream *pStm, BOOL fClearDirty) override
STDMETHOD() UIActivateDBC(DWORD dwState) override
STDMETHOD() RemoveBand(DWORD dwBandID) override
STDMETHOD() GetClassID(CLSID *pClassID) override
CBarInfo * fCurrentActiveBar
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
STDMETHOD() SetBandSiteInfo(const BANDSITEINFO *pbsinfo) override
CComPtr< IUnknown > fDeskBarSite
STDMETHOD() Load(IStream *pStm) override
STDMETHOD() AddBand(IUnknown *punk) override
STDMETHOD() SetModeDBC(DWORD dwMode) override
LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() GetBandSiteInfo(BANDSITEINFO *pbsinfo) override
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
HRESULT GetInternalBandInfo(UINT uBand, REBARBANDINFO *pBandInfo)
HRESULT ShowBand(DWORD dwBandID)
STDMETHOD() IsWindowOwner(HWND hWnd) override
STDMETHOD() QueryService(REFGUID guidService, REFIID riid, void **ppvObject) override
STDMETHOD() ContextSensitiveHelp(BOOL fEnterMode) override
STDMETHOD() SetDeskBarSite(IUnknown *punkSite) override
STDMETHOD() UIActivateIO(BOOL fActivate, LPMSG lpMsg) override
STDMETHOD() QueryBand(DWORD dwBandID, IDeskBand **ppstb, DWORD *pdwState, LPWSTR pszName, int cchName) override
STDMETHOD() TranslateAcceleratorIO(LPMSG lpMsg) override
STDMETHOD() OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override
STDMETHOD() GetWindow(HWND *lphwnd) override
STDMETHOD() GetBandObject(DWORD dwBandID, REFIID riid, void **ppv) override
STDMETHOD() HasFocusIO() override
#define IDM_BASEBAR_CLOSE
INT WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI IUnknown_UIActivateIO(IUnknown *unknown, BOOL activate, LPMSG msg)
HRESULT WINAPI IUnknown_TranslateAcceleratorIO(IUnknown *lpUnknown, LPMSG lpMsg)
HRESULT WINAPI IUnknown_HasFocusIO(IUnknown *lpUnknown)
HRESULT WINAPI IUnknown_Exec(IUnknown *lpUnknown, REFGUID pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
HRESULT WINAPI IUnknown_OnFocusChangeIS(LPUNKNOWN lpUnknown, LPUNKNOWN pFocusObject, BOOL bFocus)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
struct IOleCommandTarget::_tagOLECMD OLECMD
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static const struct bandInfoStruct bandInfo[9]
#define COM_INTERFACE_ENTRY_IID(iid, x)
#define MESSAGE_HANDLER(msg, func)
#define BEGIN_MSG_MAP(theClass)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static IActiveScriptSite * site
const GUID IID_IOleWindow
const GUID IID_IPersistStream
#define CDDS_ITEMPREPAINT
#define CDRF_NOTIFYITEMDRAW
#define TBSTYLE_TRANSPARENT
#define TOOLBARCLASSNAMEW
#define CCS_NOPARENTALIGN
#define TB_SETMAXTEXTROWS
#define RBS_VERTICALGRIPPER
#define RBBS_VARIABLEHEIGHT
#define IsEqualGUID(rguid1, rguid2)
#define IsEqualIID(riid1, riid2)
_In_ PSID _Out_writes_to_opt_ cchName LPSTR _Inout_ LPDWORD cchName
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define SubclassWindow(hwnd, lpfn)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
#define CreateFontIndirect
DWORD WINAPI GetSysColor(_In_ int)
#define LR_LOADTRANSPARENT
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
#define SystemParametersInfo
int WINAPI GetSystemMetrics(_In_ int)
#define IID_PPV_ARG(Itype, ppType)