mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:23:04 +00:00
[CLIPBRD] Improvements for the Clipboard Viewer.
- Improve the scrolling support for bitmaps, DIBs and text formats. This completes the work started in CORE-10679 by Ricardo Hanke. Includes scrolling with the keyboard and the mouse wheel. - Add support for the CF_DSP* clipboard formats, as well as CF_TEXT and CF_OEMTEXT. - Add support for owner-display clipboard format CF_OWNERDISPLAY. - Realize any palette found in the clipboard (CF_PALETTE) before displaying the clipboard data format we want. - Remove dead code. - Update the file headers.
This commit is contained in:
parent
5a00192870
commit
ebe3d5273e
12 changed files with 1000 additions and 546 deletions
|
@ -1,18 +1,20 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Clipboard Viewer
|
||||
* FILE: base/applications/clipbrd/winutils.h
|
||||
* PURPOSE: Miscellaneous helper functions.
|
||||
* PROGRAMMERS: Ricardo Hanke
|
||||
* PROJECT: ReactOS Clipboard Viewer
|
||||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||
* PURPOSE: Display helper functions.
|
||||
* COPYRIGHT: Copyright 2015-2018 Ricardo Hanke
|
||||
* Copyright 2015-2018 Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
void ShowLastWin32Error(HWND hwndParent);
|
||||
void BringWindowToFront(HWND hWnd);
|
||||
int DrawTextFromResource(HINSTANCE hInstance, UINT uID, HDC hDC, LPRECT lpRect, UINT uFormat);
|
||||
int MessageBoxRes(HWND hWnd, HINSTANCE hInstance, UINT uText, UINT uCaption, UINT uType);
|
||||
void DrawTextFromClipboard(HDC hDC, LPRECT lpRect, UINT uFormat);
|
||||
void BitBltFromClipboard(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int nXSrc, int nYSrc, DWORD dwRop);
|
||||
void SetDIBitsToDeviceFromClipboard(UINT uFormat, HDC hdc, int XDest, int YDest, int XSrc, int YSrc, UINT uStartScan, UINT fuColorUse);
|
||||
void DrawTextFromResource(HINSTANCE hInstance, UINT uID, HDC hDC, LPRECT lpRect, UINT uFormat);
|
||||
void DrawTextFromClipboard(UINT uFormat, PAINTSTRUCT ps, SCROLLSTATE state);
|
||||
void BitBltFromClipboard(PAINTSTRUCT ps, SCROLLSTATE state, DWORD dwRop);
|
||||
void SetDIBitsToDeviceFromClipboard(UINT uFormat, PAINTSTRUCT ps, SCROLLSTATE state, UINT fuColorUse);
|
||||
void PlayMetaFileFromClipboard(HDC hdc, const RECT *lpRect);
|
||||
void PlayEnhMetaFileFromClipboard(HDC hdc, const RECT *lpRect);
|
||||
UINT RealizeClipboardPalette(HWND hWnd);
|
||||
BOOL RealizeClipboardPalette(HDC hdc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue