1 | /* $Id: winaccel.cpp,v 1.2 1999-07-18 18:04:30 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Win32 accelartor key functions for OS/2
|
---|
4 | *
|
---|
5 | * Copyright 1999 Sander van Leeuwen
|
---|
6 | *
|
---|
7 | *
|
---|
8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
9 | *
|
---|
10 | */
|
---|
11 | #include <os2win.h>
|
---|
12 | #include <misc.h>
|
---|
13 |
|
---|
14 | //******************************************************************************
|
---|
15 | //TODO: Do more than just return?
|
---|
16 | //******************************************************************************
|
---|
17 | int WIN32API TranslateAcceleratorA(HWND hwnd, HACCEL haccel, LPMSG lpmsg)
|
---|
18 | {
|
---|
19 | //CB: needs more work
|
---|
20 | //WinTranslateAccel();
|
---|
21 | //get hab, translate
|
---|
22 | //SvL: OS/2 automatically translates accelerator keys
|
---|
23 | return FALSE;
|
---|
24 | }
|
---|
25 | //******************************************************************************
|
---|
26 | //******************************************************************************
|
---|
27 | int WIN32API TranslateAccelerator( HWND arg1, HACCEL arg2, LPMSG arg3)
|
---|
28 | {
|
---|
29 | //SvL: OS/2 automatically translates accelerator keys
|
---|
30 | return FALSE;
|
---|
31 | }
|
---|
32 | //******************************************************************************
|
---|
33 | //******************************************************************************
|
---|
34 | int WIN32API TranslateAcceleratorW( HWND arg1, HACCEL arg2, LPMSG arg3)
|
---|
35 | {
|
---|
36 | //SvL: OS/2 automatically translates accelerator keys
|
---|
37 | return FALSE;
|
---|
38 | }
|
---|
39 | //******************************************************************************
|
---|
40 | //******************************************************************************
|
---|
41 | BOOL WIN32API TranslateMDISysAccel( HWND arg1, LPMSG arg2)
|
---|
42 | {
|
---|
43 | #ifdef DEBUG
|
---|
44 | //// WriteLog("USER32: TranslateMDISysAccel\n");
|
---|
45 | #endif
|
---|
46 | return O32_TranslateMDISysAccel(arg1, arg2);
|
---|
47 | }
|
---|
48 | //******************************************************************************
|
---|
49 | //******************************************************************************
|
---|
50 | HACCEL WIN32API CreateAcceleratorTableA( LPACCEL arg1, int arg2)
|
---|
51 | {
|
---|
52 | #ifdef DEBUG
|
---|
53 | WriteLog("USER32: CreateAcceleratorTableA\n");
|
---|
54 | #endif
|
---|
55 | return O32_CreateAcceleratorTable(arg1, arg2);
|
---|
56 | }
|
---|
57 | //******************************************************************************
|
---|
58 | //******************************************************************************
|
---|
59 | HACCEL WIN32API CreateAcceleratorTableW( LPACCEL arg1, int arg2)
|
---|
60 | {
|
---|
61 | #ifdef DEBUG
|
---|
62 | WriteLog("USER32: CreateAcceleratorTableW\n");
|
---|
63 | #endif
|
---|
64 | // NOTE: This will not work as is (needs UNICODE support)
|
---|
65 | return O32_CreateAcceleratorTable(arg1, arg2);
|
---|
66 | }
|
---|
67 | //******************************************************************************
|
---|
68 | //******************************************************************************
|
---|
69 | BOOL WIN32API DestroyAcceleratorTable( HACCEL arg1)
|
---|
70 | {
|
---|
71 | #ifdef DEBUG
|
---|
72 | WriteLog("USER32: DestroyAcceleratorTable\n");
|
---|
73 | #endif
|
---|
74 | return O32_DestroyAcceleratorTable(arg1);
|
---|
75 | }
|
---|
76 | //******************************************************************************
|
---|
77 | //******************************************************************************
|
---|
78 | int WIN32API CopyAcceleratorTableA(HACCEL hAccelSrc, LPACCEL lpAccelDest,
|
---|
79 | int cAccelEntries)
|
---|
80 | {
|
---|
81 | #ifdef DEBUG
|
---|
82 | WriteLog("USER32: CopyAcceleratorTableA, not implemented\n");
|
---|
83 | #endif
|
---|
84 | return(0);
|
---|
85 | }
|
---|
86 | //******************************************************************************
|
---|
87 | //TODO:
|
---|
88 | //******************************************************************************
|
---|
89 | int WIN32API CopyAcceleratorTableW(HACCEL hAccelSrc, LPACCEL lpAccelDest,
|
---|
90 | int cAccelEntries)
|
---|
91 | {
|
---|
92 | #ifdef DEBUG
|
---|
93 | WriteLog("USER32: CopyAcceleratorTableW, not implemented\n");
|
---|
94 | #endif
|
---|
95 | return(0);
|
---|
96 | }
|
---|
97 | //******************************************************************************
|
---|
98 | //******************************************************************************
|
---|