Ciao.
Sto cercando di gestire le mie toolbar in MFC in un modo piu' "solido".
Il problema č che le toolbar a volte perdono la posizione , a volte non vengono ripristinate correttamente ecc....
la mie idea sarebbe quella di ereditare una classe mytoolbar da ctoolbar e andare a gestire l'evento:WM_WINDOWPOSCHANGED(Non sono sicuro che sia l'evento corretto , vorrei l'evento che si scatena quando č stato fatto un cambiamento sulla toolbar) in modo da salvare la posizione e le altre caratteristiche sul registro ogni volta ce viene effettuato un cambiamento.
Puo' essere un idea? voi come fate(o fareste?)
in particolare ho letto questo:
a questo link:http://www.themssforum.com/MFC/Docking-Toolbar/I've isloated my docking bug to the MFC function CDockBar::Insert(...). It
appears the if you have an undocked or hidden toolbar in the middle of a
toolbar row it assumes that is the end of the row and throws off the
calculation on which toolbar to insert after. Boy, this seems like a huge
glaring bug in MFC. Yet it appears to have been around for years.
ma non ho capito del tutto.