comparison dw.h @ 416:a4197ddfc50d

Changes to calculate groupbox border widths and take this into account when calculating window positions.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 May 2003 03:38:44 +0000
parents 3d4c34bb7834
children f225f16bebbd
comparison
equal deleted inserted replaced
415:9ffdbfd83652 416:a4197ddfc50d
45 #define DW_SIGNAL_LIST_SELECT "item-select" 45 #define DW_SIGNAL_LIST_SELECT "item-select"
46 #define DW_SIGNAL_SET_FOCUS "set-focus" 46 #define DW_SIGNAL_SET_FOCUS "set-focus"
47 #define DW_SIGNAL_VALUE_CHANGED "value_changed" 47 #define DW_SIGNAL_VALUE_CHANGED "value_changed"
48 #define DW_SIGNAL_SWITCH_PAGE "switch-page" 48 #define DW_SIGNAL_SWITCH_PAGE "switch-page"
49 49
50 #if defined(__OS2__) || defined(__WIN32__) || defined(WINNT) || defined(__EMX__) 50 #if defined(__OS2__) || defined(__WIN32__) || defined(__MAC__) || defined(WINNT) || defined(__EMX__)
51 /* OS/2 or Windows */ 51 /* OS/2, Windows or MacOS */
52 52
53 #if defined(__IBMC__) && !defined(API) 53 #if defined(__IBMC__) && !defined(API)
54 #define API _System 54 #define API _System
55 #endif 55 #endif
56 56
220 220
221 extern HAB dwhab; 221 extern HAB dwhab;
222 extern HMQ dwhmq; 222 extern HMQ dwhmq;
223 #endif 223 #endif
224 224
225 #if defined(__MAC__)
226 /* MacOS specific section */
227 #include <carbon.h>
228
229 typedef ControlRef HWND;
230 typedef void *HMTX;
231 typedef void *HEV;
232 typedef void *HMOD;
233 typedef void *HPIXMAP;
234 typedef void *HTREEITEM;
235 typedef void *HMENUI;
236
237 #define DW_DT_LEFT 0
238 #define DW_DT_QUERYEXTENT 0
239 #define DW_DT_UNDERSCORE 0
240 #define DW_DT_STRIKEOUT 0
241 #define DW_DT_TEXTATTRS 0
242 #define DW_DT_EXTERNALLEADING 0
243 #define DW_DT_CENTER 0
244 #define DW_DT_RIGHT 0
245 #define DW_DT_TOP 0
246 #define DW_DT_VCENTER 0
247 #define DW_DT_BOTTOM 0
248 #define DW_DT_HALFTONE 0
249 #define DW_DT_MNEMONIC 0
250 #define DW_DT_WORDBREAK 0
251 #define DW_DT_ERASERECT 0
252
253 #define DW_FCF_TITLEBAR 0
254 #define DW_FCF_SYSMENU 0
255 #define DW_FCF_MENU 0
256 #define DW_FCF_SIZEBORDER FCF_SIZEBORDER
257 #define DW_FCF_MINBUTTON FCF_MINBUTTON
258 #define DW_FCF_MAXBUTTON FCF_MAXBUTTON
259 #define DW_FCF_MINMAX FCF_MINMAX
260 #define DW_FCF_VERTSCROLL FCF_VERTSCROLL
261 #define DW_FCF_HORZSCROLL FCF_HORZSCROLL
262 #define DW_FCF_DLGBORDER FCF_DLGBORDER
263 #define DW_FCF_BORDER FCF_BORDER
264 #define DW_FCF_SHELLPOSITION FCF_SHELLPOSITION
265 #define DW_FCF_TASKLIST FCF_TASKLIST
266 #define DW_FCF_NOBYTEALIGN FCF_NOBYTEALIGN
267 #define DW_FCF_NOMOVEWITHOWNER FCF_NOMOVEWITHOWNER
268 #define DW_FCF_SYSMODAL FCF_SYSMODAL
269 #define DW_FCF_HIDEBUTTON FCF_HIDEBUTTON
270 #define DW_FCF_HIDEMAX FCF_HIDEMAX
271 #define DW_FCF_AUTOICON FCF_AUTOICON
272
273 #define DW_CFA_BITMAPORICON CFA_BITMAPORICON
274 #define DW_CFA_STRING CFA_STRING
275 #define DW_CFA_ULONG CFA_ULONG
276 #define DW_CFA_TIME CFA_TIME
277 #define DW_CFA_DATE CFA_DATE
278 #define DW_CFA_CENTER CFA_CENTER
279 #define DW_CFA_LEFT CFA_LEFT
280 #define DW_CFA_RIGHT CFA_RIGHT
281 #define DW_CFA_HORZSEPARATOR CFA_HORZSEPARATOR
282 #define DW_CFA_SEPARATOR CFA_SEPARATOR
283
284 #define DW_CRA_SELECTED CRA_SELECTED
285 #define DW_CRA_CURSORED CRA_CURSORED
286
287 #define DW_LS_MULTIPLESEL LS_MULTIPLESEL
288
289 #define DW_LIT_NONE -1
290
291 #define DW_MLE_CASESENSITIVE MLFSEARCH_CASESENSITIVE
292
293 #define DW_POINTER_ARROW SPTR_ARROW
294 #define DW_POINTER_CLOCK SPTR_WAIT
295
296 /* flag values for dw_messagebox() */
297 #define DW_MB_OK MB_OK
298 #define DW_MB_OKCANCEL MB_OKCANCEL
299 #define DW_MB_YESNO MB_YESNO
300 #define DW_MB_YESNOCANCEL MB_YESNOCANCEL
301
302 #define DW_MB_WARNING MB_WARNING
303 #define DW_MB_ERROR MB_ERROR
304 #define DW_MB_INFORMATION MB_INFORMATION
305 #define DW_MB_QUESTION MB_QUERY
306 #endif
307
225 /* Windows specific section */ 308 /* Windows specific section */
226 #if defined(__WIN32__) || defined(WINNT) 309 #if defined(__WIN32__) || defined(WINNT)
227 #include <windows.h> 310 #include <windows.h>
228 #include <commctrl.h> 311 #include <commctrl.h>
229
230 /* Cygwin doesn't seem to have these... */
231 #if defined(__CYGWIN32__)
232 #define LVS_EX_GRIDLINES 0x00000001
233 #define LVS_EX_FULLROWSELECT 0x00000020
234 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
235 #define ListView_SetExtendedListViewStyle(hwndLV, dw) (DWORD)SendMessage((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dw)
236 #endif
237 #ifndef UDM_SETPOS32
238 #define UDM_SETPOS32 (WM_USER+113)
239 #endif
240 #ifndef UDM_GETPOS32
241 #define UDM_GETPOS32 (WM_USER+114)
242 #endif
243 312
244 #if defined(MSVC) && !defined(API) 313 #if defined(MSVC) && !defined(API)
245 #define API _cdecl 314 #define API _cdecl
246 #endif 315 #endif
247 316