Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Transparenter Radiobutton vor selbstgefärbtem Gruppefeld

Empfohlene Antworten

Hallo, habe schon im Forum gesucht, leider aber ohne Erfolg :(

Habe nen Gruppenfeld mit eigenem Hintergund und möchte nun den Radiobutton darauf transparent haben(ohne immer manuell ne Farbe übergeben zu müssen). Hab ihn selbst gezeichnet und dann:

void Mein_Radiobutton::OnPaint() 

{

CPaintDC dc(this);


dc.SetBkMode(TRANSPARENT);
Das Kästchen um die anzuklickende Schaltfläche um den Radiobutton nimmt aber die Standarfarbe an, und das sieht doof aus. Kann man vll. irgendwie das Objekt (in meinem Fall das Gruppenfeld) welches sich hinter dem Button befindet nehmen, da die Farbe auslesen und dann auf den Button legen? Wenn ich nämlich ne Farbe vorgebe, ungefähr so:
HBRUSH Mein_Radiobutton::CtlColor(CDC* pDC, UINT nCtlColor) 

{

    HBRUSH hBGBrush = CreateSolidBrush(Farbe);

    return hBGBrush;

}

...dann gibt das dem Kästchen um den Kreis die entsprechende Farbe *g* :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.