-
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?
-
If it's a constant colour then use SetBkColor.
-
Well, i actually want to know why set the bkmode to transparent makes that bug and how to use it without get that error