Bonjour!
J'ai créé un CScrollView et j'ai mis le code suivant dans le OnCreate :
Le hic, c'est que ça plante au moment du CreateEx. Pourquoi? Est-ce impossible de mettre une toolbar sur autre chose qu'un CFrameWnd
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17:
Y'a-t-il d'autres étapes que j'aurais zappé, parce que d'après la doc il suffit deet je crois avoir tout fait correctement...
- Create a toolbar resource.
- Construct the CToolBar object.
- Call the Create (or CreateEx) function to create the Windows toolbar and attach it to the CToolBar object.
- Call LoadToolBar to load the toolbar resource

 

 
		
		 
        

 
			
			




 Tooolbar sur Scrollview
 Tooolbar sur Scrollview
				 Répondre avec citation
  Répondre avec citation
Partager