Hi again.
Sorry, but there always come up so many small problems when writing my little program (probably because i want it to have a cool gui interface).
Well, i added an edit control. I made it transparent and set its text color to white. well, the look is fine, but there is one small problem:
When i hit backspace and erase a character, the character remains on screen because the background is not erased. well, i think it's not erased. probably because it's transparent?
Well, now i wrote my program so, that it does an InvalidateRect to the main window whenever i hit backspace in the edit control. now it works fine, but i don't want the whole dialog window to be redrawn when hitting backspace in the edit control. how can i avoid that problem?

My little code snippet:

// Main DIalog Window Procedure
iId = GetWindowLong((HWND) lParam, GWL_ID);

if (iId == IDD_SPEED)
SetBkMode((HDC) wParam, TRANSPARENT);
SetTextColor((HDC) wParam, (COLORREF) RGB(255, 255, 255));
return (LONG) (HBRUSH) GetStockObject(NULL_BRUSH);

return FALSE;
Posted on 2001-09-10 06:35:42 by darester