bonjour
j'ai ce code pour ouvrir une form mais le probleme elle s'ouvre dans la form parent:
merci bcp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 CAnalyseur* pDialog; //pDialog initialized to NULL in the constructor of CMyWnd class pDialog = new CAnalyseur(); //Check if new succeeded and we got a valid pointer to a dialog object BOOL ret = pDialog->Create("ma form","ma form",WS_CHILD|WS_VISIBLE,CRect(10,10,100,100),this,IDD_SPECTRUM2_FORM,NULL); pDialog->ShowWindow(SW_RESTORE );
pense à mettre la balise de code !!! ,Merci Farscape
Partager