Embedded / RTOS

Moderators: None (Apply to moderate this forum)
Number of threads: 373
Number of posts: 682

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
hide taskbar Posted by michaeldune on 19 Nov 2008 at 5:09 AM
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);

}



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.