| |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
![]() |
| | LinkBack | Thread Tools |
| |||
| Intercept stylus input globally Hi, I want to program a small "ruler application" for my TPC. This application should be a virtual ruler that can be placed anywhere on the screen. When the user wants to to draw a *straight* line in any application (Quicknotes, OneNote, Journal, ...) he just writes a line along the ruler and my application then makes automatically a staight line. I did this successfully using ordinary mouse data using ClipCursor in MFC: ON_REGISTERED_MESSAGE(UWM_MOUSEMSG, OnRuler) LRESULT CrulerDlg::OnRuler(WPARAM, LPARAM lParam) { if(lParam) { RECT rc; GetWindowRect(&rc); ClipCursor(&rc); } else { ClipCursor(NULL); } return 0; } But this works *only* for the mouse, for stylus data this is ignored :-( Now I'm searching for a possibility to *globally* hook into stylus data and modify it on-the-fly. It would be great if it would work with C++ and MFC. Thank you, Peter |
| |||
| RE: Intercept stylus input globally Hi Peter, Have you tried using the COM version of RealTimeStylus? http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx Thanks, Amber "Peter Mairhofer" wrote: > Hi, > > I want to program a small "ruler application" for my TPC. This application > should be a virtual ruler that can be placed anywhere on the screen. When > the user wants to to draw a *straight* line in any application (Quicknotes, > OneNote, Journal, ...) he just writes a line along the ruler and my > application then makes automatically a staight line. > > I did this successfully using ordinary mouse data using ClipCursor in MFC: > > ON_REGISTERED_MESSAGE(UWM_MOUSEMSG, OnRuler) > > LRESULT CrulerDlg::OnRuler(WPARAM, LPARAM lParam) > { > if(lParam) > { > RECT rc; > GetWindowRect(&rc); > ClipCursor(&rc); > } > else > { > ClipCursor(NULL); > } > return 0; > } > > But this works *only* for the mouse, for stylus data this is ignored :-( > > Now I'm searching for a possibility to *globally* hook into stylus data and > modify it on-the-fly. > > It would be great if it would work with C++ and MFC. > > > Thank you, > Peter > > > |
| |||
| RE: Intercept stylus input globally =?Utf-8?B?QW1iZXIgUC4gUmFjZQ==?= <AmberPRace@discussions.microsoft.com> dixit: > Hi Peter, > Have you tried using the COM version of RealTimeStylus? > http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx Hi, Thank you for your answer. No, I haven't tried it yet but till now I tought it was not possible to modify ink stream from *another* application (e.g. journal, OneNote, ...). Do you think it's possible with it? Peter |
| |||
| RE: Intercept stylus input globally RTS won't work globally, but you could try getting the stylus points as Raw Input and generating a user message for your app. http://msdn2.microsoft.com/en-us/lib...36(VS.85).aspx Thanks, Amber "Peter Mairhofer" wrote: > =?Utf-8?B?QW1iZXIgUC4gUmFjZQ==?= <AmberPRace@discussions.microsoft.com> > dixit: > > Hi Peter, > > Have you tried using the COM version of RealTimeStylus? > > http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx > > Hi, > > Thank you for your answer. No, I haven't tried it yet but till now I tought > it was not possible to modify ink stream from *another* application (e.g. > journal, OneNote, ...). > > Do you think it's possible with it? > > Peter > > > |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Intercept data from USB device | Angie | Pocket PC General | 5 | 11-07-2007 01:10 PM |
| Hand vs. Stylus Input | john | Tablet PC Developers | 3 | 10-31-2007 06:10 AM |
| intercept SIM API call | Angie | Pocket PC General | 1 | 10-31-2007 02:50 AM |
| Delete Temp Files Globally | Michael | Windows XP | 17 | 06-28-2007 04:00 PM |
| RE: Folder view the same globally | 7Yur | Windows Vista | 0 | 01-19-2007 12:30 PM |