Hi,
This patch add the constant SHDB_SHOWCANCEL added by Windows Mobile 5.0 to aygshell WinCE API.
It is to use with SHDoneButton call to replace the OK top bar button by a Cancel button, syntaxe is SHDoneButton(hwnd,SHDB_SHOWCANCEL);
I also replace WS_NONAVDONEBUTTON with its correct value $10000. This one is to hide the top bar X button, usage is Style := Style or WS_NONAVDONEBUTTON;
It was previously set to WS_MINIMIZEBOX as in aygshell.h but this not work because the value is $20000 in wince/wininc/defines.inc.
There is probably an error in defines.inc as it list:
WS_MAXIMIZEBOX = $10000;
WS_MINIMIZEBOX = $20000;but Wince API winuser.h is:
#define WS_MAXIMIZEBOX 0x00020000L
#define WS_MINIMIZEBOX 0x00010000L
I don't do a patch for that because I not have an example for testing.
Patrick
