HEllo
j'ai une exception qui se genere apres avoir joué un moment avec un scroll qui fait appelle à ma fonction de dessin suivante
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 // recuperation du HDC pour créer la font unicode et ecrire avec la TextOutUnicode CDC *pDC ; pDC=this->GetDC() ; HDC hdc ; hdc=pDC->m_hDC ; HFONT hFont = CreateFont(m_FONT, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY, DEFAULT_PITCH, _T("JouveUni")); HFONT hOldFont = (HFONT) SelectObject(hdc, hFont); TextOut(hdc,x,y,temp.GetBuffer(0),temp.GetLength()) ;
Pourriez vous me dire comment et quelle Handle je doit libérer
merci
olivier
![]()
Partager