[fpc-devel] patch - Add new constant to WinCE RTL
Patrick Chevalley
pchevalley at gmail.com
Thu May 10 22:37:34 CEST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070510/044b8430/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wince_aygshell.patch
Type: application/octet-stream
Size: 634 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070510/044b8430/attachment.obj>
More information about the fpc-devel
mailing list