Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDevice contexts Pin
Anonymous21-May-05 15:43
Anonymous21-May-05 15:43 
GeneralRe: Device contexts Pin
Blake V. Miller21-May-05 18:20
Blake V. Miller21-May-05 18:20 
GeneralDynamic splliter windows Pin
Anonymous21-May-05 15:01
Anonymous21-May-05 15:01 
GeneralSerialization Pin
Anonymous21-May-05 15:00
Anonymous21-May-05 15:00 
GeneralRe: Serialization Pin
Tom Archer21-May-05 15:13
Tom Archer21-May-05 15:13 
GeneralRe: Serialization Pin
Ravi Bhavnani22-May-05 5:50
professionalRavi Bhavnani22-May-05 5:50 
GeneralRe: Serialization Pin
David Crow23-May-05 2:48
David Crow23-May-05 2:48 
GeneralRestoring Multiple Toolbars Pin
Ron Ritchie21-May-05 12:58
Ron Ritchie21-May-05 12:58 
I'm updating a MFC app by, among other things, adding a second dockable toolbar to it. Its original toolbar has been there a long time and it works fine: in particular, if you move it around in the frame and close the application, it turns up in the same location you left it the next time the application is opened again. (Its information is preserved and retrieved with a single pair of SaveBarState and LoadBarState calls.)

Not wanting to meddle with what works, I created the second toolbar by basically copying the code which implemented the first. It gets created at the same point in code, with the same properties, in the same way. By and large it works well, but it falls down in one important respect; the new toolbar always appears docked in the upper left corner position whenever the application starts up, even if you moved it somewhere else.Frown | :(

Has anyone else experienced this? Do SaveBarState and LoadBarState have some limitation with multiple toolbars I don't know about? Or is there some better mechanism for managing these which I don't know about?

Ron Ritchie
GeneralRe: Restoring Multiple Toolbars Pin
Jack Puppy21-May-05 20:44
Jack Puppy21-May-05 20:44 
GeneralRe: Restoring Multiple Toolbars Pin
Ron Ritchie25-May-05 11:52
Ron Ritchie25-May-05 11:52 
GeneralRun in memory Pin
Dennis L21-May-05 11:50
Dennis L21-May-05 11:50 
GeneralRe: Run in memory Pin
Alexander M.,21-May-05 12:55
Alexander M.,21-May-05 12:55 
GeneralRe: Run in memory Pin
autodebug21-May-05 17:20
autodebug21-May-05 17:20 
GeneralWindow Hook overhead Pin
peterchen21-May-05 10:48
peterchen21-May-05 10:48 
Generalturning images Pin
SuperTank21-May-05 8:22
SuperTank21-May-05 8:22 
Generalname of the node Pin
rgchezhian21-May-05 7:05
rgchezhian21-May-05 7:05 
GeneralRe: name of the node Pin
Prakash Nadar21-May-05 19:15
Prakash Nadar21-May-05 19:15 
GeneralRe: name of the node Pin
rgchezhian21-May-05 21:03
rgchezhian21-May-05 21:03 
Generalnotification Pin
Anonymous21-May-05 5:21
Anonymous21-May-05 5:21 
GeneralRe: notification Pin
Ravi Bhavnani21-May-05 6:01
professionalRavi Bhavnani21-May-05 6:01 
GeneralRe: notification Pin
Tom Archer21-May-05 7:22
Tom Archer21-May-05 7:22 
Generalin Win32 (SDK)color After Printing getting too much light Pin
chachva21-May-05 5:05
chachva21-May-05 5:05 
GeneralArghh! Visual C++ deletes project files! Pin
NeverFall21-May-05 4:49
NeverFall21-May-05 4:49 
GeneralRe: Arghh! Visual C++ deletes project files! Pin
Tom Archer21-May-05 4:59
Tom Archer21-May-05 4:59 
GeneralRe: Arghh! Visual C++ deletes project files! Pin
NeverFall21-May-05 5:04
NeverFall21-May-05 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.