anib Posted March 1, 2007 Share Posted March 1, 2007 problème, attribute setmenucolor for TrayItemGetHandle & GUICtrlGetHandle an exemple for help autoit I have autoitscript of origin CODEFunc SetMenuColor($nMenuID, $nColor) If @OSVersion = "WIN_95" Or @OSVersion = "WIN_NT4" Then Return $hMenu = TrayItemGetHandle($nMenuID) ;<<>>$hMenu = GUICtrlGetHandle($nMenuID) $hBrush = DllCall("gdi32.dll", "hwnd", "CreateSolidBrush", "int", $nColor) $hBrush = $hBrush[0] Local $stMenuInfo = DllStructCreate("dword;dword;dword;uint;dword;dword;ptr") DllStructSetData($stMenuInfo, 1, DllStructGetSize($stMenuInfo)) DllStructSetData($stMenuInfo, 2, BitOr($MIM_APPLYTOSUBMENUS, $MIM_BACKGROUND)) DllStructSetData($stMenuInfo, 5, $hBrush) DllCall("user32.dll", "int", "SetMenuInfo", "hwnd", $hMenu, "ptr", DllStructGetPtr($stMenuInfo)) $stMenuInfo = 0 EndFunc by which method I could allot the color au two element? thank you and please still excuse me for my language (i'm french, sorry) (j'apprend l'anglais depuis hier aussi excusé j'ai posté ici et sur le gui help) Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
anib Posted March 1, 2007 Author Share Posted March 1, 2007 I meet of another concern and I do not see too much how to make, I view the DLL gdi (for the colouring of the text) bus if I select a black bottom, and well one does not see any more the txt is it to create once (the prime coat and the color of the txt) that its is GUI, button & _GUICtrlStatusBar thx you very much (translate by google, pas top) Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
anib Posted March 21, 2007 Author Share Posted March 21, 2007 anyone to help me please ? (mode francophone) excusez moi d'avance j'ai de forte lacune en anglais, je cherche le moyen d'attribuer la couleur sur les deux élèment. j'ai remarqué dans l'aide qu'il disposé de deux exemple l'un sur le traymenu et le second sur le menu interface est-il possible de faire un seul script ? étant novice (je débute dans le merveille monde du code depuis le 21/01/07 seul tout seul ^^- avec boucoup de difficulté) j'avais essayé comme cidessus d'ajouter juste le menu mais rien :§ en même temp je me pose une autre question toujours avec la couleur, avec la guistatusbar, on peut lui attribuer une couleur de fond avec le _GUICtrlStatusBarSetBKColor , mais rien pour la couleur du text (en faite ma couleur du moment pour l'interface et la couleur noir evidement le text l'est aussi) merci d'avance sort l'etendart AutoIt Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now