Mercurial > dwindows
comparison win/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 | f1998a89a4d5 |
children | 078a40ba2e41 |
comparison
equal
deleted
inserted
replaced
506:f1998a89a4d5 | 507:c607eb385e58 |
---|---|
4492 * id: An ID to be used with dw_window_from_id() or 0L. | 4492 * id: An ID to be used with dw_window_from_id() or 0L. |
4493 * filename: Name of the file, omit extention to have | 4493 * filename: Name of the file, omit extention to have |
4494 * DW pick the appropriate file extension. | 4494 * DW pick the appropriate file extension. |
4495 * (BMP on OS/2 or Windows, XPM on Unix) | 4495 * (BMP on OS/2 or Windows, XPM on Unix) |
4496 */ | 4496 */ |
4497 HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) | 4497 HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) |
4498 { | 4498 { |
4499 HWND tmp; | 4499 HWND tmp; |
4500 BubbleButton *bubble; | 4500 BubbleButton *bubble; |
4501 HBITMAP hbitmap = 0; | 4501 HBITMAP hbitmap = 0; |
4502 char *file = malloc(strlen(filename) + 5); | 4502 char *file = malloc(strlen(filename) + 5); |
7041 * Parameters: | 7041 * Parameters: |
7042 * handle: Window handle that will handle taskbar icon messages. | 7042 * handle: Window handle that will handle taskbar icon messages. |
7043 * icon: Icon handle to display in the taskbar. | 7043 * icon: Icon handle to display in the taskbar. |
7044 * bubbletext: Text to show when the mouse is above the icon. | 7044 * bubbletext: Text to show when the mouse is above the icon. |
7045 */ | 7045 */ |
7046 void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) | 7046 void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) |
7047 { | 7047 { |
7048 NOTIFYICONDATA tnid; | 7048 NOTIFYICONDATA tnid; |
7049 | 7049 |
7050 tnid.cbSize = sizeof(NOTIFYICONDATA); | 7050 tnid.cbSize = sizeof(NOTIFYICONDATA); |
7051 tnid.hWnd = handle; | 7051 tnid.hWnd = handle; |
7065 * Deletes an icon from the taskbar. | 7065 * Deletes an icon from the taskbar. |
7066 * Parameters: | 7066 * Parameters: |
7067 * handle: Window handle that was used with dw_taskbar_insert(). | 7067 * handle: Window handle that was used with dw_taskbar_insert(). |
7068 * icon: Icon handle that was used with dw_taskbar_insert(). | 7068 * icon: Icon handle that was used with dw_taskbar_insert(). |
7069 */ | 7069 */ |
7070 void dw_taskbar_delete(HWND handle, unsigned long icon) | 7070 void API dw_taskbar_delete(HWND handle, unsigned long icon) |
7071 { | 7071 { |
7072 NOTIFYICONDATA tnid; | 7072 NOTIFYICONDATA tnid; |
7073 | 7073 |
7074 tnid.cbSize = sizeof(NOTIFYICONDATA); | 7074 tnid.cbSize = sizeof(NOTIFYICONDATA); |
7075 tnid.hWnd = handle; | 7075 tnid.hWnd = handle; |