Hi,

The appended patch enables SHSendBackToFocusWindow, which is needed on
Smartphone to make the backspace key do anything other than exit the
current window.  Comments in the patch indicate where I got the
information.  I've tested the changes for several weeks in Crosswords
(see .sig), which will no longer build with cegcc except with this
patch. :-)

This diff on sourceforge shows the API in use.

http://xwords.svn.sourceforge.net/viewvc/xwords/trunk/xwords4/wince/ceutil.c?r1=2169&r2=2170

Please let me know what's needed to get this patch into the trunk.

BTW, I'm unable to do a complete build of the cegcc tree, but the
necessary targets, i.e. importlibs and w32api, work for me.  Thus I've
had to test by copying the outputs (e.g. aygshell.h) into an expanded
cegcc release tarball rather than building my entire toolchain from
the same tree with this patch applied.  It shouldn't matter, but I
want to mention it.

Thanks,

--Eric
-- 
******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED]                        *
*    Crosswords with Bluetooth on PalmOS now in beta: xwords.sourceforge.net *
******************************************************************************

Index: cegcc/src/cegcc/importlibs/defs/aygshell.def
===================================================================
--- cegcc/src/cegcc/importlibs/defs/aygshell.def        (revision 1162)
+++ cegcc/src/cegcc/importlibs/defs/aygshell.def        (working copy)
@@ -87,6 +87,8 @@
 ;
 SHHandleWMSettingChange                @83     NONAME  ; described as NONAME 
on MSDN
 SHHandleWMActivate             @84     NONAME  ; described as NONAME on MSDN
+; 
http://groups.google.hu/group/microsoft.public.windowsce.embedded/msg/e407143ac07929b9
 gives ordinal 97 for SHSendBackToFocusWindow
+SHSendBackToFocusWindow @97   NONAME
 ;
 ; These are described by MinGW to be in aygshell.lib but are not published by 
name
 ; in the DLL, nor do we have confirmation of their ordinal.
@@ -208,7 +210,6 @@
 ; SHSavePWWarning
 ; SHScanBuffer
 ; SHScanFile
-; SHSendBackToFocusWindow
 ; SHSetAsWatermark
 ; SHSetBack
 ; SHSetBubbleRegion
Index: cegcc/src/w32api/include/aygshell.h
===================================================================
--- cegcc/src/w32api/include/aygshell.h (revision 1162)
+++ cegcc/src/w32api/include/aygshell.h (working copy)
@@ -223,6 +223,14 @@
 #define        SHCMBM_SETSUBMENU       0x0590
 #define        SHCMBM_GETSUBMENU       0x0591
 #define        SHCMBM_GETMENU          0x0592
+
+/* from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1733046&SiteID=1 
*/
+#define SHMBOF_NODEFAULT    0x00000001
+#define SHMBOF_NOTIFY       0x00000002
+#define SHCMBM_OVERRIDEKEY  (WM_USER + 403)
+#define VK_TBACK VK_ESCAPE
+
+void SHSendBackToFocusWindow(UINT,WPARAM,LPARAM);
 #endif /* _WIN32_WCE */
 
 #if (_WIN32_WCE >= 0x0400)
Index: cegcc/src/w32api/libce/aygshell.def
===================================================================
--- cegcc/src/w32api/libce/aygshell.def (revision 1162)
+++ cegcc/src/w32api/libce/aygshell.def (working copy)
@@ -87,6 +87,8 @@
 ;
 SHHandleWMSettingChange                @83     NONAME  ; described as NONAME 
on MSDN
 SHHandleWMActivate             @84     NONAME  ; described as NONAME on MSDN
+; 
http://groups.google.hu/group/microsoft.public.windowsce.embedded/msg/e407143ac07929b9
+SHSendBackToFocusWindow @97   NONAME
 ;
 ; These are described by MinGW to be in aygshell.lib but are not published by 
name
 ; in the DLL, nor do we have confirmation of their ordinal.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to