Change the title bar and menu bar background of Windows Mobile 6.5

Source: Internet
Author: User

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 );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.