Change the title bar and menu bar background of Windows Mobile 6.5
Added new features on Windows moible 6.5. The following is the message definition defined by Microsoft for setting the task bar and softkey bar. The message definition is clear.
// Retrieve the Alpha value for taskbar & softkeybar transparency (PPC only)
# Define tskbm_getalpha (wm_user + 150)
// Wparam = 0 (this parameter is not used)
// Lparam = 0 (this parameter is not used)
// Return value: the return value is the current alpha value, default is 255 (opaque ).
// Set the Alpha value for taskbar & menubar transparency (PPC only)
# Define tskbm_setalpha (wm_user + 151)
// Wparam = Alpha value (0-255) 0 = transparent, 255 = opaque
// Lparam = 0 (this parameter is not used)
// Return value: the return value is undefined
// Set the overlap image for the softkeybar
# Define wm_setsoftkeybarbackground (wm_user + 410)
// Wparam = Alpha value (0-255) 0 = transparent, 255 = opaque
// Lparam = an image (hbitmap)
// Return value: the return value is undefined
// Set the overlap image for the taskbar (PPC only)
# Define wm_settaskbarbackground (wm_user + 411)
// Wparam = Alpha value (0-255) 0 = transparent, 255 = opaque
// Lparam = an image (hbitmap)
// Return value: the return value is undefined
// Get the overlap image Alpha value for the taskbar (PPC only)
# Define wm_gettaskbarbackgroundalpha (wm_user + 412)
// Return value: the return value is the overlap image Alpha value of the taskbar
// Get the overlap image DC for the taskbar (PPC only)
# Define wm_gettaskbarbackgrounddc (wm_user+ 413)
// Return value: the return value is the overlap image DC of the taskbar
Set the title bar and the background code of the menu bar, and set setval to transparency.
Byte setval = 255;
Hwnd hwndtb = findwindow (L "hhtaskbar", null );
Sendmessage (hwndtb, wm_settaskbarbackground, setval, (lparam) m_htskimage );
Sendmessage (h_menubar, wm_setsoftkeybarbackground, setval, (lparam) m_hsoftkeyimage );