66 |
/* Structure recording bitmaps and reference count. |
/* Structure recording bitmaps and reference count. |
67 |
If REFCOUNT is 0 then this record is free to be reused. */ |
If REFCOUNT is 0 then this record is free to be reused. */ |
68 |
|
|
69 |
struct w32_bitmap_record |
struct w32_bitmap_record |
70 |
{ |
{ |
71 |
Pixmap pixmap; |
Pixmap pixmap; |
72 |
char *file; |
char *file; |
337 |
/* Foreground color for scroll bars. A value of -1 means use the |
/* Foreground color for scroll bars. A value of -1 means use the |
338 |
default (black for non-toolkit scroll bars). */ |
default (black for non-toolkit scroll bars). */ |
339 |
COLORREF scroll_bar_foreground_pixel; |
COLORREF scroll_bar_foreground_pixel; |
340 |
|
|
341 |
/* Background color for scroll bars. A value of -1 means use the |
/* Background color for scroll bars. A value of -1 means use the |
342 |
default (background color of the frame for non-toolkit scroll |
default (background color of the frame for non-toolkit scroll |
343 |
bars). */ |
bars). */ |
355 |
/* Window whose cursor is hourglass_cursor. This window is |
/* Window whose cursor is hourglass_cursor. This window is |
356 |
temporarily mapped to display an hourglass cursor. */ |
temporarily mapped to display an hourglass cursor. */ |
357 |
Window hourglass_window; |
Window hourglass_window; |
358 |
|
|
359 |
/* Non-zero means hourglass cursor is currently displayed. */ |
/* Non-zero means hourglass cursor is currently displayed. */ |
360 |
unsigned hourglass_p : 1; |
unsigned hourglass_p : 1; |
361 |
|
|
595 |
|
|
596 |
/* Return the length of the rectangle within which the top of the |
/* Return the length of the rectangle within which the top of the |
597 |
handle must stay. This isn't equivalent to the inside height, |
handle must stay. This isn't equivalent to the inside height, |
598 |
because the scroll bar handle has a minimum height. |
because the scroll bar handle has a minimum height. |
599 |
|
|
600 |
This is the real range of motion for the scroll bar, so when we're |
This is the real range of motion for the scroll bar, so when we're |
601 |
scaling buffer positions to scroll bar positions, we use this, not |
scaling buffer positions to scroll bar positions, we use this, not |
658 |
+ (f)->output_data.w32->internal_border_width) |
+ (f)->output_data.w32->internal_border_width) |
659 |
|
|
660 |
|
|
661 |
/* Return the row/column (zero-based) of the character cell containing |
/* Return the row/column (zero-based) of the character cell containing |
662 |
the pixel on FRAME at ROW/COL. */ |
the pixel on FRAME at ROW/COL. */ |
663 |
#define PIXEL_TO_CHAR_ROW(f, row) \ |
#define PIXEL_TO_CHAR_ROW(f, row) \ |
664 |
(((row) - (f)->output_data.w32->internal_border_width) \ |
(((row) - (f)->output_data.w32->internal_border_width) \ |
739 |
#define WM_EMACS_SETCURSOR (WM_EMACS_START + 19) |
#define WM_EMACS_SETCURSOR (WM_EMACS_START + 19) |
740 |
#define WM_EMACS_END (WM_EMACS_START + 20) |
#define WM_EMACS_END (WM_EMACS_START + 20) |
741 |
|
|
742 |
#define WND_FONTWIDTH_INDEX (0) |
#define WND_FONTWIDTH_INDEX (0) |
743 |
#define WND_LINEHEIGHT_INDEX (4) |
#define WND_LINEHEIGHT_INDEX (4) |
744 |
#define WND_BORDER_INDEX (8) |
#define WND_BORDER_INDEX (8) |
745 |
#define WND_SCROLLBAR_INDEX (12) |
#define WND_SCROLLBAR_INDEX (12) |
746 |
#define WND_BACKGROUND_INDEX (16) |
#define WND_BACKGROUND_INDEX (16) |
747 |
#define WND_LAST_INDEX (20) |
#define WND_LAST_INDEX (20) |
748 |
|
|
749 |
#define WND_EXTRA_BYTES (WND_LAST_INDEX) |
#define WND_EXTRA_BYTES (WND_LAST_INDEX) |
831 |
#define WM_MOUSELEAVE 0x02A3 |
#define WM_MOUSELEAVE 0x02A3 |
832 |
#define TME_LEAVE 0x00000002; |
#define TME_LEAVE 0x00000002; |
833 |
|
|
834 |
typedef struct tagTRACKMOUSEEVENT |
typedef struct tagTRACKMOUSEEVENT |
835 |
{ |
{ |
836 |
DWORD cbSize; |
DWORD cbSize; |
837 |
DWORD dwFlags; |
DWORD dwFlags; |