00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __OSLIBMSG_H__
00013 #define __OSLIBMSG_H__
00014
00015 ULONG TranslateWinMsg(ULONG msg);
00016
00017 #define MSG_NOREMOVE 0
00018 #define MSG_REMOVE 1
00019
00020 #ifdef OS2DEF_INCLUDED
00021 BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fMsgRemoved);
00022 void WinToOS2MsgTranslate(MSG *winMsg, QMSG *os2Msg, BOOL isUnicode);
00023
00024 #endif
00025
00026 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin,
00027 UINT uMsgFilterMax, BOOL isUnicode = FALSE);
00028 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin,
00029 UINT uMsgFilterMax, DWORD fRemove, BOOL isUnicode = FALSE);
00030 void OSLibWinPostQuitMessage(ULONG nExitCode);
00031 LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode = FALSE);
00032 BOOL OSLibWinTranslateMessage(MSG *msg);
00033
00034 ULONG OSLibWinQueryMsgTime();
00035 BOOL OSLibWinWaitMessage();
00036 BOOL OSLibWinInSendMessage();
00037 DWORD OSLibWinGetMessagePos();
00038 LONG OSLibWinGetMessageTime();
00039 BOOL OSLibWinReplyMessage(ULONG result);
00040 ULONG OSLibWinQueryQueueStatus();
00041
00042 void SetMenuDoubleClick(BOOL fSet);
00043
00044 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode);
00045 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode);
00046 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode);
00047 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend);
00048
00049
00050 BOOL OSLibPostMessageDirect(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam);
00051
00052 #define WINWM_NULL 0x0000
00053 #define WINWM_CREATE 0x0001
00054 #define WINWM_DESTROY 0x0002
00055 #define WINWM_MOVE 0x0003
00056 #define WINWM_SIZE 0x0005
00057 #define WINWM_ACTIVATE 0x0006
00058 #define WINWM_SETFOCUS 0x0007
00059 #define WINWM_KILLFOCUS 0x0008
00060 #define WINWM_ENABLE 0x000A
00061 #define WINWM_SETREDRAW 0x000B
00062 #define WINWM_SETTEXT 0x000C
00063 #define WINWM_GETTEXT 0x000D
00064 #define WINWM_GETTEXTLENGTH 0x000E
00065 #define WINWM_PAINT 0x000F
00066 #define WINWM_CLOSE 0x0010
00067 #define WINWM_QUERYENDSESSION 0x0011
00068 #define WINWM_QUIT 0x0012
00069 #define WINWM_QUERYOPEN 0x0013
00070 #define WINWM_ERASEBKGND 0x0014
00071 #define WINWM_SYSCOLORCHANGE 0x0015
00072 #define WINWM_ENDSESSION 0x0016
00073 #define WINWM_SHOWWINDOW 0x0018
00074 #define WINWM_WININICHANGE 0x001A
00075 #define WINWM_DEVMODECHANGE 0x001B
00076 #define WINWM_ACTIVATEAPP 0x001C
00077 #define WINWM_FONTCHANGE 0x001D
00078 #define WINWM_TIMECHANGE 0x001E
00079 #define WINWM_CANCELMODE 0x001F
00080 #define WINWM_SETCURSOR 0x0020
00081 #define WINWM_MOUSEACTIVATE 0x0021
00082 #define WINWM_CHILDACTIVATE 0x0022
00083 #define WINWM_QUEUESYNC 0x0023
00084 #define WINWM_GETMINMAXINFO 0x0024
00085 #define WINWM_PAINTICON 0x0026
00086 #define WINWM_ICONERASEBKGND 0x0027
00087 #define WINWM_NEXTDLGCTL 0x0028
00088 #define WINWM_SPOOLERSTATUS 0x002A
00089 #define WINWM_DRAWITEM 0x002B
00090 #define WINWM_MEASUREITEM 0x002C
00091 #define WINWM_DELETEITEM 0x002D
00092 #define WINWM_VKEYTOITEM 0x002E
00093 #define WINWM_CHARTOITEM 0x002F
00094 #define WINWM_SETFONT 0x0030
00095 #define WINWM_GETFONT 0x0031
00096 #define WINWM_SETHOTKEY 0x0032
00097 #define WINWM_GETHOTKEY 0x0033
00098 #define WINWM_QUERYDRAGICON 0x0037
00099 #define WINWM_COMPAREITEM 0x0039
00100 #define WINWM_COMPACTING 0x0041
00101 #define WINWM_WINDOWPOSCHANGING 0x0046
00102 #define WINWM_WINDOWPOSCHANGED 0x0047
00103 #define WINWM_POWER 0x0048
00104 #define WINWM_COPYDATA 0x004A
00105 #define WINWM_CANCELJOURNAL 0x004B
00106 #define WINWM_CONTEXTMENU 0x007b
00107 #define WINWM_STYLECHANGING 0x007c
00108 #define WINWM_STYLECHANGED 0x007d
00109 #define WINWM_DISPLAYCHANGE 0x007e
00110 #define WINWM_GETICON 0x007f
00111 #define WINWM_SETICON 0x0080
00112 #define WINWM_NCCREATE 0x0081
00113 #define WINWM_NCDESTROY 0x0082
00114 #define WINWM_NCCALCSIZE 0x0083
00115 #define WINWM_NCHITTEST 0x0084
00116 #define WINWM_NCPAINT 0x0085
00117 #define WINWM_NCACTIVATE 0x0086
00118 #define WINWM_GETDLGCODE 0x0087
00119 #define WINWM_NCMOUSEMOVE 0x00A0
00120 #define WINWM_NCLBUTTONDOWN 0x00A1
00121 #define WINWM_NCLBUTTONUP 0x00A2
00122 #define WINWM_NCLBUTTONDBLCLK 0x00A3
00123 #define WINWM_NCRBUTTONDOWN 0x00A4
00124 #define WINWM_NCRBUTTONUP 0x00A5
00125 #define WINWM_NCRBUTTONDBLCLK 0x00A6
00126 #define WINWM_NCMBUTTONDOWN 0x00A7
00127 #define WINWM_NCMBUTTONUP 0x00A8
00128 #define WINWM_NCMBUTTONDBLCLK 0x00A9
00129 #define WINWM_KEYFIRST 0x0100
00130 #define WINWM_KEYDOWN 0x0100
00131 #define WINWM_KEYUP 0x0101
00132 #define WINWM_CHAR 0x0102
00133 #define WINWM_DEADCHAR 0x0103
00134 #define WINWM_SYSKEYDOWN 0x0104
00135 #define WINWM_SYSKEYUP 0x0105
00136 #define WINWM_SYSCHAR 0x0106
00137 #define WINWM_SYSDEADCHAR 0x0107
00138 #define WINWM_KEYLAST 0x0108
00139 #define WINWM_INITDIALOG 0x0110
00140 #define WINWM_COMMAND 0x0111
00141 #define WINWM_SYSCOMMAND 0x0112
00142 #define WINWM_TIMER 0x0113
00143 #define WINWM_HSCROLL 0x0114
00144 #define WINWM_VSCROLL 0x0115
00145 #define WINWM_INITMENU 0x0116
00146 #define WINWM_INITMENUPOPUP 0x0117
00147 #define WINWM_SYSTIMER 0x0118
00148 #define WINWM_MENUSELECT 0x011F
00149 #define WINWM_MENUCHAR 0x0120
00150 #define WINWM_ENTERIDLE 0x0121
00151 #define WINWM_CTLCOLORMSGBOX 0x0132
00152 #define WINWM_CTLCOLOREDIT 0x0133
00153 #define WINWM_CTLCOLORLISTBOX 0x0134
00154 #define WINWM_CTLCOLORBTN 0x0135
00155 #define WINWM_CTLCOLORDLG 0x0136
00156 #define WINWM_CTLCOLORSCROLLBAR 0x0137
00157 #define WINWM_CTLCOLORSTATIC 0x0138
00158 #define WINWM_MOUSEFIRST 0x0200
00159 #define WINWM_MOUSEMOVE 0x0200
00160 #define WINWM_LBUTTONDOWN 0x0201
00161 #define WINWM_LBUTTONUP 0x0202
00162 #define WINWM_LBUTTONDBLCLK 0x0203
00163 #define WINWM_RBUTTONDOWN 0x0204
00164 #define WINWM_RBUTTONUP 0x0205
00165 #define WINWM_RBUTTONDBLCLK 0x0206
00166 #define WINWM_MBUTTONDOWN 0x0207
00167 #define WINWM_MBUTTONUP 0x0208
00168 #define WINWM_MBUTTONDBLCLK 0x0209
00169 #define WINWM_MOUSEWHEEL 0x020A
00170 #define WINWM_MOUSELAST 0x020A
00171 #define WINWM_PARENTNOTIFY 0x0210
00172 #define WINWM_ENTERMENULOOP 0x0211
00173 #define WINWM_EXITMENULOOP 0x0212
00174 #define WINWM_MDICREATE 0x0220
00175 #define WINWM_MDIDESTROY 0x0221
00176 #define WINWM_MDIACTIVATE 0x0222
00177 #define WINWM_MDIRESTORE 0x0223
00178 #define WINWM_MDINEXT 0x0224
00179 #define WINWM_MDIMAXIMIZE 0x0225
00180 #define WINWM_MDITILE 0x0226
00181 #define WINWM_MDICASCADE 0x0227
00182 #define WINWM_MDIICONARRANGE 0x0228
00183 #define WINWM_MDIGETACTIVE 0x0229
00184 #define WINWM_MDISETMENU 0x0230
00185 #define WINWM_DROPFILES 0x0233
00186 #define WINWM_MDIREFRESHMENU 0x0234
00187 #define WINWM_CUT 0x0300
00188 #define WINWM_COPY 0x0301
00189 #define WINWM_PASTE 0x0302
00190 #define WINWM_CLEAR 0x0303
00191 #define WINWM_UNDO 0x0304
00192 #define WINWM_RENDERFORMAT 0x0305
00193 #define WINWM_RENDERALLFORMATS 0x0306
00194 #define WINWM_DESTROYCLIPBOARD 0x0307
00195 #define WINWM_DRAWCLIPBOARD 0x0308
00196 #define WINWM_PAINTCLIPBOARD 0x0309
00197 #define WINWM_VSCROLLCLIPBOARD 0x030A
00198 #define WINWM_SIZECLIPBOARD 0x030B
00199 #define WINWM_ASKCBFORMATNAME 0x030C
00200 #define WINWM_CHANGECBCHAIN 0x030D
00201 #define WINWM_HSCROLLCLIPBOARD 0x030E
00202 #define WINWM_QUERYNEWPALETTE 0x030F
00203 #define WINWM_PALETTEISCHANGING 0x0310
00204 #define WINWM_PALETTECHANGED 0x0311
00205 #define WINWM_HOTKEY 0x0312
00206 #define WINWM_DDE_FIRST 0x03E0
00207 #define WINWM_DDE_INITIATE (WINWM_DDE_FIRST)
00208 #define WINWM_DDE_TERMINATE (WINWM_DDE_FIRST + 1)
00209 #define WINWM_DDE_ADVISE (WINWM_DDE_FIRST + 2)
00210 #define WINWM_DDE_UNADVISE (WINWM_DDE_FIRST + 3)
00211 #define WINWM_DDE_ACK (WINWM_DDE_FIRST + 4)
00212 #define WINWM_DDE_DATA (WINWM_DDE_FIRST + 5)
00213 #define WINWM_DDE_REQUEST (WINWM_DDE_FIRST + 6)
00214 #define WINWM_DDE_POKE (WINWM_DDE_FIRST + 7)
00215 #define WINWM_DDE_EXECUTE (WINWM_DDE_FIRST + 8)
00216 #define WINWM_DDE_LAST (WINWM_DDE_FIRST + 8)
00217 #define WINWM_USER 0x0400
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375 #endif //__OSLIBMSG_H__