hide taskbar - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

hide taskbar

hello i develop aplication for windows ce 5
i want to hide the task bar
it has succes but the trouble is when main thread function completed
in the screen reamined white rectangle at the bottom of the screen.
i develop in visual studio in c language .
here is my main function and the hide task bar

has anyone have idea why the white rectangle remains

during the draw i use drawing black bitmap at the lower part of screen
also i use fillrect(allscrenn) with all screnn black but still not helps
it seems when thread completed the screen restores whitE line

THIS HAPPENS IN THE LINE
return DefWindowProc(hDlg, message, wParam, lParam);


---------------------
INT_PTR CALLBACK MP_Main(HWND hDlg, u32 message, WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
HDC dc;
PAINTSTRUCT ps;
BOOL Status;


switch (message)
{
case WM_PAINT:
dc = BeginPaint(hDlg, &ps);

if( MPGlobal.PaintMode == TRUE )
{
MPGlobal.UIHandle = hDlg;
HideMouseCursor(hDlg);
HideTaskBar();
Status = MP_Init_All();
}
EndPaint(hDlg, &ps);
MPGlobal.PaintMode = FALSE;
break;
case WM_INITDIALOG:

break;
case WM_TIMER:
break;
case WM_COMMAND:
//Cmn_EventsPerform( wParam );
break;
case WM_DESTROY:

break;
default:
return DefWindowProc(hDlg, message, wParam, lParam);
}
return (INT_PTR)FALSE;
}

----------------
void HideTaskBar()
{
HWND hWndTaskBar = FindWindow(L"HHTaskBar", L"");
SetWindowPos(hWndTaskBar, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOSIZE);
RECT r = {0,0,640,480};
SystemParametersInfo(SPI_SETWORKAREA, 0, (PVOID)(&r), SPIF_SENDCHANGE);

}
Sign In or Register to comment.