vfil
October 18th, 2004, 03:28 AM
I am drawing text over the desktop like this:
HDC hDC;
hDC = CreateDC("DISPLAY", NULL, NULL, NULL);
if (hDC)
{
SetBkMode(hDC, TRANSPARENT);
TextOut(hDC, GetSystemMetrics(SM_CXSCREEN) / 2, GetSystemMetrics(SM_CYSCREEN) / 2, "Hello world!", 12);
}
DeleteDC(hDC);
This text removes when some window overlap the desktop.
Can somebody tell me how programatically clear my text from the desktop?
HDC hDC;
hDC = CreateDC("DISPLAY", NULL, NULL, NULL);
if (hDC)
{
SetBkMode(hDC, TRANSPARENT);
TextOut(hDC, GetSystemMetrics(SM_CXSCREEN) / 2, GetSystemMetrics(SM_CYSCREEN) / 2, "Hello world!", 12);
}
DeleteDC(hDC);
This text removes when some window overlap the desktop.
Can somebody tell me how programatically clear my text from the desktop?