Alcantornet
Messages postés89Date d'inscriptionmardi 8 février 2005StatutMembreDernière intervention14 novembre 2007
-
8 déc. 2005 à 13:49
cs_tibur
Messages postés101Date d'inscriptionsamedi 9 février 2002StatutMembreDernière intervention 5 mai 2009
-
9 févr. 2006 à 16:41
Hello le peuple,
J'ai fait une petite horloge en openGL et j'aimerais pouvoir la mettre
à la place de l'arrière plan. Je pense qu'il faut que je lie mon HDC
avec le celui du bureau mais je sais pas comment faire.
Pour le moment mon application s'affiche dans une fenêtre. Voilà la
partie du code, qui à mon avis doit être modifié. Pourriez vous me dire
comment ??
cs_tibur
Messages postés101Date d'inscriptionsamedi 9 février 2002StatutMembreDernière intervention 5 mai 2009 9 févr. 2006 à 16:41
J'ai pas essayé, mais tu peux tester ca ...
tib
How do I draw on the Windows Desktop?
<!--[if !supportEmptyParas]--> <!--[endif]-->
<ol start="1" type="1"><li>MyDC =
GetWindowDC(GetDesktopWindow()) // now you can play with DC - MUST FORCE
Repaints on the window if you muck with it! </li><li>Attach
OGL to it here </li><li>Do OGL
stuff here </li><li>Release
OGL here </li><li>ReleaseDC(MyDC)</li></ol>