Click here to Skip to main content
15,894,540 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Comparing two strings, works in debug, fails in release Pin
jhwurmbach5-Feb-07 22:57
jhwurmbach5-Feb-07 22:57 
AnswerRe: Comparing two strings, works in debug, fails in release Pin
ThatsAlok6-Feb-07 19:59
ThatsAlok6-Feb-07 19:59 
GeneralRe: Comparing two strings, works in debug, fails in release Pin
Anthony Mushrow7-Feb-07 2:17
professionalAnthony Mushrow7-Feb-07 2:17 
QuestionFunction nesting error Pin
dellthinker5-Feb-07 13:43
dellthinker5-Feb-07 13:43 
AnswerRe: Function nesting error Pin
Mark Salsbery5-Feb-07 13:48
Mark Salsbery5-Feb-07 13:48 
AnswerWhat are you doing ?!! ;) Pin
Mohammad Rastkar5-Feb-07 15:57
Mohammad Rastkar5-Feb-07 15:57 
AnswerRe: Function nesting error Pin
Stephen Hewitt5-Feb-07 16:13
Stephen Hewitt5-Feb-07 16:13 
QuestionUpdateData() Behavior Pin
Makakuin5-Feb-07 10:50
Makakuin5-Feb-07 10:50 
AnswerRe: UpdateData() Behavior Pin
David Crow5-Feb-07 11:01
David Crow5-Feb-07 11:01 
GeneralRe: UpdateData() Behavior Pin
Makakuin5-Feb-07 11:05
Makakuin5-Feb-07 11:05 
AnswerRe: UpdateData() Behavior Pin
Makakuin5-Feb-07 11:13
Makakuin5-Feb-07 11:13 
GeneralRe: UpdateData() Behavior Pin
Mark Salsbery5-Feb-07 11:25
Mark Salsbery5-Feb-07 11:25 
GeneralRe: UpdateData() Behavior Pin
Makakuin5-Feb-07 11:28
Makakuin5-Feb-07 11:28 
GeneralRe: UpdateData() Behavior Pin
Roger Stoltz5-Feb-07 11:30
Roger Stoltz5-Feb-07 11:30 
GeneralRe: UpdateData() Behavior Pin
Mark Salsbery5-Feb-07 11:48
Mark Salsbery5-Feb-07 11:48 
GeneralRe: UpdateData() Behavior Pin
Stephen Hewitt5-Feb-07 12:38
Stephen Hewitt5-Feb-07 12:38 
GeneralRe: UpdateData() Behavior Pin
Gary R. Wheeler5-Feb-07 12:42
Gary R. Wheeler5-Feb-07 12:42 
GeneralRe: UpdateData() Behavior Pin
Roger Stoltz5-Feb-07 21:57
Roger Stoltz5-Feb-07 21:57 
GeneralRe: UpdateData() Behavior Pin
Mark Salsbery6-Feb-07 8:36
Mark Salsbery6-Feb-07 8:36 
GeneralRe: UpdateData() Behavior Pin
Roger Stoltz6-Feb-07 11:46
Roger Stoltz6-Feb-07 11:46 
GeneralRe: UpdateData() Behavior Pin
Mark Salsbery6-Feb-07 15:55
Mark Salsbery6-Feb-07 15:55 
GeneralRe: UpdateData() Behavior Pin
Gary R. Wheeler6-Feb-07 12:07
Gary R. Wheeler6-Feb-07 12:07 
GeneralRe: UpdateData() Behavior Pin
Roger Stoltz6-Feb-07 12:41
Roger Stoltz6-Feb-07 12:41 
AnswerRe: UpdateData() Behavior Pin
ThatsAlok6-Feb-07 20:00
ThatsAlok6-Feb-07 20:00 
QuestionMake MFC View "read only" while allowing viewing, scrolling etc. Pin
lctrncs5-Feb-07 9:43
lctrncs5-Feb-07 9:43 
The MFC SDI program has a document/view architecture and a dialog based flat file database.

At times,

1. the rich text in the view must be "read only" (preferably the user is unable to obtain focus in the view)

2. while the user makes changes to the database

3. and saves the changes to the document as a whole (which of course does not contain any changes to the rich text the user can read but not edit in the view).

At other times, all parts of the document view and database are availble for edit and save.

QUESTION: How does one prevent changes to the view while allowing full "read only" access (including scrolling) of the rich text in the view (preferably from OnInitialUpdate), and still allow editing and normal file save (savemodified and dosave) for the (changed) dialog-based database?

NOTE: Using PretranslateMessage in the Doc file traps keyboard input for a partial resolution, however, it also disables the scroll bar so only one page of the view may be displayed.

SUGGESTIONS?

Thanks.




"For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." Richard Feynman, Minority Report to the Official Report on the Space Shuttle Challenger Crash

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.