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] Champ Edit (event lost focus)

Featured Replies

Posté(e)

Bonjour,

j'aimerais recuperer l'evenement lost_focus sur un objet edit

je programme avec les API Windows (j'aime pas les MFC)

meme si je sais faire avec les MFC.....

BOOL CALLBACK DialogProc(  HWND hWnd,
        UINT message,
        WPARAM wParam, 
        LPARAM lParam  )
{
switch( message )
{
case WM_COMMAND:
 switch( wParam )
 {
       case IDC_EDIT3 :
            switch (HIWORD (wParam))
            {
                   case EN_KILLFOCUS:
                       MessageBox(hWnd, "test", "tst", MB_OK);
                   break;
            }
       break;
       }

      return false;
}

désolé pour l'indentation

j'ai le bon evenement (EN_KILLFOCUS) et le bon "ident" de mon objet edit

où est mon erreur

ou comment faire?

merci

PS: je programme sous Devcpp

Posté(e)

essaye de comparer ton IDC_EDIT3, non pas à wParam, mais à LOWORD(wParam), car si l'on en croit la msdn :

The low-order word specifies the edit control identifier.

The high-order word specifies the notification message.

Posté(e)
  • Auteur

Merci

il fallait bien comparer avec LOWORD (wParam)

par contre, pour l'event on_click, LOWORD(wParam) = wParam

d'où mon "erreur"

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.