Solved

Modeless windows

Posted on 1998-07-28
1
202 Views
Last Modified: 2013-11-20
I am writing an application(MDI) that has a modless dialog box with a slider control on it.  As it moves I want to print a number 0-100 in the View window.  Can you give me some ideas on how to do this.
0
Comment
Question by:jimbo011697
1 Comment
 
LVL 1

Accepted Solution

by:
motigust earned 100 total points
ID: 1319852
This is a classic case of Document-View Model.

You sould have a variable in your CDocument derived Object, That holds the current value of your slider, and methods to update it.

The dialog box should be able to call these methods each time the slide is bwing updated. (You can pass a pointer to the CDocument, or to make a function in the CWinApp theat will return the active document).

The CDocument function should call UpdateAllViews each time it changes the value of your variable.

The View should handle this event in the OnUpdate function.

That's a long description, but it is very easy to implement.

Good Luck!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 97
Best tools for Backup and restore of Wordpress site 6 58
Smart Camera scanning and reading information 3 120
Capture logon name 13 100
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question