My application have 2 tool bars of type SECCustomToolBar. I am saving the toolbar info to registry using SaveBarstate function. My app have File->Open option which loads a config file and loads the toolbar with corresponding registry values. I am using LoadBarState function to load the values.

My prblem is, whenever i load a file the painting of the control bar is not working properly. Looks like some refresh problem only in the control bar regions.

Its working fine when i compiled with 32bit and run in XP. But problem occurs in 64bit window7 version.

Please help me to solve the issue.