110{
113 RECT rc = {0,0,0,0}, clr, wir;
114 char spr[100], sir[100];
116
117
118 static HWND hwndButton = 0;
120
122 {
123
125 {
130
131
133 {
136 }
137 else
138 {
141 }
143
144#if 0
145
151
155
163
164#endif
165
167 return 0;
168 }
169
171 {
177
178
179
186 {
189 }
190 else
191 {
194 }
197 return 0;
198 }
199
201 {
207
208
209
218 return 0;
219 }
220
221
223 {
229
235
241
243 break;
244 }
246 {
252
258
264
266 break;
267 }
269 {
275
281
287
289 break;
290 }
292 {
298
304
310
312 break;
313 }
315 {
321
327
333
335 break;
336 }
338 {
344
350
356
358 break;
359 }
360
362 {
363 int fwKeys;
369
374
380
385
390
391 switch ( fwKeys )
392 {
395 break;
398 break;
402 break;
406 break;
410 break;
411 }
413 break;
414 }
415
417 {
418 int nPos;
421 int nScrollCode;
429
430 Scrollparameter.
cbSize =
sizeof(Scrollparameter);
433
439
440 switch ( nScrollCode )
441 {
444 Scrollparameter.
nPos = Scrollparameter.
nPos;
445 break;
448 Scrollparameter.
nPos = Scrollparameter.
nMin;
449 break;
452 Scrollparameter.
nPos = Scrollparameter.
nMax;
453 break;
456 Scrollparameter.
nPos--;
457 break;
460 Scrollparameter.
nPos++;
461 break;
464 Scrollparameter.
nPos -= Scrollparameter.
nPage;
465 break;
468 Scrollparameter.
nPos += Scrollparameter.
nPage;
469 break;
473 break;
477 break;
478 }
479
483 &Scrollparameter,
484 1
485 );
489 return 0;
490 }
491
493 {
494 int nPos;
497 int nScrollCode;
505
506 Scrollparameter.
cbSize =
sizeof(Scrollparameter);
509
515
516 switch ( nScrollCode )
517 {
520 Scrollparameter.
nPos = Scrollparameter.
nPos;
521 break;
524 Scrollparameter.
nPos = Scrollparameter.
nMin;
525 break;
528 Scrollparameter.
nPos = Scrollparameter.
nMax;
529 break;
532 Scrollparameter.
nPos--;
533 break;
536 Scrollparameter.
nPos++;
537 break;
540 Scrollparameter.
nPos -= Scrollparameter.
nPage;
541 break;
544 Scrollparameter.
nPos += Scrollparameter.
nPage;
545 break;
549 break;
553 break;
554 }
555
559 &Scrollparameter,
560 1
561 );
565 return 0;
566 }
567
570 {
573 break;
576 break;
577 }
578 break;
579
590 break;
591
593 {
596
599
606
613
616
617
618
619
620
621
622
626 cx =
tm.tmAveCharWidth * 30;
627 cy = (
tm.tmHeight +
tm.tmExternalLeading) * 2;
629
630
632 "button",
633 "Click Here",
640 );
641
642 return 0;
643 break;
644 }
645
648 TextOut(
hDC, 10, 10,
"Hello World from ReactOS!",
649 strlen(
"Hello World from ReactOS!"));
650 TextOut(
hDC, 10, 80,
"Press Ctrl+C or Ctrl+Alt+F1 to test Hotkey support.",
651 strlen(
"Press Ctrl+C or Ctrl+Alt+F1 to test Hotkey support."));
654 sprintf(spr,
"%lu,%lu,%lu,%lu ", clr.left, clr.top, clr.right, clr.bottom);
655 sprintf(sir,
"%lu,%lu,%lu,%lu ", wir.left, wir.top, wir.right, wir.bottom);
658
659
660
664
666 return 0;
667 break;
668
670
671
672
673 if (hwndButton &&
676 )
677 {
681 hwndButton,
683 }
684 break;
685
687
688
689
693 {
694
696 }
697 return 0;
698 break;
699
700 default:
702 }
703 return 0;
704}
ACPI_SIZE strlen(const char *String)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
#define sprintf(buf, format,...)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
_Out_opt_ int _Out_opt_ int * cy
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
#define SYSTEM_FIXED_FONT
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI GetDC(_In_opt_ HWND)
#define MB_ICONINFORMATION
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)