#SB_SETBKCOLOR ???

Vous débutez et vous avez besoin d'aide ? N'hésitez pas à poser vos questions
Backup
Messages : 14526
Inscription : lun. 26/avr./2004 0:40

#SB_SETBKCOLOR ???

Message par Backup »

c'est quoi la valeur de #SB_SETBKCOLOR ?

et pourquoi Purebasic ne l'a pas par defaut ?
Avatar de l’utilisateur
falsam
Messages : 7324
Inscription : dim. 22/août/2010 15:24
Localisation : IDF (Yvelines)
Contact :

Re: #SB_SETBKCOLOR ???

Message par falsam »

Bonjour Dobro. #SB_SETBKCOLOR correspond à #CCM_SETBKCOLOR dans ce code :)

Code : Tout sélectionner

#SB_SETBKCOLOR = #CCM_SETBKCOLOR 
If OpenWindow(0, 0, 0, 355, 180, "Statusbar Color", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
  SetWindowColor(0, RGB(100, 100, 255)) 
  hStatus = CreateStatusBar(0, WindowID(0)) 
  SendMessage_(hStatus, #SB_SETBKCOLOR, 0, GetWindowColor(0)) 
  ;...Any XP theme will need to removed from StatusBar 
  If OSVersion() >= #PB_OS_Windows_XP
    If GetWindowTheme_(hStatus) 
      SetWindowTheme_(hStatus, @null.w, @null.w) 
    EndIf
  EndIf 
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf
Dernière modification par falsam le mar. 05/nov./2013 12:49, modifié 1 fois.
Configuration : Windows 11 Famille 64-bit - PB 6.20 x64 - AMD Ryzen 7 - 16 GO RAM
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
G-Rom
Messages : 3641
Inscription : dim. 10/janv./2010 5:29

Re: #SB_SETBKCOLOR ???

Message par G-Rom »

en fouillant dans un header :
72 #define CCM_FIRST 0x2000
73
74 #define CCM_SETBKCOLOR (CCM_FIRST+0x1) /* lParam = bkColor */
75 #define CCM_SETCOLORSCHEME (CCM_FIRST+0x2) /* lParam = COLORSCHEME struct ptr */
76 #define CCM_GETCOLORSCHEME (CCM_FIRST+0x3) /* lParam = COLORSCHEME struct ptr */
77 #define CCM_GETDROPTARGET (CCM_FIRST+0x4)
78 #define CCM_SETUNICODEFORMAT (CCM_FIRST+0x5)
79 #define CCM_GETUNICODEFORMAT (CCM_FIRST+0x6)
80 #define CCM_SETVERSION (CCM_FIRST+0x7)
81 #define CCM_GETVERSION (CCM_FIRST+0x8)
82 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+0x9) /* wParam = hwndParent */
83 #define CCM_SETWINDOWTHEME (CCM_FIRST+0xb)
84 #define CCM_DPISCALE (CCM_FIRST+0xc)
315 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
je dirais $2001
Backup
Messages : 14526
Inscription : lun. 26/avr./2004 0:40

Re: #SB_SETBKCOLOR ???

Message par Backup »

merci :)
Répondre