To the people of the makers of RadForm

2 posts, 0 answers
  1. george
    george avatar
    4 posts
    Member since:
    Jan 2009

    Posted 19 Mar 2009 Link to this post

    I have been noticing that on your RadForm there is a problem with how you get your GetDCEx. To keep it short I'll give you a short piece of code that can help you.

    public

    static IntPtr GetDC(Message msg)

     

    {

     

     

    if (msg.Msg != (int)WindowMessages.WM_NCPAINT)

     

    {

     

    return GetWindowDC(msg.HWnd);

     

    }

     

    int flags = (int)(DCX.DCX_CACHE | DCX.DCX_CLIPSIBLINGS

     

    |

    DCX.DCX_WINDOW );

     

     

    IntPtr zero = IntPtr.Zero;

     

     

    if (msg.WParam.ToInt32() != 1)

     

    {

    flags |= (

    int)DCX.DCX_INTERSECTRGN;

     

    zero = msg.WParam;

     

    }

     

    return GetDCEx(msg.HWnd, zero, flags);

     

    }


  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 20 Mar 2009 Link to this post

    Hi george,

    Please refer to your other forum post.

    Best wishes,
    Nick
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top