dlogmsg.r.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 //--------------------------------------------------------------------
11 // This file is included by both .cpp/h and .r files
12 //--------------------------------------------------------------------
13 
14 #if !defined (mdl_type_resource_generator)
15 
16 #if !defined (resource)
17 
18 #include "mdl.h"
19 
20 #endif // !defined (resource)
21 
22 /*----------------------------------------------------------------------+
23 | |
24 | Dialog Messages |
25 | |
26 | Sent to dialogHooks. |
27 | |
28 +----------------------------------------------------------------------*/
30  {
31  DIALOG_MESSAGE_CREATE = 0, /* sent before item hooks are sent create messages */
32  DIALOG_MESSAGE_INIT = 1, /* sent after all item hooks are sent create messages */
33  DIALOG_MESSAGE_DESTROY = 2, /* sent after all item hooks are sent destroy messages */
34  DIALOG_MESSAGE_UPDATE = 3, /* sent after all update messages sent to items */
35  DIALOG_MESSAGE_RESIZE = 4, /* sent after window has been resized (or moved), but before
36  update. (don't draw here simply move & rescale) */
37  DIALOG_MESSAGE_CALCSIZE = 5, /* window mgr needs to know new size since dialog
38  may be moved to screen w/ different screen font */
39  DIALOG_MESSAGE_FONTCHANGED = 6, /* dialog has been moved to a screen w/ different screen font */
41  DIALOG_MESSAGE_BUTTON = 8, /* sent after button message sent to item */
43  DIALOG_MESSAGE_FOCUSIN = 10, /* sent when dialog receives focus before item focus in */
44  DIALOG_MESSAGE_FOCUSOUT = 11, /* sent when dialog loses focus after item focus out */
45  DIALOG_MESSAGE_ITEMFOCUSIN = 12, /* sent after item in dialog gets focusIn message */
46  DIALOG_MESSAGE_ITEMFOCUSOUT = 13, /* sent after item in dialog gets focusOut message */
47  DIALOG_MESSAGE_CHILDDESTROYED = 14, /* after child removed frm scrn */
50  DIALOG_MESSAGE_ANOTHEROPENED = 17, /* sent after INIT msgs */
51  DIALOG_MESSAGE_ANOTHERCLOSED = 18, /* sent before DESTROY msg */
52  DIALOG_MESSAGE_STATECHANGED = 19, /* sent after msg sent to item */
53  DIALOG_MESSAGE_HIDE = 20, /* sent before dialog is hidden */
54  DIALOG_MESSAGE_MINIMIZE = 21, /* not under X windows */
55  DIALOG_MESSAGE_MAXIMIZE = 22, /* not under X windows */
58  DIALOG_MESSAGE_PREBUTTON = 25, /* Used mainly for popup menus */
59  DIALOG_MESSAGE_DOCKEDEXTENT = 26, /* find size when docked */
60  DIALOG_MESSAGE_WINDOWMOVING = 28, /* maybe correct size of moving window before move*/
61  DIALOG_MESSAGE_BEFOREUNDOCK = 29, /* maybe correct size of moving window before move*/
62  DIALOG_MESSAGE_SCREENCHANGE = 30, /* dialog box screen change (before & after) */
63  DIALOG_MESSAGE_ATTACH = 31, /* native dialog is being attached to the MicroStation parent */
64  DIALOG_MESSAGE_CREATED = 32, /* dialog has been created and shown */
65  DIALOG_MESSAGE_MOTION = 33, /* mouse movement inside or exiting dialog */
66  DIALOG_MESSAGE_MOUSEWHEEL = 34, /* mouse wheel motion event */
67  DIALOG_MESSAGE_DETACH = 35, /* native dialog is being detached from the MicroStation parent */
68  DIALOG_MESSAGE_DROPTARGET = 36, /* Drag-n-Drop dialog event */
69  DIALOG_MESSAGE_TITLECHANGED = 37, /* Dialog's title changed */
70  DIALOG_MESSAGE_RESTORED = 38, /* Dialog restored from minimized/maximized state */
71  DIALOG_MESSAGE_DOCKINGSTATE = 39, /* Dialog is being docked/undocked */
72  DIALOG_MESSAGE_AUTOHIDESTATE = 40, /* Dialog Auto-Hide / Push-Pin state is changing / changed */
73  DIALOG_MESSAGE_LAYOUT = 41, /* sent after dialog items have received LAYOUT msg */
74 
75  DIALOG_MESSAGE_HOOKRESOLVE = 49, /* Sent after Hook ID has been resolved. Allows for C++ hook handlers. */
76  // 49 is the maximum
77  };
78 
79 /*----------------------------------------------------------------------+
80 | |
81 | Dialog Item Messages |
82 | |
83 | Sent to itemHandlers & itemHooks (specified within actual item) |
84 | |
85 +----------------------------------------------------------------------*/
87  {
94  DITEM_MESSAGE_SYNCHRONIZE = 56, /* match app state */
96 
97 /* Messages only sent to keystrokable items */
99  DITEM_MESSAGE_POSTKEYSTROKE = 59, /* after default processing */
101  DITEM_MESSAGE_FOCUSOUT = 61, /* About to move out of field, now is the time to validate */
102 
103 /* Messages for application support (not sent by dialog manager) */
108  DITEM_MESSAGE_GETSTATE = 66, /* gets appl state */
109  DITEM_MESSAGE_GETVALUE = 67, /* gets item value not app state */
110  DITEM_MESSAGE_SETVALUE = 68, /* does NOT set application state */
111 
112 /* item hook messages (never sent TO item handlers) */
113  DITEM_MESSAGE_INIT = 69, /* after initial getState */
115  DITEM_MESSAGE_STATECHANGED = 71, /* notification only */
119 
120 /* Post 5.0 messages */
123  DITEM_MESSAGE_WINDOWMOVING = 77, /* Notification before dialog move */
124  DITEM_MESSAGE_DROPFROM = 78, /* Cursor up pt after dragging -- only to hook, not to handler */
125  DITEM_MESSAGE_DROPTO = 79, /* Cursor up pt after dragging */
126  DITEM_MESSAGE_STARTDRAG = 80, /* start dragging -- only to hook, not to handler */
127 
128  DITEM_MESSAGE_STATECHANGING = 81, /* hook may allow/disallow stateChanged */
129  DITEM_MESSAGE_RESETPREBUTTON = 82, /* button down event before DIALOG_MESSAGE_PREBUTTON */
130  DITEM_MESSAGE_SCREENCHANGE = 83, /* dialog box screen change (before & after) */
131  DITEM_MESSAGE_POSTDRAW = 84, /* notification only */
132  DITEM_MESSAGE_POPUPWINDOW = 85, /* Sent to IconPopup item hook when using RTYPE_PopupWindow, 0 for .NET apps */
133 
134 /* Item Handler initialization & cleanup messages */
135  DITEM_MESSAGE_HANDLERLOADED = 100, /* Item Handlers */
138 
140  DITEM_MESSAGE_ATTACH = 111, /* */
150  DITEM_MESSAGE_RELOADDATA = 122, /* Item's data source has been updated */
151  DITEM_MESSAGE_POPUP = 123, /* Open or close item's popup */
152  DITEM_MESSAGE_POPUPCLOSED = 124, /* Popup window closed */
153  DITEM_MESSAGE_GETEDITMENUINFO = 126, /* Get the popup edit menu info */
154  DITEM_MESSAGE_SCROLLING = 127, /* Item is about to be scrolled */
155  DITEM_MESSAGE_MOUSEWHEEL = 128, /* Mouse wheel motion event */
156  DITEM_MESSAGE_DROPSOURCE = 129, /* Drag and Drop Source message */
157  DITEM_MESSAGE_DROPTARGET = 130, /* Drag and Drop Target message */
158  DITEM_MESSAGE_POPUPCREATED = 131, /* Popup window created */
159  DITEM_MESSAGE_DIALOGHIDE = 132, /* Parent dialog is about to be hidden */
160  DITEM_MESSAGE_DIALOGSHOW = 133, /* Parent dialog has just been shown */
161  DITEM_MESSAGE_SETNAMEDITEM = 134, /* SET ITEM command string value */
162  DITEM_MESSAGE_CHILDDRAWBG = 135, /* Allow parent to draw child's background */
163  DITEM_MESSAGE_LAYOUT = 136, /* Sent to get layout information about this item */
164  DITEM_MESSAGE_CHILDRENLOADED = 137, /* Sent to container items to layout child items */
165  DITEM_MESSAGE_LINKLABEL = 138, /* Label item is being linked to another item */
166  DITEM_MESSAGE_AUTOUPDATE = 139, /* Sent when the auto-update timer has fired */
167 
168  DITEM_MESSAGE_HOOKRESOLVE = 200, /* Sent after Hook ID has been resolved. Allows for C++ hook handlers. */
169  };
170 
171 #endif // #if !defined (mdl_type_resource_generator)
Definition: dlogmsg.r.h:65
Definition: dlogmsg.r.h:89
Definition: dlogmsg.r.h:122
Definition: dlogmsg.r.h:144
Definition: dlogmsg.r.h:56
Definition: dlogmsg.r.h:156
Definition: dlogmsg.r.h:139
Definition: dlogmsg.r.h:137
Definition: dlogmsg.r.h:154
Definition: dlogmsg.r.h:151
Definition: dlogmsg.r.h:69
Definition: dlogmsg.r.h:73
Definition: dlogmsg.r.h:163
Definition: dlogmsg.r.h:104
Definition: dlogmsg.r.h:98
Definition: dlogmsg.r.h:72
Definition: dlogmsg.r.h:158
Definition: dlogmsg.r.h:48
Definition: dlogmsg.r.h:60
Definition: dlogmsg.r.h:33
Definition: dlogmsg.r.h:153
Definition: dlogmsg.r.h:53
Definition: dlogmsg.r.h:31
Definition: dlogmsg.r.h:99
Definition: dlogmsg.r.h:35
Definition: dlogmsg.r.h:140
Definition: dlogmsg.r.h:94
Definition: dlogmsg.r.h:113
Definition: dlogmsg.r.h:110
Definition: dlogmsg.r.h:75
Definition: dlogmsg.r.h:64
Definition: dlogmsg.r.h:70
Definition: dlogmsg.r.h:108
Definition: dlogmsg.r.h:142
Definition: dlogmsg.r.h:71
DialogMessageType
Definition: dlogmsg.r.h:29
Definition: dlogmsg.r.h:58
Definition: dlogmsg.r.h:116
Definition: dlogmsg.r.h:43
Definition: dlogmsg.r.h:165
Definition: dlogmsg.r.h:55
Definition: dlogmsg.r.h:44
Definition: dlogmsg.r.h:162
Definition: dlogmsg.r.h:123
Definition: dlogmsg.r.h:63
Definition: dlogmsg.r.h:118
Definition: dlogmsg.r.h:51
Definition: dlogmsg.r.h:143
Definition: dlogmsg.r.h:145
Definition: dlogmsg.r.h:37
Definition: dlogmsg.r.h:128
Definition: dlogmsg.r.h:114
Definition: dlogmsg.r.h:95
Definition: dlogmsg.r.h:40
Definition: dlogmsg.r.h:152
Definition: dlogmsg.r.h:136
Definition: dlogmsg.r.h:115
Definition: dlogmsg.r.h:117
Definition: dlogmsg.r.h:32
Definition: dlogmsg.r.h:45
Definition: dlogmsg.r.h:54
Definition: dlogmsg.r.h:34
Definition: dlogmsg.r.h:66
Definition: dlogmsg.r.h:41
Definition: dlogmsg.r.h:68
Definition: dlogmsg.r.h:166
Definition: dlogmsg.r.h:93
Definition: dlogmsg.r.h:141
Definition: dlogmsg.r.h:90
Definition: dlogmsg.r.h:42
Definition: dlogmsg.r.h:150
Definition: dlogmsg.r.h:46
Definition: dlogmsg.r.h:105
Definition: dlogmsg.r.h:164
Definition: dlogmsg.r.h:88
Definition: dlogmsg.r.h:91
Definition: dlogmsg.r.h:107
Definition: dlogmsg.r.h:124
Definition: dlogmsg.r.h:168
Definition: dlogmsg.r.h:135
Definition: dlogmsg.r.h:67
Definition: dlogmsg.r.h:50
Definition: dlogmsg.r.h:52
Definition: dlogmsg.r.h:61
Definition: dlogmsg.r.h:161
DialogItemMessageType
Definition: dlogmsg.r.h:86
Definition: dlogmsg.r.h:149
Definition: dlogmsg.r.h:59
Definition: dlogmsg.r.h:129
Definition: dlogmsg.r.h:92
Definition: dlogmsg.r.h:131
Definition: dlogmsg.r.h:132
Definition: dlogmsg.r.h:57
Definition: dlogmsg.r.h:126
Definition: dlogmsg.r.h:148
Definition: dlogmsg.r.h:147
Definition: dlogmsg.r.h:146
Definition: dlogmsg.r.h:130
Definition: dlogmsg.r.h:62
Definition: dlogmsg.r.h:155
Definition: dlogmsg.r.h:160
Definition: dlogmsg.r.h:49
Definition: dlogmsg.r.h:100
Definition: dlogmsg.r.h:159
Definition: dlogmsg.r.h:101
Definition: dlogmsg.r.h:109
Definition: dlogmsg.r.h:121
Definition: dlogmsg.r.h:157
Definition: dlogmsg.r.h:106
Definition: dlogmsg.r.h:39
Definition: dlogmsg.r.h:125
Definition: dlogmsg.r.h:47

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.