#include <windows.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
◆ ID_ACCEL1
◆ ID_ACCEL2
◆ ID_ACCEL3
◆ ID_ACCEL4
◆ VK_A
◆ MainWndProc()
Definition at line 112 of file accelerator.c.
113{
117
119 {
122
126 break;
127
130 break;
131
133
135 {
138 break;
139
142 break;
143
146 break;
147
150 break;
151
152 default:
154 break;
155 }
156
159 break;
160
161 default:
163 }
164 return 0;
165}
ACPI_SIZE strlen(const char *String)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define sprintf(buf, format,...)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI UpdateWindow(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
Referenced by WinMain().
◆ WinMain()
Definition at line 30 of file accelerator.c.
34{
38
50 {
53 return(1);
54 }
55
57 "Accelerator Test",
59 0,
60 0,
68 {
71 return(1);
72 }
73
74
75
76
77
79
81
85 {
86 fprintf(
stderr,
"CreateAcceleratorTable failed (last error 0x%lX)\n",
88 return(1);
89 }
90
92 {
94 {
97 }
98 }
99
101 {
102 fprintf(
stderr,
"DestroyAcceleratorTable failed (last error 0x%lX)\n",
104 return(1);
105 }
106
107
108
110}
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM)
static HACCEL hAcceleratorTable
static ACCEL Accelerators[4]
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CreateAcceleratorTable
BOOL WINAPI DestroyAcceleratorTable(_In_ HACCEL)
#define TranslateAccelerator
◆ Accelerators
◆ Event
◆ hAcceleratorTable