Results 1 to 9 of 9

Thread: Problem while dragging a transparent RichTextBox

Threaded View

  1. #7

    Thread Starter
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Problem while dragging a transparent RichTextBox

    Hi guys ! Here is latest update: (code attatched)

    Modified this code for regioning.

    This is how I've done it:

    1. Place the transparent RTB on a picturebox container.
    2. Make the full client area of the form transparent.
    3. Get (BitBlt) screensout of the area that will go behind the picturebox.
    4. Set the bitbelted picture on the picbox container. The RTB will draw the background correctly.
    5. Again make the full client area (EXCEPT the area behind the picturebox) of the form transparent.

    The problems are:
    1. Flickers a lot.
    2. Sometimes it draws the wallpaper correctly, but misses to draw a few icons.
    3. Problem drawing the RTB scrollbars.
    4. Must be activated atleast once.
    5. Not sure how-to apply WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGE. Without any check for RECT, it goes into infinite loop and crashes.

    Attached Files Attached Files
    Last edited by iPrank; Apr 24th, 2007 at 01:15 PM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width