Weird scroll bug

This is a discussion on Weird scroll bug within the Windows Programming forums, part of the Platform Specific Boards category; Hey, that is what happens when i scroll the edit box in my little program: http://img516.imageshack.us/img516/9...geshackrb0.jpg Here is the edit: ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    57

    Weird scroll bug

    Hey, that is what happens when i scroll the edit box in my little program:
    http://img516.imageshack.us/img516/9...geshackrb0.jpg

    Here is the edit:
    Code:
    			edits[1] = CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT","",ES_AUTOVSCROLL|WS_VSCROLL|WS_CHILD|WS_VISIBLE|ES_MULTILINE, 240, 50, 100, 150,
    hwnd, NULL, GetModuleHandle(NULL), NULL);
    Why it happens? How do i fix it? Thanks! =]

    -------EDIT--------

    I actually found the problem... Its because im using
    Code:
    			SetBkMode((HDC)wParam,TRANSPARENT);
    inside WM_CTLCOLOREDIT...
    How do i set the edit transparent without make that bug?
    Last edited by Tropicalia; 10-03-2006 at 12:12 PM.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If it's a constant colour then use SetBkColor.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    57
    Well, i actually want to know why set the bkmode to transparent makes that bug and how to use it without get that error

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. weird bug in the scanf command
    By transgalactic2 in forum C Programming
    Replies: 13
    Last Post: 10-24-2008, 04:26 PM
  2. Scroll Bars Are Scrolling Me Crazy
    By Iyouboushi in forum C# Programming
    Replies: 6
    Last Post: 03-03-2006, 01:43 PM
  3. Horizontal Scroll Bars with CListBox
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2003, 10:58 PM
  4. Weird bug
    By Hunter2 in forum Windows Programming
    Replies: 1
    Last Post: 08-12-2002, 04:45 PM
  5. Weird bug in the forum
    By SilentStrike in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-16-2002, 06:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21