Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[RESOLU] (win32) changer la couleur d'un static

Featured Replies

Posté(e)

j'aimerais modifier la couleur de fond d'un static (et que celle du static)

je programme en c/c++, en win32 (pas de mfc)

je cherche donc les parametres à mettre à la methode sendmessage

merci

Posté(e)

Cette fois je mets mon post au bon endroit :transpi:

Donc ma méthode c'est sans static, plutot du TextOut() pendant le WM_PAINT :

// à déclarer en global dans ta WindowProc
HDC hDC; 
PAINTSTRUCT paintst;
HFONT hFont = CreateFont( 14,0,0,0,0,FALSE,FALSE,FALSE,0,
                 OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY, 
                 DEFAULT_PITCH|FF_DONTCARE, "Tahoma");

// là c'est dans WM_PAINT
hDC = BeginPaint(hWnd, &paintst);
SetBkColor(hDC, RGB(245,245,245));
SelectObject(hDC, hFont); 
TextOut(hDC, 430, 80, "Nbre villes:", 12);
EndPaint(hWnd, &paintst);

Pour plus de détails MSDN :boulet:

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.