Information générale
Titre:
Bring to front from DLL
I've written a replacement for VB's MsgBox, but when called by a DLL it hides behind other windows. I've tried a number of things that should have worked (e.g., SetWindowPos), but nothing seems to. What does work is specifying the foreground window as the parent form when I display my form (i.e., Me.Show vbModal, ParentForm), but I don't always know the parent. With GetForegroundWindow I can get the parent's hWnd, but this doesn't get me the object reference I would need for the Show method.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement