更换Windows Mobile 6.5 标题栏和菜单栏背景

更换Windows Mobile 6.5 标题栏和菜单栏背景

     Windows Moible 6.5上添加了新特性。下面是微软定义的关于设置Task barsoftkey bar的消息定义,消息定义的很清楚。

 

// 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

 

设置标题栏和菜单栏背景代码,setVal为透明度

BYTE setVal = 255;

HWND hwndTB = FindWindow(L"HHTaskBar", NULL);

SendMessage(hwndTB, WM_SETTASKBARBACKGROUND, setVal, (LPARAM) m_hTSKImage);

SendMessageh_Menubar, WM_SETSOFTKEYBARBACKGROUND, setVal, (LPARAM) m_hSOFTKEYImage);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值