APPELER UNE FORM D4UNE DLL DEPUIS UNE APPLI MDI

osoudee Messages postés 24 Date d'inscription lundi 21 janvier 2002 Statut Membre Dernière intervention 21 avril 2006 - 15 mai 2002 à 11:13
fredlynx Messages postés 662 Date d'inscription mercredi 16 janvier 2002 Statut Modérateur Dernière intervention 16 octobre 2010 - 15 mai 2002 à 15:28
JE VEUX APPELER UNE METHODE D4UNE DLL QUI LANCE UN FORMULAIRE ;
ET CE DEPUIS UNE APPLI MDI
DONC IL FAUT QUE LA FORM SOIT FILLE .
ACTUELLEMENT J'AI REUSSI A LANCER MAIS ELLE SE LANCE DANS UN PROCESS A PART

VOICI LME CODE

APPELANT

DIM TOTO AS TOTO.MACLASSE
SET TOTO = TOTO.MACLASSE
TOTO.REPORT

CODE SERVER (DLL)

PUBLIC SUB REPORT()
FORM.SHOW
END SUB

MERCI DE VOTRE AIDE

3 réponses

fredlynx Messages postés 662 Date d'inscription mercredi 16 janvier 2002 Statut Modérateur Dernière intervention 16 octobre 2010 3
15 mai 2002 à 12:39
Public Declare Function SetParent Lib "USER32" _
(ByVal hWndChild As Long, _
ByVal hWndNewParent As Long) As Long

Private Sub Form_Load()
SetParent Me.hWnd, hWndMain
end sub

hWndMain = le Hwnd de la feuille mère et comme ça ta feuille devrait se retrouver dans ta feuille mère comme une mdichild !!!

J'ai compris la question ?

<center>http://www.lynx-asp.fr.st
WebMaster </center>
0
osoudee Messages postés 24 Date d'inscription lundi 21 janvier 2002 Statut Membre Dernière intervention 21 avril 2006
15 mai 2002 à 14:47
oui mais par contre la toolbar de la mdi est caché .

le menu est present par contre byzarre

merci (si tu as une idée pour la suite merci )
0
fredlynx Messages postés 662 Date d'inscription mercredi 16 janvier 2002 Statut Modérateur Dernière intervention 16 octobre 2010 3
15 mai 2002 à 15:28
Ben là eu chez pas trop ....
As tu essayé de jouer avec le zorder de ta feuille ou de la déclarer en MDICHILD ???

<center>http://www.lynx-asp.fr.st
WebMaster</center>
0
Rejoignez-nous