NO

Author Topic: Status Bar Background Color  (Read 212 times)

Offline HellOfMice

  • Member
  • *
  • Posts: 105
  • Never be pleased, always improve
Status Bar Background Color
« on: November 14, 2024, 12:46:21 PM »
It is an old discussion on MASM32 forum. Timo and Vortex should remember.


I tried the following simple solution on Windows 11.
My application is a dialogBox based


Code: [Select]
   hStatus = CreateStatusWindow(WS_CHILD|WS_VISIBLE,"Welcome",__hWnd,IDC_STATUSBAR_01) ;
   SetWindowTheme(hStatus,NULL,L" ") ;
   SendMessage(hStatus,SB_SETPARTS,(WPARAM) 2,(LPARAM) StatWidths) ;
   SendMessage(hStatus,(UINT) SB_SETBKCOLOR,0,(LPARAM) 255) ;
   SendMessage(hStatus,(UINT) SB_SETTEXT,(WPARAM)(INT) 0,(LPARAM) (LPSTR) "Welcome") ;
   ShowWindow(hStatus,SW_SHOW) ;

« Last Edit: November 14, 2024, 12:50:34 PM by HellOfMice »
--------------------------------
Kenavo