From: John Hodge (sonata) Date: Sun, 20 Jan 2013 10:44:44 +0000 (+0800) Subject: Usermode/axwin3 - Added WNDMSG_FIRE handler to richtext lib X-Git-Tag: rel0.15~598^2~5 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f9aa7d5f1718c8ba00f0c098d2457738e655dfb7;p=tpg%2Facess2.git Usermode/axwin3 - Added WNDMSG_FIRE handler to richtext lib --- diff --git a/Usermode/Applications/axwin3_src/libaxwin3.so_src/r_richtext.c b/Usermode/Applications/axwin3_src/libaxwin3.so_src/r_richtext.c index fd1cf391..9fed5449 100644 --- a/Usermode/Applications/axwin3_src/libaxwin3.so_src/r_richtext.c +++ b/Usermode/Applications/axwin3_src/libaxwin3.so_src/r_richtext.c @@ -10,6 +10,7 @@ #include "include/internal.h" #include #include +#include //#include // === TYPES === @@ -23,6 +24,16 @@ typedef struct sRichText_Window // === CODE === int AxWin3_RichText_MessageHandler(tHWND Window, int MessageID, int Size, void *Data) { + tRichText_Window *info = AxWin3_int_GetDataPtr(Window); + struct sWndMsg_KeyAction *keyaction = Data; + _SysDebug("MessageID = %i", MessageID); + switch(MessageID) + { + case WNDMSG_KEYFIRE: + if(Size < sizeof(*keyaction)) return -1; + info->KeyCallback(Window, 2, keyaction->KeySym, keyaction->UCS32); + return 1; + } return 0; }