Bonjour,
Voila, j'affiche du texte dans une case edittex grace a la commande SetDlgItemText, ca fonctionne très bien si le programme est démarré au premier plan.
Le problème c'est quand on envoie le prog dans la systray avant de le démarrer et qu'on le démarre depuis la systray, au moment de la restoration, il ne m'affiche rien dans mon edittext...
J'ai deja essayé un updatewindow sans succès
IDE_EDIT1 correspond a ma ressource edittext
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 if(LOWORD(wParam) == IDM_RESTORE) { ShowWindow(hwnd,SW_SHOW); SetDlgItemText(hwnd, IDE_EDIT1, actual_key); Shell_NotifyIcon(NIM_DELETE,&TrayIcon); UpdateWindow(hwnd); SetDlgItemText(hwnd, IDE_EDIT1, actual_key); UpdateWindow(hwnd); }
actual_key, ce que je veux afficher
Merci
Partager