Mercurial > dwindows
changeset 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 | aac69b11e821 |
files | dwtest.c readme win/dw.c |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtest.c Mon Oct 10 00:40:22 2011 +0000 +++ b/dwtest.c Mon Oct 10 02:04:17 2011 +0000 @@ -850,8 +850,8 @@ int API context_menu_event(HWND window, int x, int y, int buttonmask, void *data) { - HMENUI hwndMenu = dw_menu_new(0L); - HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU); + HMENUI hwndMenu = dw_menu_new(0L); + HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU); long px, py; dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow);
--- a/readme Mon Oct 10 00:40:22 2011 +0000 +++ b/readme Mon Oct 10 02:04:17 2011 +0000 @@ -53,12 +53,13 @@ Added dw_container_set_row_data() and dw_container_change_row_data() macros which just call dw_container_set/change_row_title() but with (void *). Added dw_container_set_row_bg() to set alternating row colors. - Currently Mac, Win and GTK2 and GTK3 are supported. + Currently Mac, Win and GTK are supported. +Added taskbar support on the Mac. Improved container optimization on Mac, header width now taken into account. Fixes for incorrect return codes from the dw_event_* functions on Windows. Fixes for incorrect behavior on key_press callbacks on Mac and Windows. Fixes for MDI support in GTK3. -Fixes for problems with multiple sliders/percent windows in a box on OS/2. +Fixes for problems with multiple sliders/percent widgets in a box on OS/2. Fixes for lots of GTK3 layout and window positioning issues... although minimum size issues are still present.
--- a/win/dw.c Mon Oct 10 00:40:22 2011 +0000 +++ b/win/dw.c Mon Oct 10 02:04:17 2011 +0000 @@ -2300,6 +2300,7 @@ /* call our standard Windows procedure */ rcode = _wndproc(hWnd, msg, mp1, mp2); break; + case WM_USER+2: case WM_LBUTTONUP: case WM_MBUTTONUP: case WM_RBUTTONUP: @@ -2473,7 +2474,7 @@ if(strcmp(tmpbuf, FRAMECLASSNAME) == 0) cinfo = &(((Box *)cinfo)->cinfo); - if ( msg == WM_MOUSEMOVE ) + if ( msg == WM_MOUSEMOVE || msg == WM_USER+2 ) ret = _wndproc(hWnd, msg, mp1, mp2); if (cinfo)