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.

Empfohlene Antworten

Veröffentlicht

Hi,

ich hab ein kleines Problemchen (an welchem ich schon 2 Tage arbeite! ;)) und bekomme es einfach nicht in den Griff!

Ich möchte von meinem Programm aus Text in einem Edit-feld ausgeben! Leider hat es bis zum heutigen Tage noch nicht hingehauen! :(

Hier die Definition des Edit-feldes:

--------------------------------------------------------------------------

hwndEdit1 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "TEST234",WS_CHILD | WS_VISIBLE , i_cxChar, i_cyChar * (1+2* 7),25*i_cxChar, 7 * i_cyChar / 4,hwnd, (HMENU)7, ((LPCREATESTRUCT) lParam) -> hInstance, NULL);

---------------------------------------------------------------------------

...und hier die Funktion die einen Text inner Edit-Box ausgeben soll:

----------------------------------------------------------------------------

DefWindowProc(hwndEdit1, WM_SETTEXT, 0, (LPARAM)"TEST");

-----------------------------------------------------------------------------

Anstelle DefWindowProc hatte ich auch SendMessage probiert - no chance ! :(

Hat jemand ne Idee, wo der Fehler liegen könnte??

Hey, ob du´s glaubs oder nicht, damit hast du mein problem schon gelöst! Denn ich hatte für SendMessage wie auch für DefWindowProc keinen Rückgabetyp festgelegt, weil es auch ohne Rückgabetyp im Petzold steht! :rolleyes:

Jetzt funzt es! Tja, manchmal sind es die kleinen Denkanstösse die einem zum Ziel führen! THX

Naja, du könntest eine Membervariable von diesem Edit erzeugen und dann der Variable einen Wert zuweisen und dann mit UpdateData(false); die Werte in das Editifeld schreiben.

Wir sind hier doch bei c++, oder?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.