I am in the process of adding HPC support to PocketFrog. Access to the display was easy: the frame buffer address is known. Now I need to disable the taskbar. I've tried this code from EasyCE:
This does a good job at hiding the taskbar, but it is still active. If I click on it, the application buttons reappears. I can even select the <start> menu.
Any idea how I could disable the taskbar?
Thanks!
- Code:
void taskbar( bool show )
{
// The winCE 2.x way
#define TASKBAR_KEY _T("\\software\\microsoft\\shell")
HKEY hKey=0;
RegOpenKeyEx( HKEY_LOCAL_MACHINE, TASKBAR_KEY, 0, KEY_ALL_ACCESS, &hKey );
DWORD dwValue = 0;
unsigned long lSize = sizeof( DWORD );
DWORD dwType = REG_DWORD;
RegQueryValueEx( hKey, _T("TBOpt"), 0, &dwType, (BYTE*)&dwValue, &lSize );
if (show) dwValue &= 0xFFFFFFFF - 8;// reset bit to show taskbar
else dwValue |= 8; // set bit to hide taskbar
RegSetValueEx( hKey, _T("TBOpt"), 0, REG_DWORD, (BYTE*)&dwValue, lSize );
MSG msg;
msg.hwnd = FindWindow( _T("HHTaskBar"), NULL );
::SendMessage( msg.hwnd, WM_COMMAND, 0x03EA, 0 );
::SetForegroundWindow( m_hWnd );
}
This does a good job at hiding the taskbar, but it is still active. If I click on it, the application buttons reappears. I can even select the <start> menu.
Any idea how I could disable the taskbar?
Thanks!