93 clientWidth = clientRect.
right - clientRect.
left;
94 clientHeight = clientRect.
bottom - clientRect.
top;
95 clientSize =
min(clientWidth, clientHeight);
112 if (pdbi->
dwMask & DBIM_MINSIZE)
117 if (pdbi->
dwMask & DBIM_MAXSIZE)
122 if (pdbi->
dwMask & DBIM_INTEGRAL)
127 if (pdbi->
dwMask & DBIM_ACTUAL)
132 if (pdbi->
dwMask & DBIM_TITLE)
134 if (pdbi->
dwMask & DBIM_MODEFLAGS)
136 if (pdbi->
dwMask & DBIM_BKCOLOR)
152 if (pUnkSite ==
NULL)
166 hResult = oleWindow->GetWindow(&parentWindow);
181 hResult = serviceProvider->QueryService(
184 hResult = profferService->ProfferService(SID_SBrandBand,
207 return fSite.
p->QueryInterface(
riid, ppvSite);
272 if (pClassID ==
NULL)
274 *pClassID = CLSID_BrandBand;
320 if (
IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
323 else if (
IsEqualIID(*pguidCmdGroup, CGID_BrandCmdGroup))
348 return serviceProvider->QueryService(guidService,
riid,
ppvObject);
368 DISPPARAMS *pDispParams,
VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
370 if (pDispParams ==
NULL)
372 switch (dispIdMember)
399 POINT destinationPoint;
416 tempRect.
bottom = destinationPoint.
y;
426 tempRect.
top = destinationPoint.
y;
427 tempRect.
right = destinationPoint.
x;
432 tempRect.
top = destinationPoint.
y;
#define STDMETHODCALLTYPE
static const int gMediumImageSize
void FillSolidRect(HDC dc, const RECT *bounds)
static const int gTrueColorResourceBase
static const int gLargeImageSize
static const int g256ColorResourceBase
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
STDMETHOD() Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override
STDMETHOD() GetSizeMax(ULARGE_INTEGER *pcbSize) override
STDMETHOD() SetSite(IUnknown *pUnkSite) override
STDMETHOD() GetWindow(HWND *lphwnd) override
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override
STDMETHOD() GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override
LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() CloseDW(DWORD dwReserved) override
STDMETHOD() GetSite(REFIID riid, void **ppvSite) override
STDMETHOD() Save(IStream *pStm, BOOL fClearDirty) override
STDMETHOD() UIActivateIO(BOOL fActivate, LPMSG lpMsg) override
STDMETHOD() IsDirty() override
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
STDMETHOD() IsWindowOwner(HWND hWnd) override
CComPtr< IDockingWindowSite > fSite
LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnEraseBkgnd(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() HasFocusIO() override
STDMETHOD() ResizeBorderDW(const RECT *prcBorder, IUnknown *punkToolbarSite, BOOL fReserved) override
STDMETHOD() Load(IStream *pStm) override
STDMETHOD() QueryService(REFGUID guidService, REFIID riid, void **ppvObject) override
STDMETHOD() ShowDW(BOOL fShow) override
STDMETHOD() GetClassID(CLSID *pClassID) override
STDMETHOD() TranslateAcceleratorIO(LPMSG lpMsg) override
STDMETHOD() GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override
STDMETHOD() GetTypeInfoCount(UINT *pctinfo) override
STDMETHOD() ContextSensitiveHelp(BOOL fEnterMode) override
STDMETHOD() GetBandInfo(DWORD dwBandID, DWORD dwViewMode, DESKBANDINFO *pdbi) override
HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID *iid, DWORD *pdw)
HRESULT WINAPI AtlUnadvise(IUnknown *pUnkCP, const IID *iid, DWORD dw)
#define FAILED_UNEXPECTEDLY(hr)
DWORD WINAPI SHGetCurColorRes(void)
HWND WINAPI SHCreateWorkerWindowW(WNDPROC wndProc, HWND hWndParent, DWORD dwExStyle, DWORD dwStyle, HMENU hMenu, LONG_PTR wnd_extra)
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static VARIANTARG static DISPID
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
#define IsEqualIID(riid1, riid2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define SID_SShellBrowser
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
#define BBID_STARTANIMATION
#define BBID_STOPANIMATION
#define DISPID_DOWNLOADCOMPLETE
#define DISPID_DOWNLOADBEGIN
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define SubclassWindow(hwnd, lpfn)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)
HWND WINAPI GetFocus(void)
BOOL WINAPI IsWindow(_In_opt_ HWND)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
#define IID_PPV_ARG(Itype, ppType)