• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Determining Active View :: MFC

kuphryn

Senior member
Hi.

I can considering to add a new feature to a program I am current working on. I will explain briefly on the program.

I am working on a program that is basically a text editor. it looks and feels almost like Notepad.

I want to add a feature similar that includes a split view. The program will operate using two views. The views are split in horizontally. The top view is the original text. So if the user opens a text file that has "Hello MFC," then the program will always display the original text on the top view. The second view located at the bottom is the modified view. I have a feature in the program where, for example, it will seach a text file and capitalize the first letter of a sentence. Once done, I want to display the modified text in the second view.

I would like to know the best approach for something like that with these key feature:

1) separate and unique saves
--- the user can save *both* files separately. the save features on the menu applies to the original text (top view).

What is the best approach to somehow mark what view the user wants to save? I have two ideas.

1) upon save, the program would save whatever view is *active* (cursor).

2) have a second toolbar for the view #2

I am not sure how to implement either of the above. I tried adding a second toolbar, but the program ignores it (I did not see it).

Thanks,
Kuphryn
 
Back
Top