64#define IsOnlySet(flags) (infoPtr->CurrMod == (flags))
69 TRACE(
"(infoPtr=%p)\n", infoPtr);
90 TRACE(
"() Modifiers are valid\n");
141 TRACE(
"(infoPtr=%p hdc=%p)\n", infoPtr,
hdc);
151 Modifier = infoPtr->
InvMod;
164 &
KeyName[NameLen], 64 - NameLen);
171 &
KeyName[NameLen], 64 - NameLen);
203 TRACE(
"(infoPtr=%p) Modifiers: 0x%x, Virtual Key: %d\n", infoPtr,
214 TRACE(
"(infoPtr=%p hotKey=%x) Modifiers: 0x%x, Virtual Key: %d\n", infoPtr,
224 TRACE(
"(infoPtr=%p) Invalid Modifiers: 0x%x, If Invalid: 0x%x\n", infoPtr,
253 HBRUSH hBrush, hSolidBrush =
NULL;
294 wOldHotKey = infoPtr->
HotKey;
330 if ((wOldHotKey != infoPtr->
HotKey) || (bOldMod != infoPtr->
CurrMod))
359 infoPtr->
CurrMod &= ~HOTKEYF_SHIFT;
362 infoPtr->
CurrMod &= ~HOTKEYF_CONTROL;
365 infoPtr->
CurrMod &= ~HOTKEYF_ALT;
371 if (bOldMod != infoPtr->
CurrMod)
414 infoPtr = heap_alloc_zero (
sizeof(*infoPtr));
532 ERR(
"unknown msg %04x wp=%08lx lp=%08lx\n",
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN
COMCTL32_SysColor comctl32_color
static LRESULT HOTKEY_SetFont(HOTKEY_INFO *infoPtr, HFONT hFont, BOOL redraw)
static void HOTKEY_Paint(HOTKEY_INFO *infoPtr, HDC hdc)
static LRESULT HOTKEY_GetFont(const HOTKEY_INFO *infoPtr)
static LRESULT HOTKEY_GetHotKey(const HOTKEY_INFO *infoPtr)
static LRESULT HOTKEY_KeyDown(HOTKEY_INFO *infoPtr, DWORD key, DWORD flags)
static void HOTKEY_DrawHotKey(HOTKEY_INFO *infoPtr, HDC hdc, LPCWSTR KeyName, WORD NameLen)
static LRESULT HOTKEY_LButtonDown(const HOTKEY_INFO *infoPtr)
static LRESULT HOTKEY_KeyUp(HOTKEY_INFO *infoPtr, DWORD key)
void HOTKEY_Register(void)
static LRESULT HOTKEY_EraseBackground(const HOTKEY_INFO *infoPtr, HDC hdc)
static const WCHAR HOTKEY_plussep[]
struct tagHOTKEY_INFO HOTKEY_INFO
static void HOTKEY_SetHotKey(HOTKEY_INFO *infoPtr, WORD hotKey)
static LRESULT HOTKEY_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
static BOOL HOTKEY_IsCombInv(const HOTKEY_INFO *infoPtr)
static void HOTKEY_Refresh(HOTKEY_INFO *infoPtr, HDC hdc)
static LRESULT HOTKEY_Destroy(HOTKEY_INFO *infoPtr)
static LRESULT HOTKEY_Create(HOTKEY_INFO *infoPtr, const CREATESTRUCTW *lpcs)
static LRESULT WINAPI HOTKEY_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void HOTKEY_Unregister(void)
static LRESULT HOTKEY_KillFocus(HOTKEY_INFO *infoPtr)
static void HOTKEY_SetRules(HOTKEY_INFO *infoPtr, WORD invComb, WORD invMod)
static LRESULT HOTKEY_SetFocus(HOTKEY_INFO *infoPtr)
#define memcpy(s1, s2, n)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
void redraw(int x, int y, int cx, int cy)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
HGDIOBJ WINAPI GetStockObject(_In_ int)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI TextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_reads_(c) LPCWSTR lpString, _In_ int c)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI GetTextExtentPoint32W(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE psizl)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
#define GetWindowLongPtrW
BOOL WINAPI ShowCaret(_In_opt_ HWND)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
UINT WINAPI MapVirtualKeyW(_In_ UINT, _In_ UINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HWND WINAPI SetFocus(_In_opt_ HWND)
int WINAPI GetKeyNameTextW(_In_ LONG lParam, _Out_writes_(cchSize) LPWSTR lpString, _In_ int cchSize)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetDlgCtrlID(_In_ HWND)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI SetCaretPos(_In_ int, _In_ int)
BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int)
BOOL WINAPI DestroyCaret(void)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define SetWindowLongPtrW
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)