| 1 | /**********************************************************************/
|
|---|
| 2 | /* */
|
|---|
| 3 | /* Warp4 (Merlin) Extensions */
|
|---|
| 4 | /* */
|
|---|
| 5 | /**********************************************************************/
|
|---|
| 6 |
|
|---|
| 7 | #ifndef __WARP4_H
|
|---|
| 8 | #define __WARP4_H
|
|---|
| 9 |
|
|---|
| 10 | #ifdef __cplusplus
|
|---|
| 11 | extern "C" {
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | /**********************************************************************/
|
|---|
| 15 | /* */
|
|---|
| 16 | /* Warp3 Extensions */
|
|---|
| 17 | /* */
|
|---|
| 18 | /**********************************************************************/
|
|---|
| 19 |
|
|---|
| 20 | #ifndef __WARPTLKT__
|
|---|
| 21 | /*******************************************************************/
|
|---|
| 22 | /* Data and flags to be shared between the WPS and container. */
|
|---|
| 23 | /* These were moved from pmctlsp.h to here so they will be public. */
|
|---|
| 24 | /* --- MSterling */
|
|---|
| 25 | /*******************************************************************/
|
|---|
| 26 | #define CFA_IGNORE 0x80000000L /* flData bit for FieldInfo */
|
|---|
| 27 | #define CRA_IGNORE 0x00008000L /* flRecordAttr bit for Recordcore */
|
|---|
| 28 | #define CRA_SOURCE 0x00004000L /* flRecordAttr bit for Recordcore */
|
|---|
| 29 | #define CRA_DISABLED 0x00001000L /* flRecordAttr bit for Recordcore */
|
|---|
| 30 | #define CRA_OWNERFREE 0x00010000L /* flRecordAttr bit for Recordcore */
|
|---|
| 31 | #define CRA_OWNERDRAW 0x00020000L /* flRecordAttr bit for Recordcore */
|
|---|
| 32 | #define CV_EXACTLENGTH 0x10000000L /* Exact match for SearchString */
|
|---|
| 33 | #define CMA_FILTER 0x1000 /* Filtering through invalidation */
|
|---|
| 34 |
|
|---|
| 35 | /***********************************************************************/
|
|---|
| 36 | /* Make sure this style does not conflict with the WS_ window styles */
|
|---|
| 37 | /* in pmwin.h, or any new styles added to pmstddlg.h at a future time. */
|
|---|
| 38 | /* These were moved from pmctlsp.h to here so they will be public. */
|
|---|
| 39 | /* --- MSterling */
|
|---|
| 40 | /***********************************************************************/
|
|---|
| 41 | #define CCS_MINIICONS 0x00000800L /* Style to have container support */
|
|---|
| 42 | /* mini icons with the minirecord. */
|
|---|
| 43 | #define CCS_NOCONTROLPTR 0x00001000L /* don't send WM_CONTROLPOINTER on */
|
|---|
| 44 | /* WM_MOUSEMOVE */
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | /************************************************************************/
|
|---|
| 49 | /* WinMessageBox2 */
|
|---|
| 50 | /* */
|
|---|
| 51 | /* Parameters: HWND hwndParent - handle of the parent window. */
|
|---|
| 52 | /* HWND hwndOwner - handle of the owner window. */
|
|---|
| 53 | /* PSZ pszText - message text. */
|
|---|
| 54 | /* PSZ pszCaption - title of the message box. */
|
|---|
| 55 | /* ULONG idWindow - Message box id */
|
|---|
| 56 | /* PMB2INFO pmb2info - pointer to button/icon info */
|
|---|
| 57 | /************************************************************************/
|
|---|
| 58 |
|
|---|
| 59 | typedef LHANDLE HPOINTER; /* hptr */
|
|---|
| 60 |
|
|---|
| 61 | #define MAX_MBDTEXT 70
|
|---|
| 62 |
|
|---|
| 63 | #pragma pack(4)
|
|---|
| 64 |
|
|---|
| 65 | typedef struct _MB2D
|
|---|
| 66 | {
|
|---|
| 67 | CHAR achText[MAX_MBDTEXT + 1]; /* Text of the button. eg. "~Cancel" */
|
|---|
| 68 | ULONG idButton; /* Button ID returned when user chooses */
|
|---|
| 69 | /* button */
|
|---|
| 70 | LONG flStyle; /* Button style or'ed with internal */
|
|---|
| 71 | /* styles */
|
|---|
| 72 | } MB2D;
|
|---|
| 73 |
|
|---|
| 74 | typedef MB2D * PMB2D;
|
|---|
| 75 |
|
|---|
| 76 | typedef struct _MB2INFO
|
|---|
| 77 | {
|
|---|
| 78 | ULONG cb; /* Size of fixed part of structure */
|
|---|
| 79 | HPOINTER hIcon; /* Icon handle */
|
|---|
| 80 | ULONG cButtons; /* Number of buttons */
|
|---|
| 81 | ULONG flStyle; /* Icon style flags (MB_ICONQUESTION, etc...)*/
|
|---|
| 82 | HWND hwndNotify; /* Reserved */
|
|---|
| 83 | MB2D mb2d[1]; /* Array of button definitions */
|
|---|
| 84 | } MB2INFO;
|
|---|
| 85 |
|
|---|
| 86 | typedef MB2INFO * PMB2INFO;
|
|---|
| 87 |
|
|---|
| 88 | #pragma pack()
|
|---|
| 89 |
|
|---|
| 90 | ULONG EXPENTRY WinMessageBox2(
|
|---|
| 91 | HWND hwndParent,
|
|---|
| 92 | HWND hwndOwner,
|
|---|
| 93 | PSZ pszText,
|
|---|
| 94 | PSZ pszCaption,
|
|---|
| 95 | ULONG idWindow,
|
|---|
| 96 | PMB2INFO pmb2info);
|
|---|
| 97 |
|
|---|
| 98 | #endif
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | /**********************************************************************/
|
|---|
| 104 | /* */
|
|---|
| 105 | /* Warp4 (Merlin) Extensions */
|
|---|
| 106 | /* */
|
|---|
| 107 | /**********************************************************************/
|
|---|
| 108 |
|
|---|
| 109 | #ifndef __MERLINTLKT__
|
|---|
| 110 | #define BKM_SETNOTEBOOKBUTTONS 0x0375 /* Set common pushbuttons*/
|
|---|
| 111 |
|
|---|
| 112 | #define BKS_TABBEDDIALOG 0x00000800 /* Tabbed dialog*/
|
|---|
| 113 | #define BKS_BUTTONAREA 0x00000200 /* Reserve space for*/
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | /**********************************************************************/
|
|---|
| 117 | /* BKM_SETNOTEBOOKBUTTONS message structure*/
|
|---|
| 118 | /**********************************************************************/
|
|---|
| 119 |
|
|---|
| 120 | typedef struct _NOTEBOOKBUTTON /* nbbutton */
|
|---|
| 121 | {
|
|---|
| 122 | PSZ pszText; /* Button text*/
|
|---|
| 123 | ULONG idButton; /* Button id ( < BKA_MAXBUTTONID)*/
|
|---|
| 124 | LHANDLE hImage; /* Handle for bitmap / icon*/
|
|---|
| 125 | LONG flStyle; /* Button style*/
|
|---|
| 126 | } NOTEBOOKBUTTON;
|
|---|
| 127 | typedef NOTEBOOKBUTTON *PNOTEBOOKBUTTON;
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 | #define FCF_CLOSEBUTTON 0x04000000L /* use when no other min/max */
|
|---|
| 131 |
|
|---|
| 132 | #endif
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | #ifdef __cplusplus
|
|---|
| 136 | }
|
|---|
| 137 | #endif
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 | #endif
|
|---|
| 141 |
|
|---|
| 142 |
|
|---|