richink and drawing

  • Thread starter Thread starter Shaun Wilde
  • Start date Start date
S

Shaun Wilde

Hi All

I've been messing with the richink control wrapped in .NET CF

I can draw on the control but whenever I stop drawing it draws a funny
dotted box around my scribblings.

What causes this and how can I enable/disable it? I was hoping to save my
scribbling(s) to an image but I don't
like the dotted box.

Thanks

Shaun
 
After you got a handle to RichInk, try doing this:

IntPtr hReal = SendMessage(hRich, IM_GETRICHINK, 0, 0);
SendMessage(hReal, EM_SETPAGESTYLE, PS_NONE, 0);
SendMessage(hReal, EM_SETINKLAYER, VL_WRITINGINK, 0);
SendMessage(hReal, EM_SETWRAPMODE, RI_WRAPTOWINDOW, 0);
SendMessage(hReal, EM_SETVIEW, VT_TYPINGVIEW, 0);

The constants are in inkx.h and richink.h
 
thanks I was slowing trying every combination - I don't think I tried that
set before

however when I use this combination the drawing vanishes after 2 seconds -
very odd
 
nope can't get it to behave the drawing just vanishes any idea what is
causing this?

Is there a special window style I should be using?
 
I've seen it vanish too few times, but then it went away
Does it vanish every time you draw something?
 
yes it does - but when you draw again you can see the original drawing come
through but only in the vicinity if where the stylus has been
 
Back
Top