更換Windows Mobile 6.5 標題列和功能表列背景

來源:互聯網
上載者:User

更換Windows Mobile 6.5 標題列和功能表列背景

     在Windows Moible 6.5上添加了新特性。下面是微軟定義的關於設定Task bar和softkey 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);

SendMessage(h_Menubar, WM_SETSOFTKEYBARBACKGROUND, setVal, (LPARAM) m_hSOFTKEYImage);

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.