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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.