Mercurial > dwindows
comparison os2/dw.c @ 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 | f3ed8dda02f8 |
children | 078a40ba2e41 |
comparison
equal
deleted
inserted
replaced
506:f1998a89a4d5 | 507:c607eb385e58 |
---|---|
4567 * id: An ID to be used with dw_window_from_id() or 0L. | 4567 * id: An ID to be used with dw_window_from_id() or 0L. |
4568 * filename: Name of the file, omit extention to have | 4568 * filename: Name of the file, omit extention to have |
4569 * DW pick the appropriate file extension. | 4569 * DW pick the appropriate file extension. |
4570 * (BMP on OS/2 or Windows, XPM on Unix) | 4570 * (BMP on OS/2 or Windows, XPM on Unix) |
4571 */ | 4571 */ |
4572 HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) | 4572 HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) |
4573 { | 4573 { |
4574 BubbleButton *bubble = calloc(sizeof(BubbleButton), 1); | 4574 BubbleButton *bubble = calloc(sizeof(BubbleButton), 1); |
4575 HWND tmp = WinCreateWindow(HWND_OBJECT, | 4575 HWND tmp = WinCreateWindow(HWND_OBJECT, |
4576 WC_BUTTON, | 4576 WC_BUTTON, |
4577 "", | 4577 "", |
6999 * Parameters: | 6999 * Parameters: |
7000 * handle: Window handle that will handle taskbar icon messages. | 7000 * handle: Window handle that will handle taskbar icon messages. |
7001 * icon: Icon handle to display in the taskbar. | 7001 * icon: Icon handle to display in the taskbar. |
7002 * bubbletext: Text to show when the mouse is above the icon. | 7002 * bubbletext: Text to show when the mouse is above the icon. |
7003 */ | 7003 */ |
7004 void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) | 7004 void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) |
7005 { | 7005 { |
7006 handle = handle; | 7006 handle = handle; |
7007 icon = icon; | 7007 icon = icon; |
7008 bubbletext = bubbletext; | 7008 bubbletext = bubbletext; |
7009 /* TODO */ | 7009 /* TODO */ |
7013 * Deletes an icon from the taskbar. | 7013 * Deletes an icon from the taskbar. |
7014 * Parameters: | 7014 * Parameters: |
7015 * handle: Window handle that was used with dw_taskbar_insert(). | 7015 * handle: Window handle that was used with dw_taskbar_insert(). |
7016 * icon: Icon handle that was used with dw_taskbar_insert(). | 7016 * icon: Icon handle that was used with dw_taskbar_insert(). |
7017 */ | 7017 */ |
7018 void dw_taskbar_delete(HWND handle, unsigned long icon) | 7018 void API dw_taskbar_delete(HWND handle, unsigned long icon) |
7019 { | 7019 { |
7020 handle = handle; | 7020 handle = handle; |
7021 icon = icon; | 7021 icon = icon; |
7022 /* TODO */ | 7022 /* TODO */ |
7023 } | 7023 } |
8674 * Parameters: | 8674 * Parameters: |
8675 * window: Window handle of signal to be called back. | 8675 * window: Window handle of signal to be called back. |
8676 * dataname: A string pointer identifying which signal to be hooked. | 8676 * dataname: A string pointer identifying which signal to be hooked. |
8677 * data: User data to be passed to the handler function. | 8677 * data: User data to be passed to the handler function. |
8678 */ | 8678 */ |
8679 void *dw_window_get_data(HWND window, char *dataname) | 8679 void * API dw_window_get_data(HWND window, char *dataname) |
8680 { | 8680 { |
8681 WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER); | 8681 WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER); |
8682 | 8682 |
8683 if(blah && blah->root && dataname) | 8683 if(blah && blah->root && dataname) |
8684 { | 8684 { |