changeset 1750:1de7daad85a3

Updated readme, removed debug message and committed fixes for ANSI builds on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 13 Jun 2012 20:50:17 +0000
parents ff9a51706715
children 96c6133ce3b2
files readme.txt win/dw.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/readme.txt	Wed Jun 13 20:08:41 2012 +0000
+++ b/readme.txt	Wed Jun 13 20:50:17 2012 +0000
@@ -39,6 +39,9 @@
    do it automatically (Mac and GTK). OS/2 and Windows limit the size.
 Added toolbar control support to replace existing bitmap buttons on Windows.
 Added dw_filesystem_set_column_title() to fill a hole in localization.   
+Added new optional UTF-8 parameter to the key press callback.
+    This is a pointer to a UTF-8 string representing the key pressed.
+    The buffer pointed to is only good for the duration of the callback.
 Fixed dwindows-config --version not returning the version at all.
 Fixed value changed events not working for spinbuttons on OS/2 and Windows.
 Fixed issues drawing arcs on GTK2, GTK3 and Mac.
--- a/win/dw.c	Wed Jun 13 20:08:41 2012 +0000
+++ b/win/dw.c	Wed Jun 13 20:50:17 2012 +0000
@@ -1976,7 +1976,6 @@
                         
                         uc[0] = (WCHAR)mp1;
                         utf8 = WideToUTF8(uc);
-                        dw_debug("UTF8 %s\n", utf8);
 #endif                        
                         
                         if(GetAsyncKeyState(VK_SHIFT) & 0x8000)
@@ -6247,7 +6246,7 @@
                          
    /* Disable visual styles by default */
    if(_SetWindowTheme)
-      _SetWindowTheme(tmp, TEXT(""), TEXT(""));
+      _SetWindowTheme(tmp, L"", L"");
 
    /* Insert the single bitmap and button into the toolbar */
    SendMessage(tmp, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
@@ -7629,7 +7628,7 @@
 
          /* Enable or disable visual themese */
          if(_SetWindowTheme)
-            _SetWindowTheme(handle, (style & DW_BS_NOBORDER) ? NULL : TEXT(""), (style & DW_BS_NOBORDER) ? NULL : TEXT(""));
+            _SetWindowTheme(handle, (style & DW_BS_NOBORDER) ? NULL : L"", (style & DW_BS_NOBORDER) ? NULL : L"");
             
          return;
       }