Ignore:
Timestamp:
Jul 4, 1999, 9:03:36 PM (26 years ago)
Author:
sandervl
Message:

Dialog changes + fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winuser.h

    r264 r265  
    1 /* $Id: winuser.h,v 1.2 1999-07-04 15:34:18 sandervl Exp $ */
     1/* $Id: winuser.h,v 1.3 1999-07-04 19:02:37 sandervl Exp $ */
    22
    33#ifndef __INCLUDE_WINUSER_H
     
    106106#endif
    107107
    108 #define FVIRTKEY        TRUE          /* Assumed to be == TRUE */
    109 #define FNOINVERT       0x02
    110 #define FSHIFT          0x04
    111 #define FCONTROL        0x08
    112 #define FALT            0x10
     108#define FVIRTKEY        TRUE          /* Assumed to be == TRUE */
     109#define FNOINVERT       0x02
     110#define FSHIFT          0x04
     111#define FCONTROL        0x08
     112#define FALT            0x10
    113113
    114114
     
    128128typedef struct
    129129{
    130         UINT    cbSize;
    131         INT     iTabLength;
    132         INT     iLeftMargin;
    133         INT     iRightMargin;
    134         UINT    uiLengthDrawn;
     130        UINT    cbSize;
     131        INT     iTabLength;
     132        INT     iLeftMargin;
     133        INT     iRightMargin;
     134        UINT    uiLengthDrawn;
    135135} DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
    136136
     
    239239
    240240  /* Dialog styles */
    241 #define DS_ABSALIGN             0x0001
    242 #define DS_SYSMODAL             0x0002
    243 #define DS_3DLOOK               0x0004  /* win95 */
    244 #define DS_FIXEDSYS             0x0008  /* win95 */
    245 #define DS_NOFAILCREATE         0x0010  /* win95 */
    246 #define DS_LOCALEDIT            0x0020
    247 #define DS_SETFONT              0x0040
    248 #define DS_MODALFRAME           0x0080
    249 #define DS_NOIDLEMSG            0x0100
    250 #define DS_SETFOREGROUND        0x0200  /* win95 */
    251 #define DS_CONTROL              0x0400  /* win95 */
    252 #define DS_CENTER               0x0800  /* win95 */
    253 #define DS_CENTERMOUSE          0x1000  /* win95 */
    254 #define DS_CONTEXTHELP          0x2000  /* win95 */
     241#define DS_ABSALIGN             0x0001
     242#define DS_SYSMODAL             0x0002
     243#define DS_3DLOOK               0x0004  /* win95 */
     244#define DS_FIXEDSYS             0x0008  /* win95 */
     245#define DS_NOFAILCREATE         0x0010  /* win95 */
     246#define DS_LOCALEDIT            0x0020
     247#define DS_SETFONT              0x0040
     248#define DS_MODALFRAME           0x0080
     249#define DS_NOIDLEMSG            0x0100
     250#define DS_SETFOREGROUND        0x0200  /* win95 */
     251#define DS_CONTROL              0x0400  /* win95 */
     252#define DS_CENTER               0x0800  /* win95 */
     253#define DS_CENTERMOUSE          0x1000  /* win95 */
     254#define DS_CONTEXTHELP          0x2000  /* win95 */
    255255
    256256
     
    338338#define OBM_OLD_CLOSE       32767
    339339
    340 #define OCR_BUMMER          100
    341 #define OCR_DRAGOBJECT      101
     340#define OCR_BUMMER          100
     341#define OCR_DRAGOBJECT      101
    342342
    343343#define OCR_NORMAL          32512
     
    432432
    433433/* New since win95 : EM_SETMARGIN parameters */
    434 #define EC_LEFTMARGIN   0x0001
    435 #define EC_RIGHTMARGIN  0x0002
    436 #define EC_USEFONTINFO  0xffff
     434#define EC_LEFTMARGIN   0x0001
     435#define EC_RIGHTMARGIN  0x0002
     436#define EC_USEFONTINFO  0xffff
    437437
    438438
     
    503503#define WM_TESTING              0x003a
    504504
    505 #define WM_OTHERWINDOWCREATED   0x003c
    506 #define WM_OTHERWINDOWDESTROYED 0x003d
    507 #define WM_ACTIVATESHELLWINDOW  0x003e
    508 
    509 #define WM_COMPACTING           0x0041
    510 
    511 #define WM_COMMNOTIFY           0x0044
    512 #define WM_WINDOWPOSCHANGING    0x0046
    513 #define WM_WINDOWPOSCHANGED     0x0047
    514 #define WM_POWER                0x0048
     505#define WM_OTHERWINDOWCREATED   0x003c
     506#define WM_OTHERWINDOWDESTROYED 0x003d
     507#define WM_ACTIVATESHELLWINDOW  0x003e
     508
     509#define WM_COMPACTING           0x0041
     510
     511#define WM_COMMNOTIFY           0x0044
     512#define WM_WINDOWPOSCHANGING    0x0046
     513#define WM_WINDOWPOSCHANGED     0x0047
     514#define WM_POWER                0x0048
    515515
    516516  /* Win32 4.0 messages */
    517 #define WM_COPYDATA             0x004a
    518 #define WM_CANCELJOURNAL        0x004b
    519 #define WM_NOTIFY               0x004e
     517#define WM_COPYDATA             0x004a
     518#define WM_CANCELJOURNAL        0x004b
     519#define WM_NOTIFY               0x004e
    520520#define WM_INPUTLANGCHANGEREQUEST       0x0050
    521521#define WM_INPUTLANGCHANGE              0x0051
     
    523523#define WM_HELP                         0x0053
    524524#define WM_USERCHANGED                  0x0054
    525 #define WM_HELP                 0x0053
    526 #define WM_NOTIFYFORMAT         0x0055
    527 
    528 #define WM_CONTEXTMENU          0x007b
    529 #define WM_STYLECHANGING        0x007c
    530 #define WM_STYLECHANGED         0x007d
     525#define WM_HELP                 0x0053
     526#define WM_NOTIFYFORMAT         0x0055
     527
     528#define WM_CONTEXTMENU          0x007b
     529#define WM_STYLECHANGING        0x007c
     530#define WM_STYLECHANGED         0x007d
    531531#define WM_DISPLAYCHANGE        0x007e
    532 #define WM_GETICON              0x007f
    533 #define WM_SETICON              0x0080
     532#define WM_GETICON              0x007f
     533#define WM_SETICON              0x0080
    534534
    535535  /* Non-client system messages */
     
    541541#define WM_NCACTIVATE       0x0086
    542542
    543 #define WM_GETDLGCODE       0x0087
    544 #define WM_SYNCPAINT        0x0088
    545 #define WM_SYNCTASK         0x0089
     543#define WM_GETDLGCODE       0x0087
     544#define WM_SYNCPAINT        0x0088
     545#define WM_SYNCTASK         0x0089
    546546
    547547  /* Non-client mouse messages */
     
    574574#define WM_IME_KEYLAST                  0x010F
    575575
    576 #define WM_INITDIALOG       0x0110 
     576#define WM_INITDIALOG       0x0110
    577577#define WM_COMMAND          0x0111
    578578#define WM_SYSCOMMAND       0x0112
    579 #define WM_TIMER            0x0113
    580 #define WM_SYSTIMER         0x0118
     579#define WM_TIMER            0x0113
     580#define WM_SYSTIMER         0x0118
    581581
    582582  /* scroll messages */
     
    604604
    605605  /* Mouse messages */
    606 #define WM_MOUSEMOVE        0x0200
    607 #define WM_LBUTTONDOWN      0x0201
    608 #define WM_LBUTTONUP        0x0202
     606#define WM_MOUSEMOVE        0x0200
     607#define WM_LBUTTONDOWN      0x0201
     608#define WM_LBUTTONUP        0x0202
    609609#define WM_LBUTTONDBLCLK    0x0203
    610 #define WM_RBUTTONDOWN      0x0204
    611 #define WM_RBUTTONUP        0x0205
     610#define WM_RBUTTONDOWN      0x0204
     611#define WM_RBUTTONUP        0x0205
    612612#define WM_RBUTTONDBLCLK    0x0206
    613 #define WM_MBUTTONDOWN      0x0207
    614 #define WM_MBUTTONUP        0x0208
     613#define WM_MBUTTONDOWN      0x0207
     614#define WM_MBUTTONUP        0x0208
    615615#define WM_MBUTTONDBLCLK    0x0209
    616 #define WM_MOUSEFIRST       WM_MOUSEMOVE
    617 #define WM_MOUSELAST        WM_MBUTTONDBLCLK
     616#define WM_MOUSEFIRST       WM_MOUSEMOVE
     617#define WM_MOUSELAST        WM_MBUTTONDBLCLK
    618618
    619619#define WM_PARENTNOTIFY     0x0210
    620620#define WM_ENTERMENULOOP    0x0211
    621621#define WM_EXITMENULOOP     0x0212
    622 #define WM_NEXTMENU         0x0213
     622#define WM_NEXTMENU         0x0213
    623623
    624624  /* Win32 4.0 messages */
    625 #define WM_SIZING           0x0214
     625#define WM_SIZING           0x0214
    626626#define WM_CAPTURECHANGED   0x0215
    627 #define WM_MOVING           0x0216
     627#define WM_MOVING           0x0216
    628628
    629629  /* MDI messages */
    630 #define WM_MDICREATE        0x0220
    631 #define WM_MDIDESTROY       0x0221
    632 #define WM_MDIACTIVATE      0x0222
    633 #define WM_MDIRESTORE       0x0223
    634 #define WM_MDINEXT          0x0224
    635 #define WM_MDIMAXIMIZE      0x0225
    636 #define WM_MDITILE          0x0226
    637 #define WM_MDICASCADE       0x0227
     630#define WM_MDICREATE        0x0220
     631#define WM_MDIDESTROY       0x0221
     632#define WM_MDIACTIVATE      0x0222
     633#define WM_MDIRESTORE       0x0223
     634#define WM_MDINEXT          0x0224
     635#define WM_MDIMAXIMIZE      0x0225
     636#define WM_MDITILE          0x0226
     637#define WM_MDICASCADE       0x0227
    638638#define WM_MDIICONARRANGE   0x0228
    639639#define WM_MDIGETACTIVE     0x0229
     
    641641
    642642  /* D&D messages */
    643 #define WM_DROPOBJECT       0x022A
     643#define WM_DROPOBJECT       0x022A
    644644#define WM_QUERYDROPOBJECT  0x022B
    645 #define WM_BEGINDRAG        0x022C
    646 #define WM_DRAGLOOP         0x022D
    647 #define WM_DRAGSELECT       0x022E
    648 #define WM_DRAGMOVE         0x022F
    649 #define WM_MDISETMENU       0x0230
     645#define WM_BEGINDRAG        0x022C
     646#define WM_DRAGLOOP         0x022D
     647#define WM_DRAGSELECT       0x022E
     648#define WM_DRAGMOVE         0x022F
     649#define WM_MDISETMENU       0x0230
    650650
    651651#define WM_ENTERSIZEMOVE    0x0231
    652652#define WM_EXITSIZEMOVE     0x0232
    653 #define WM_DROPFILES        0x0233
     653#define WM_DROPFILES        0x0233
    654654
    655655#define WM_IME_SETCONTEXT               0x0281
     
    680680#define WM_PALETTEISCHANGING 0x0310
    681681#define WM_PALETTECHANGED    0x0311
    682 #define WM_HOTKEY            0x0312
     682#define WM_HOTKEY            0x0312
    683683
    684684#define WM_PRINT             0x0317
     
    691691#define WM_SIZEPARENT       0x0361
    692692#define WM_SETMESSAGESTRING 0x0362
    693 #define WM_IDLEUPDATECMDUI  0x0363 
     693#define WM_IDLEUPDATECMDUI  0x0363
    694694#define WM_INITIALUPDATE    0x0364
    695695#define WM_COMMANDHELP      0x0365
     
    698698#define WM_RECALCPARENT     0x0368
    699699#define WM_SIZECHILD        0x0369
    700 #define WM_KICKIDLE         0x036A 
     700#define WM_KICKIDLE         0x036A
    701701#define WM_QUERYCENTERWND   0x036B
    702702#define WM_DISABLEMODAL     0x036C
    703 #define WM_FLOATSTATUS      0x036D 
    704 #define WM_ACTIVATETOPLEVEL 0x036E 
    705 #define WM_QUERY3DCONTROLS  0x036F 
     703#define WM_FLOATSTATUS      0x036D
     704#define WM_ACTIVATETOPLEVEL 0x036E
     705#define WM_QUERY3DCONTROLS  0x036F
    706706#define WM_SOCKET_NOTIFY    0x0373
    707707#define WM_SOCKET_DEAD      0x0374
     
    746746#define IDNO                7
    747747#define IDCLOSE             8
    748 #define IDHELP              9     
     748#define IDHELP              9
    749749
    750750/****** Window classes ******/
     
    785785DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
    786786
    787 typedef struct 
     787typedef struct
    788788{
    789789    HMENU   hWindowMenu;
     
    821821DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
    822822
    823 #define MDITILE_VERTICAL     0x0000   
     823#define MDITILE_VERTICAL     0x0000
    824824#define MDITILE_HORIZONTAL   0x0001
    825825#define MDITILE_SKIPDISABLED 0x0002
     
    843843#define GWL_HINSTANCE       GWW_HINSTANCE
    844844#define GWL_WNDPROC         (-4)
    845 #define DWL_MSGRESULT       0
    846 #define DWL_DLGPROC         4
    847 #define DWL_USER            8
     845#define DWL_MSGRESULT       0
     846#define DWL_DLGPROC         4
     847#define DWL_USER            8
    848848
    849849  /* GetWindow() constants */
    850 #define GW_HWNDFIRST    0
    851 #define GW_HWNDLAST     1
    852 #define GW_HWNDNEXT     2
    853 #define GW_HWNDPREV     3
    854 #define GW_OWNER        4
    855 #define GW_CHILD        5
     850#define GW_HWNDFIRST    0
     851#define GW_HWNDLAST     1
     852#define GW_HWNDNEXT     2
     853#define GW_HWNDPREV     3
     854#define GW_OWNER        4
     855#define GW_CHILD        5
    856856
    857857  /* WM_GETMINMAXINFO struct */
     
    10001000#define PRF_CHILDREN        0x00000010L
    10011001#define PRF_OWNED           0x00000020L
    1002  
     1002
    10031003  /* Offsets for GetClassLong() and GetClassWord() */
    10041004#define GCL_MENUNAME        (-8)
     
    10301030
    10311031  /* Hook values */
    1032 #define WH_MIN              (-1)
    1033 #define WH_MSGFILTER        (-1)
     1032#define WH_MIN              (-1)
     1033#define WH_MSGFILTER        (-1)
    10341034#define WH_JOURNALRECORD    0
    10351035#define WH_JOURNALPLAYBACK  1
    1036 #define WH_KEYBOARD         2
    1037 #define WH_GETMESSAGE       3
    1038 #define WH_CALLWNDPROC      4
    1039 #define WH_CBT              5
    1040 #define WH_SYSMSGFILTER     6
    1041 #define WH_MOUSE            7
    1042 #define WH_HARDWARE         8
    1043 #define WH_DEBUG            9
     1036#define WH_KEYBOARD         2
     1037#define WH_GETMESSAGE       3
     1038#define WH_CALLWNDPROC      4
     1039#define WH_CBT              5
     1040#define WH_SYSMSGFILTER     6
     1041#define WH_MOUSE            7
     1042#define WH_HARDWARE         8
     1043#define WH_DEBUG            9
    10441044#define WH_SHELL            10
    10451045#define WH_FOREGROUNDIDLE   11
     
    11161116/* WinHelp internal structure */
    11171117typedef struct {
    1118         WORD size;
    1119         WORD command;
    1120         LONG data;
    1121         LONG reserved;
    1122         WORD ofsFilename;
    1123         WORD ofsData;
     1118        WORD size;
     1119        WORD command;
     1120        LONG data;
     1121        LONG reserved;
     1122        WORD ofsFilename;
     1123        WORD ofsData;
    11241124} WINHELP,*LPWINHELP;
    11251125
     
    11321132
    11331133typedef struct {
    1134         WORD wStructSize;
    1135         WORD x;
    1136         WORD y;
    1137         WORD dx;
    1138         WORD dy;
    1139         WORD wMax;
    1140         char rgchMember[2];
     1134        WORD wStructSize;
     1135        WORD x;
     1136        WORD y;
     1137        WORD dx;
     1138        WORD dy;
     1139        WORD wMax;
     1140        char rgchMember[2];
    11411141} HELPWININFO, *LPHELPWININFO;
    11421142
     
    11561156#define HELP_SETWINPOS      0x0203
    11571157#define HELP_CONTEXTMENU    0x000a
    1158 #define HELP_FINDER         0x000b
    1159 #define HELP_WM_HELP        0x000c
     1158#define HELP_FINDER         0x000b
     1159#define HELP_WM_HELP        0x000c
    11601160#define HELP_SETPOPUP_POS   0x000d
    11611161
    1162 #define HELP_TCARD          0x8000
    1163 #define HELP_TCARD_DATA     0x0010
     1162#define HELP_TCARD          0x8000
     1163#define HELP_TCARD_DATA     0x0010
    11641164#define HELP_TCARD_OTHER_CALLER 0x0011
    11651165
     
    11751175
    11761176/* flags to FormatMessage */
    1177 #define FORMAT_MESSAGE_ALLOCATE_BUFFER  0x00000100
    1178 #define FORMAT_MESSAGE_IGNORE_INSERTS   0x00000200
    1179 #define FORMAT_MESSAGE_FROM_STRING      0x00000400
    1180 #define FORMAT_MESSAGE_FROM_HMODULE     0x00000800
    1181 #define FORMAT_MESSAGE_FROM_SYSTEM      0x00001000
    1182 #define FORMAT_MESSAGE_ARGUMENT_ARRAY   0x00002000
    1183 #define FORMAT_MESSAGE_MAX_WIDTH_MASK   0x000000FF
     1177#define FORMAT_MESSAGE_ALLOCATE_BUFFER  0x00000100
     1178#define FORMAT_MESSAGE_IGNORE_INSERTS   0x00000200
     1179#define FORMAT_MESSAGE_FROM_STRING      0x00000400
     1180#define FORMAT_MESSAGE_FROM_HMODULE     0x00000800
     1181#define FORMAT_MESSAGE_FROM_SYSTEM      0x00001000
     1182#define FORMAT_MESSAGE_ARGUMENT_ARRAY   0x00002000
     1183#define FORMAT_MESSAGE_MAX_WIDTH_MASK   0x000000FF
    11841184
    11851185typedef struct
     
    12281228} MSG, *LPMSG;
    12291229
    1230        
     1230
    12311231/* Cursors / Icons */
    12321232
    12331233typedef struct {
    1234         BOOL            fIcon;
    1235         DWORD           xHotspot;
    1236         DWORD           yHotspot;
    1237         HBITMAP hbmMask;
    1238         HBITMAP hbmColor;
     1234        BOOL            fIcon;
     1235        DWORD           xHotspot;
     1236        DWORD           yHotspot;
     1237        HBITMAP hbmMask;
     1238        HBITMAP hbmColor;
    12391239} ICONINFO,*LPICONINFO;
    12401240
     
    12741274#define TPM_RETURNCMD     0x0100
    12751275
    1276 typedef struct 
     1276typedef struct
    12771277{
    12781278    UINT   cbSize;
     
    13291329typedef MENUINFO const * LPCMENUINFO;
    13301330
    1331 #define MIM_MAXHEIGHT           0x00000001
    1332 #define MIM_BACKGROUND          0x00000002
    1333 #define MIM_HELPID              0x00000004
    1334 #define MIM_MENUDATA            0x00000008
    1335 #define MIM_STYLE               0x00000010
    1336 #define MIM_APPLYTOSUBMENUS     0x80000000
     1331#define MIM_MAXHEIGHT           0x00000001
     1332#define MIM_BACKGROUND          0x00000002
     1333#define MIM_HELPID              0x00000004
     1334#define MIM_MENUDATA            0x00000008
     1335#define MIM_STYLE               0x00000010
     1336#define MIM_APPLYTOSUBMENUS     0x80000000
    13371337
    13381338typedef struct {
     
    13631363#define MIIM_FTYPE       0x00000100
    13641364
    1365 #define HBMMENU_CALLBACK        ((HBITMAP) -1)
    1366 #define HBMMENU_SYSTEM          ((HBITMAP)  1)
    1367 #define HBMMENU_MBAR_RESTORE    ((HBITMAP)  2)
    1368 #define HBMMENU_MBAR_MINIMIZE   ((HBITMAP)  3)
    1369 #define HBMMENU_MBAR_CLOSE      ((HBITMAP)  5)
    1370 #define HBMMENU_MBAR_CLOSE_D    ((HBITMAP)  6)
    1371 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)  7)
    1372 #define HBMMENU_POPUP_CLOSE     ((HBITMAP)  8)
    1373 #define HBMMENU_POPUP_RESTORE   ((HBITMAP)  9)
    1374 #define HBMMENU_POPUP_MAXIMIZE  ((HBITMAP) 10)
    1375 #define HBMMENU_POPUP_MINIMIZE  ((HBITMAP) 11)
     1365#define HBMMENU_CALLBACK        ((HBITMAP) -1)
     1366#define HBMMENU_SYSTEM          ((HBITMAP)  1)
     1367#define HBMMENU_MBAR_RESTORE    ((HBITMAP)  2)
     1368#define HBMMENU_MBAR_MINIMIZE   ((HBITMAP)  3)
     1369#define HBMMENU_MBAR_CLOSE      ((HBITMAP)  5)
     1370#define HBMMENU_MBAR_CLOSE_D    ((HBITMAP)  6)
     1371#define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)  7)
     1372#define HBMMENU_POPUP_CLOSE     ((HBITMAP)  8)
     1373#define HBMMENU_POPUP_RESTORE   ((HBITMAP)  9)
     1374#define HBMMENU_POPUP_MAXIMIZE  ((HBITMAP) 10)
     1375#define HBMMENU_POPUP_MINIMIZE  ((HBITMAP) 11)
    13761376
    13771377/* DrawState defines ... */
     
    14501450#define BST_INDETERMINATE    0x0002
    14511451#define BST_PUSHED           0x0004
    1452 #define BST_FOCUS            0x0008     
     1452#define BST_FOCUS            0x0008
    14531453
    14541454/* Static Control Styles */
     
    15101510    INT     nTrackPos;
    15111511} SCROLLINFO, *LPSCROLLINFO;
    1512  
    1513 /* GetScrollInfo() flags */ 
     1512
     1513/* GetScrollInfo() flags */
    15141514#define SIF_RANGE           0x0001
    15151515#define SIF_PAGE            0x0002
     
    16091609#define CBS_DISABLENOSCROLL   0x0800L
    16101610
    1611 #define CBS_UPPERCASE         0x2000L
    1612 #define CBS_LOWERCASE         0x4000L
     1611#define CBS_UPPERCASE         0x2000L
     1612#define CBS_LOWERCASE         0x4000L
    16131613
    16141614
     
    16671667#define CB_ERRSPACE         (-2)
    16681668
    1669 #define MB_OK                   0x00000000
    1670 #define MB_OKCANCEL             0x00000001
    1671 #define MB_ABORTRETRYIGNORE     0x00000002
    1672 #define MB_YESNOCANCEL          0x00000003
    1673 #define MB_YESNO                0x00000004
    1674 #define MB_RETRYCANCEL          0x00000005
    1675 #define MB_TYPEMASK             0x0000000F
    1676 
    1677 #define MB_ICONHAND             0x00000010
    1678 #define MB_ICONQUESTION         0x00000020
    1679 #define MB_ICONEXCLAMATION      0x00000030
    1680 #define MB_ICONASTERISK         0x00000040
    1681 #define MB_USERICON             0x00000080
    1682 #define MB_ICONMASK             0x000000F0
    1683 
    1684 #define MB_ICONINFORMATION      MB_ICONASTERISK
    1685 #define MB_ICONSTOP             MB_ICONHAND
    1686 #define MB_ICONWARNING          MB_ICONEXCLAMATION
    1687 #define MB_ICONERROR            MB_ICONHAND
    1688 
    1689 #define MB_DEFBUTTON1           0x00000000
    1690 #define MB_DEFBUTTON2           0x00000100
    1691 #define MB_DEFBUTTON3           0x00000200
    1692 #define MB_DEFBUTTON4           0x00000300
    1693 #define MB_DEFMASK              0x00000F00
    1694 
    1695 #define MB_APPLMODAL            0x00000000
    1696 #define MB_SYSTEMMODAL          0x00001000
    1697 #define MB_TASKMODAL            0x00002000
    1698 #define MB_MODEMASK             0x00003000
    1699 
    1700 #define MB_HELP                 0x00004000
    1701 #define MB_NOFOCUS              0x00008000
    1702 #define MB_MISCMASK             0x0000C000
    1703 
    1704 #define MB_SETFOREGROUND        0x00010000
    1705 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
    1706 #define MB_SERVICE_NOTIFICATION 0x00040000
    1707 #define MB_TOPMOST              0x00040000
    1708 #define MB_RIGHT                0x00080000
    1709 #define MB_RTLREADING           0x00100000
    1710 
    1711 #define HELPINFO_WINDOW         0x0001
    1712 #define HELPINFO_MENUITEM       0x0002
     1669#define MB_OK                   0x00000000
     1670#define MB_OKCANCEL             0x00000001
     1671#define MB_ABORTRETRYIGNORE     0x00000002
     1672#define MB_YESNOCANCEL          0x00000003
     1673#define MB_YESNO                0x00000004
     1674#define MB_RETRYCANCEL          0x00000005
     1675#define MB_TYPEMASK             0x0000000F
     1676
     1677#define MB_ICONHAND             0x00000010
     1678#define MB_ICONQUESTION         0x00000020
     1679#define MB_ICONEXCLAMATION      0x00000030
     1680#define MB_ICONASTERISK         0x00000040
     1681#define MB_USERICON             0x00000080
     1682#define MB_ICONMASK             0x000000F0
     1683
     1684#define MB_ICONINFORMATION      MB_ICONASTERISK
     1685#define MB_ICONSTOP             MB_ICONHAND
     1686#define MB_ICONWARNING          MB_ICONEXCLAMATION
     1687#define MB_ICONERROR            MB_ICONHAND
     1688
     1689#define MB_DEFBUTTON1           0x00000000
     1690#define MB_DEFBUTTON2           0x00000100
     1691#define MB_DEFBUTTON3           0x00000200
     1692#define MB_DEFBUTTON4           0x00000300
     1693#define MB_DEFMASK              0x00000F00
     1694
     1695#define MB_APPLMODAL            0x00000000
     1696#define MB_SYSTEMMODAL          0x00001000
     1697#define MB_TASKMODAL            0x00002000
     1698#define MB_MODEMASK             0x00003000
     1699
     1700#define MB_HELP                 0x00004000
     1701#define MB_NOFOCUS              0x00008000
     1702#define MB_MISCMASK             0x0000C000
     1703
     1704#define MB_SETFOREGROUND        0x00010000
     1705#define MB_DEFAULT_DESKTOP_ONLY 0x00020000
     1706#define MB_SERVICE_NOTIFICATION 0x00040000
     1707#define MB_TOPMOST              0x00040000
     1708#define MB_RIGHT                0x00080000
     1709#define MB_RTLREADING           0x00100000
     1710
     1711#define HELPINFO_WINDOW         0x0001
     1712#define HELPINFO_MENUITEM       0x0002
    17131713
    17141714/* Structure pointed to by lParam of WM_HELP */
    1715 typedef struct                 
    1716 {
    1717     UINT        cbSize;         /* Size in bytes of this struct  */
    1718     INT iContextType;   /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
    1719     INT iCtrlId;        /* Control Id or a Menu item Id. */
    1720     HANDLE      hItemHandle;    /* hWnd of control or hMenu.     */
    1721     DWORD       dwContextId;    /* Context Id associated with this item */
    1722     POINT       MousePos;       /* Mouse Position in screen co-ordinates */
     1715typedef struct
     1716{
     1717    UINT        cbSize;         /* Size in bytes of this struct  */
     1718    INT iContextType;   /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
     1719    INT iCtrlId;        /* Control Id or a Menu item Id. */
     1720    HANDLE      hItemHandle;    /* hWnd of control or hMenu.     */
     1721    DWORD       dwContextId;    /* Context Id associated with this item */
     1722    POINT       MousePos;       /* Mouse Position in screen co-ordinates */
    17231723}  HELPINFO,*LPHELPINFO;
    17241724
     
    17271727typedef struct
    17281728{
    1729     UINT        cbSize;
    1730     HWND        hwndOwner;
    1731     HINSTANCE   hInstance;
    1732     LPCSTR      lpszText;
    1733     LPCSTR      lpszCaption;
    1734     DWORD       dwStyle;
    1735     LPCSTR      lpszIcon;
    1736     DWORD       dwContextHelpId;
    1737     MSGBOXCALLBACK      lpfnMsgBoxCallback;
    1738     DWORD       dwLanguageId;
     1729    UINT        cbSize;
     1730    HWND        hwndOwner;
     1731    HINSTANCE   hInstance;
     1732    LPCSTR      lpszText;
     1733    LPCSTR      lpszCaption;
     1734    DWORD       dwStyle;
     1735    LPCSTR      lpszIcon;
     1736    DWORD       dwContextHelpId;
     1737    MSGBOXCALLBACK      lpfnMsgBoxCallback;
     1738    DWORD       dwLanguageId;
    17391739} MSGBOXPARAMSA,*LPMSGBOXPARAMSA;
    17401740
    17411741typedef struct
    17421742{
    1743     UINT        cbSize;
    1744     HWND        hwndOwner;
    1745     HINSTANCE   hInstance;
    1746     LPCWSTR     lpszText;
    1747     LPCWSTR     lpszCaption;
    1748     DWORD       dwStyle;
    1749     LPCWSTR     lpszIcon;
    1750     DWORD       dwContextHelpId;
    1751     MSGBOXCALLBACK      lpfnMsgBoxCallback;
    1752     DWORD       dwLanguageId;
     1743    UINT        cbSize;
     1744    HWND        hwndOwner;
     1745    HINSTANCE   hInstance;
     1746    LPCWSTR     lpszText;
     1747    LPCWSTR     lpszCaption;
     1748    DWORD       dwStyle;
     1749    LPCWSTR     lpszIcon;
     1750    DWORD       dwContextHelpId;
     1751    MSGBOXCALLBACK      lpfnMsgBoxCallback;
     1752    DWORD       dwLanguageId;
    17531753} MSGBOXPARAMSW,*LPMSGBOXPARAMSW;
    17541754
     
    18451845
    18461846  /* CBT hook values */
    1847 #define HCBT_MOVESIZE       0
    1848 #define HCBT_MINMAX         1
    1849 #define HCBT_QS             2
    1850 #define HCBT_CREATEWND      3
    1851 #define HCBT_DESTROYWND     4
    1852 #define HCBT_ACTIVATE       5
     1847#define HCBT_MOVESIZE       0
     1848#define HCBT_MINMAX         1
     1849#define HCBT_QS             2
     1850#define HCBT_CREATEWND      3
     1851#define HCBT_DESTROYWND     4
     1852#define HCBT_ACTIVATE       5
    18531853#define HCBT_CLICKSKIPPED   6
    18541854#define HCBT_KEYSKIPPED     7
    1855 #define HCBT_SYSCOMMAND     8
    1856 #define HCBT_SETFOCUS       9
     1855#define HCBT_SYSCOMMAND     8
     1856#define HCBT_SETFOCUS       9
    18571857
    18581858  /* CBT hook structures */
     
    18811881
    18821882/* modifiers for RegisterHotKey */
    1883 #define MOD_ALT         0x0001
    1884 #define MOD_CONTROL     0x0002
    1885 #define MOD_SHIFT       0x0004
    1886 #define MOD_WIN         0x0008
     1883#define MOD_ALT         0x0001
     1884#define MOD_CONTROL     0x0002
     1885#define MOD_SHIFT       0x0004
     1886#define MOD_WIN         0x0008
    18871887
    18881888/* ids for RegisterHotKey */
    1889 #define IDHOT_SNAPWINDOW        (-1)    /* SHIFT-PRINTSCRN  */
    1890 #define IDHOT_SNAPDESKTOP       (-2)    /* PRINTSCRN        */
     1889#define IDHOT_SNAPWINDOW        (-1)    /* SHIFT-PRINTSCRN  */
     1890#define IDHOT_SNAPDESKTOP       (-2)    /* PRINTSCRN        */
    18911891
    18921892  /* keybd_event flags */
     
    19181918
    19191919/* SetLastErrorEx types */
    1920 #define SLE_ERROR       0x00000001
    1921 #define SLE_MINORERROR  0x00000002
    1922 #define SLE_WARNING     0x00000003
     1920#define SLE_ERROR       0x00000001
     1921#define SLE_MINORERROR  0x00000002
     1922#define SLE_WARNING     0x00000003
    19231923
    19241924/* Predefined resources */
     
    20242024#define SPI_SETFASTTASKSWITCH     36
    20252025#define SPI_SETDRAGFULLWINDOWS    37
    2026 #define SPI_GETDRAGFULLWINDOWS    38
     2026#define SPI_GETDRAGFULLWINDOWS    38
    20272027
    20282028#define SPI_GETFILTERKEYS         50
     
    22012201#define CW_USEDEFAULT ((INT)0x80000000)
    22022202
    2203 /* CreateWindow() coordinates */
    2204 #define CW_USEDEFAULT16 ((INT16)0x8000)
    2205 
    22062203/* ChildWindowFromPointEx Flags */
    22072204#define CWP_ALL                0x0000
     
    22112208
    22122209  /* PeekMessage() options */
    2213 #define PM_NOREMOVE     0x0000
    2214 #define PM_REMOVE       0x0001
    2215 #define PM_NOYIELD      0x0002
     2210#define PM_NOREMOVE     0x0000
     2211#define PM_REMOVE       0x0001
     2212#define PM_NOYIELD      0x0002
    22162213
    22172214#define WM_SHOWWINDOW       0x0018
     
    22362233#define SW_SHOWNA           8
    22372234#define SW_RESTORE          9
    2238 #define SW_SHOWDEFAULT      10
    2239 #define SW_MAX              10
    2240 #define SW_NORMALNA         0xCC        /* undoc. flag in MinMaximize */
     2235#define SW_SHOWDEFAULT      10
     2236#define SW_MAX              10
     2237#define SW_NORMALNA         0xCC        /* undoc. flag in MinMaximize */
    22412238
    22422239  /* WM_SIZE message wParam values */
     
    23532350
    23542351/* DrawCaption()/DrawCaptionTemp() flags */
    2355 #define DC_ACTIVE               0x0001
    2356 #define DC_SMALLCAP             0x0002
    2357 #define DC_ICON                 0x0004
    2358 #define DC_TEXT                 0x0008
    2359 #define DC_INBUTTON             0x0010
     2352#define DC_ACTIVE               0x0001
     2353#define DC_SMALLCAP             0x0002
     2354#define DC_ICON                 0x0004
     2355#define DC_TEXT                 0x0008
     2356#define DC_INBUTTON             0x0010
    23602357
    23612358/* DrawEdge() flags */
     
    24092406#define DFCS_CAPTIONMAX         0x0002
    24102407#define DFCS_CAPTIONRESTORE     0x0003
    2411 #define DFCS_CAPTIONHELP        0x0004          /* Windows 95 only */
     2408#define DFCS_CAPTIONHELP        0x0004          /* Windows 95 only */
    24122409
    24132410#define DFCS_MENUARROW          0x0000
     
    24262423#define DFCS_BUTTONCHECK        0x0000
    24272424#define DFCS_BUTTONRADIOIMAGE   0x0001
    2428 #define DFCS_BUTTONRADIOMASK    0x0002          /* to draw nonsquare button */
     2425#define DFCS_BUTTONRADIOMASK    0x0002          /* to draw nonsquare button */
    24292426#define DFCS_BUTTONRADIO        0x0004
    24302427#define DFCS_BUTTON3STATE       0x0008
     
    24362433#define DFCS_PUSHED             0x0200
    24372434#define DFCS_CHECKED            0x0400
    2438 #define DFCS_ADJUSTRECT         0x2000          /* exclude surrounding edge */
     2435#define DFCS_ADJUSTRECT         0x2000          /* exclude surrounding edge */
    24392436#define DFCS_FLAT               0x4000
    24402437#define DFCS_MONO               0x8000
    24412438
    24422439/* Image type */
    2443 #define DST_COMPLEX     0x0000
    2444 #define DST_TEXT        0x0001
    2445 #define DST_PREFIXTEXT  0x0002
    2446 #define DST_ICON        0x0003
    2447 #define DST_BITMAP      0x0004
     2440#define DST_COMPLEX     0x0000
     2441#define DST_TEXT        0x0001
     2442#define DST_PREFIXTEXT  0x0002
     2443#define DST_ICON        0x0003
     2444#define DST_BITMAP      0x0004
    24482445
    24492446/* State type */
    2450 #define DSS_NORMAL      0x0000
    2451 #define DSS_UNION       0x0010  /* Gray string appearance */
    2452 #define DSS_DISABLED    0x0020
    2453 #define DSS_DEFAULT     0x0040  /* Make it bold */
    2454 #define DSS_MONO        0x0080
    2455 #define DSS_RIGHT       0x8000
     2447#define DSS_NORMAL      0x0000
     2448#define DSS_UNION       0x0010  /* Gray string appearance */
     2449#define DSS_DISABLED    0x0020
     2450#define DSS_DEFAULT     0x0040  /* Make it bold */
     2451#define DSS_MONO        0x0080
     2452#define DSS_RIGHT       0x8000
    24562453
    24572454typedef struct
     
    26742671#define VK_PA1              0xFD
    26752672#define VK_OEM_CLEAR        0xFE
    2676  
     2673
    26772674  /* Key status flags for mouse events */
    2678 #define MK_LBUTTON          0x0001
    2679 #define MK_RBUTTON          0x0002
    2680 #define MK_SHIFT            0x0004
    2681 #define MK_CONTROL          0x0008
    2682 #define MK_MBUTTON          0x0010
     2675#define MK_LBUTTON          0x0001
     2676#define MK_RBUTTON          0x0002
     2677#define MK_SHIFT            0x0004
     2678#define MK_CONTROL          0x0008
     2679#define MK_MBUTTON          0x0010
    26832680
    26842681  /* Queue status flags */
    2685 #define QS_KEY          0x0001
    2686 #define QS_MOUSEMOVE    0x0002
    2687 #define QS_MOUSEBUTTON  0x0004
    2688 #define QS_MOUSE        (QS_MOUSEMOVE | QS_MOUSEBUTTON)
    2689 #define QS_POSTMESSAGE  0x0008
    2690 #define QS_TIMER        0x0010
    2691 #define QS_PAINT        0x0020
    2692 #define QS_SENDMESSAGE  0x0040
    2693 #define QS_HOTKEY       0x0080
    2694 #define QS_INPUT        (QS_MOUSE | QS_KEY)
    2695 #define QS_ALLEVENTS    (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
     2682#define QS_KEY          0x0001
     2683#define QS_MOUSEMOVE    0x0002
     2684#define QS_MOUSEBUTTON  0x0004
     2685#define QS_MOUSE        (QS_MOUSEMOVE | QS_MOUSEBUTTON)
     2686#define QS_POSTMESSAGE  0x0008
     2687#define QS_TIMER        0x0010
     2688#define QS_PAINT        0x0020
     2689#define QS_SENDMESSAGE  0x0040
     2690#define QS_HOTKEY       0x0080
     2691#define QS_INPUT        (QS_MOUSE | QS_KEY)
     2692#define QS_ALLEVENTS    (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
    26962693#define QS_ALLINPUT     (QS_ALLEVENTS | QS_SENDMESSAGE)
    26972694
    2698 #define DDL_READWRITE   0x0000
    2699 #define DDL_READONLY    0x0001
    2700 #define DDL_HIDDEN      0x0002
    2701 #define DDL_SYSTEM      0x0004
    2702 #define DDL_DIRECTORY   0x0010
    2703 #define DDL_ARCHIVE     0x0020
    2704 
    2705 #define DDL_POSTMSGS    0x2000
    2706 #define DDL_DRIVES      0x4000
    2707 #define DDL_EXCLUSIVE   0x8000
     2695#define DDL_READWRITE   0x0000
     2696#define DDL_READONLY    0x0001
     2697#define DDL_HIDDEN      0x0002
     2698#define DDL_SYSTEM      0x0004
     2699#define DDL_DIRECTORY   0x0010
     2700#define DDL_ARCHIVE     0x0020
     2701
     2702#define DDL_POSTMSGS    0x2000
     2703#define DDL_DRIVES      0x4000
     2704#define DDL_EXCLUSIVE   0x8000
    27082705
    27092706  /* Shell hook values */
     
    27792776} DRAGINFO, *LPDRAGINFO;
    27802777
    2781 #define DRAGOBJ_PROGRAM         0x0001
    2782 #define DRAGOBJ_DATA            0x0002
    2783 #define DRAGOBJ_DIRECTORY       0x0004
    2784 #define DRAGOBJ_MULTIPLE        0x0008
    2785 #define DRAGOBJ_EXTERNAL        0x8000
    2786 
    2787 #define DRAG_PRINT              0x544E5250
    2788 #define DRAG_FILE               0x454C4946
     2778#define DRAGOBJ_PROGRAM         0x0001
     2779#define DRAGOBJ_DATA            0x0002
     2780#define DRAGOBJ_DIRECTORY       0x0004
     2781#define DRAGOBJ_MULTIPLE        0x0008
     2782#define DRAGOBJ_EXTERNAL        0x8000
     2783
     2784#define DRAG_PRINT              0x544E5250
     2785#define DRAG_FILE               0x454C4946
    27892786
    27902787/* types of LoadImage */
    2791 #define IMAGE_BITMAP    0
    2792 #define IMAGE_ICON      1
    2793 #define IMAGE_CURSOR    2
    2794 #define IMAGE_ENHMETAFILE       3
     2788#define IMAGE_BITMAP    0
     2789#define IMAGE_ICON      1
     2790#define IMAGE_CURSOR    2
     2791#define IMAGE_ENHMETAFILE       3
    27952792
    27962793/* loadflags to LoadImage */
    2797 #define LR_DEFAULTCOLOR         0x0000
    2798 #define LR_MONOCHROME           0x0001
    2799 #define LR_COLOR                0x0002
    2800 #define LR_COPYRETURNORG        0x0004
    2801 #define LR_COPYDELETEORG        0x0008
    2802 #define LR_LOADFROMFILE         0x0010
    2803 #define LR_LOADTRANSPARENT      0x0020
    2804 #define LR_DEFAULTSIZE          0x0040
    2805 #define LR_VGA_COLOR            0x0080
    2806 #define LR_LOADMAP3DCOLORS      0x1000
    2807 #define LR_CREATEDIBSECTION     0x2000
    2808 #define LR_COPYFROMRESOURCE     0x4000
    2809 #define LR_SHARED               0x8000
     2794#define LR_DEFAULTCOLOR         0x0000
     2795#define LR_MONOCHROME           0x0001
     2796#define LR_COLOR                0x0002
     2797#define LR_COPYRETURNORG        0x0004
     2798#define LR_COPYDELETEORG        0x0008
     2799#define LR_LOADFROMFILE         0x0010
     2800#define LR_LOADTRANSPARENT      0x0020
     2801#define LR_DEFAULTSIZE          0x0040
     2802#define LR_VGA_COLOR            0x0080
     2803#define LR_LOADMAP3DCOLORS      0x1000
     2804#define LR_CREATEDIBSECTION     0x2000
     2805#define LR_COPYFROMRESOURCE     0x4000
     2806#define LR_SHARED               0x8000
    28102807
    28112808/* Flags for DrawIconEx.  */
     
    28222819
    28232820/* WM_NOTIFYFORMAT commands and return values */
    2824 #define NFR_ANSI            1
    2825 #define NFR_UNICODE         2
    2826 #define NF_QUERY            3
    2827 #define NF_REQUERY          4
     2821#define NFR_ANSI            1
     2822#define NFR_UNICODE         2
     2823#define NF_QUERY            3
     2824#define NF_REQUERY          4
    28282825
    28292826//SM_ARRANGE return values:
     
    31443141BOOL      WINAPI DrawIcon(HDC,INT,INT,HICON);
    31453142BOOL      WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,
    3146                                 UINT,HBRUSH,UINT);
     3143                                UINT,HBRUSH,UINT);
    31473144BOOL      WINAPI DrawMenuBar(HWND);
    31483145BOOL      WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
     
    34433440#define     SendMessage WINELIB_NAME_AW(SendMessage)
    34443441LRESULT     WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,
    3445                                         UINT,LPDWORD);
     3442                                        UINT,LPDWORD);
    34463443LRESULT     WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,
    3447                                         UINT,LPDWORD);
     3444                                        UINT,LPDWORD);
    34483445#define     SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
    34493446HWND      WINAPI SetActiveWindow(HWND);
     
    35713568VOID        WINAPI ScreenSwitchEnable16(WORD);
    35723569
     3570INT WINAPI NativeDlgBoxIP(HMODULE,HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
     3571INT WINAPI NativeCreateDlgIP(HMODULE,HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
     3572
    35733573#define WC_DIALOG    (LPSTR)((DWORD)((WORD)( 0x8002)))
    35743574
Note: See TracChangeset for help on using the changeset viewer.