Mercurial > dwindows
comparison dwtest.c @ 1221:10f5b8645975
Fixes to allow non-toplevel window handles in dw_taskbar_insert() on Windows.
Also various code and readme cleanups.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 10 Oct 2011 02:04:17 +0000 |
parents | 67ff39b9577c |
children | cfe8608253a8 |
comparison
equal
deleted
inserted
replaced
1220:67ff39b9577c | 1221:10f5b8645975 |
---|---|
848 return 0; | 848 return 0; |
849 } | 849 } |
850 | 850 |
851 int API context_menu_event(HWND window, int x, int y, int buttonmask, void *data) | 851 int API context_menu_event(HWND window, int x, int y, int buttonmask, void *data) |
852 { | 852 { |
853 HMENUI hwndMenu = dw_menu_new(0L); | 853 HMENUI hwndMenu = dw_menu_new(0L); |
854 HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU); | 854 HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU); |
855 long px, py; | 855 long px, py; |
856 | 856 |
857 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); | 857 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); |
858 dw_pointer_query_pos(&px, &py); | 858 dw_pointer_query_pos(&px, &py); |
859 dw_menu_popup(&hwndMenu, window, (int)px, (int)py); | 859 dw_menu_popup(&hwndMenu, window, (int)px, (int)py); |