Mercurial > dwindows
changeset 507:c607eb385e58
Added missing calling conventions. Thanks Bastian for pointing this out.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 22 Jan 2004 18:51:49 +0000 |
parents | f1998a89a4d5 |
children | 078a40ba2e41 |
files | dw.h os2/dw.c win/dw.c |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/dw.h Wed Jan 21 06:31:41 2004 +0000 +++ b/dw.h Thu Jan 22 18:51:49 2004 +0000 @@ -1009,8 +1009,8 @@ void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon); void API dw_filesystem_change_item(HWND handle, int column, int row, void *data); void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon); -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext); -void dw_taskbar_delete(HWND handle, unsigned long icon); +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext); +void API dw_taskbar_delete(HWND handle, unsigned long icon); int API dw_screen_width(void); int API dw_screen_height(void); unsigned long API dw_color_depth(void);
--- a/os2/dw.c Wed Jan 21 06:31:41 2004 +0000 +++ b/os2/dw.c Thu Jan 22 18:51:49 2004 +0000 @@ -4569,7 +4569,7 @@ * DW pick the appropriate file extension. * (BMP on OS/2 or Windows, XPM on Unix) */ -HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) +HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) { BubbleButton *bubble = calloc(sizeof(BubbleButton), 1); HWND tmp = WinCreateWindow(HWND_OBJECT, @@ -7001,7 +7001,7 @@ * icon: Icon handle to display in the taskbar. * bubbletext: Text to show when the mouse is above the icon. */ -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) { handle = handle; icon = icon; @@ -7015,7 +7015,7 @@ * handle: Window handle that was used with dw_taskbar_insert(). * icon: Icon handle that was used with dw_taskbar_insert(). */ -void dw_taskbar_delete(HWND handle, unsigned long icon) +void API dw_taskbar_delete(HWND handle, unsigned long icon) { handle = handle; icon = icon; @@ -8676,7 +8676,7 @@ * dataname: A string pointer identifying which signal to be hooked. * data: User data to be passed to the handler function. */ -void *dw_window_get_data(HWND window, char *dataname) +void * API dw_window_get_data(HWND window, char *dataname) { WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER);
--- a/win/dw.c Wed Jan 21 06:31:41 2004 +0000 +++ b/win/dw.c Thu Jan 22 18:51:49 2004 +0000 @@ -4494,7 +4494,7 @@ * DW pick the appropriate file extension. * (BMP on OS/2 or Windows, XPM on Unix) */ -HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) +HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) { HWND tmp; BubbleButton *bubble; @@ -7043,7 +7043,7 @@ * icon: Icon handle to display in the taskbar. * bubbletext: Text to show when the mouse is above the icon. */ -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) { NOTIFYICONDATA tnid; @@ -7067,7 +7067,7 @@ * handle: Window handle that was used with dw_taskbar_insert(). * icon: Icon handle that was used with dw_taskbar_insert(). */ -void dw_taskbar_delete(HWND handle, unsigned long icon) +void API dw_taskbar_delete(HWND handle, unsigned long icon) { NOTIFYICONDATA tnid;