Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My static control flickers when updating it frequently... Pin
Scott H. Settlemier27-Jun-02 9:14
Scott H. Settlemier27-Jun-02 9:14 
GeneralInstall shield Pin
rrrado26-Jun-02 1:13
rrrado26-Jun-02 1:13 
GeneralRe: Install shield Pin
Nish Nishant26-Jun-02 1:55
sitebuilderNish Nishant26-Jun-02 1:55 
GeneralRe: Install shield Pin
rrrado26-Jun-02 2:37
rrrado26-Jun-02 2:37 
GeneralRe: Install shield Pin
User 665826-Jun-02 2:53
User 665826-Jun-02 2:53 
GeneralRe: Install shield Pin
rrrado26-Jun-02 4:14
rrrado26-Jun-02 4:14 
GeneralRe: Install shield Pin
Tommy Svensson26-Jun-02 7:04
Tommy Svensson26-Jun-02 7:04 
QuestionPrinting for one doc, multiple views? Pin
Hel26-Jun-02 0:32
Hel26-Jun-02 0:32 
First a brief explanation...

I am using multiple views with one document in a MDI application in order to view different datasets. There is no files involved I'm using CRecordSet to pull data directly out of an Access database.

I investigated two options of switching views. The first one was creating an extra document template using the same document but attaching it to a different view. When the user choose to view the data I would get the apropriate document Template and create a new frame. The problem with this approach is that I had to create a new document first in order to get an active Child Frame and Document and this created an empty view on the screen that would still hang around looking messy after I closed my new frame. I could simply hide this view but it seems like a messy way of doing things.

The second approach was to create a switch view function in my Child Frame class. Here I get the active view, store a pointer to it, create a new view, show it and hide the old view. This works fine but now when I choose to print from my ChildFrame Menu the main Window printing function gets called. Cry | :(( Why is this happening? Is there a better way of switching the views? Is there light at the end of the tunnel?

Despite being the most comical appearing of all the Martial arts the monkey form should not be laughed at because it is truly one of the world's most deadly defense systems
AnswerRe: Printing for one doc, multiple views? Pin
Roger Allen26-Jun-02 2:40
Roger Allen26-Jun-02 2:40 
GeneralRe: Printing for one doc, multiple views? Pin
Hel26-Jun-02 5:47
Hel26-Jun-02 5:47 
GeneralWindows messaging Pin
BishGada26-Jun-02 0:23
BishGada26-Jun-02 0:23 
GeneralRe: Windows messaging Pin
benjymous26-Jun-02 1:09
benjymous26-Jun-02 1:09 
GeneralRe: Windows messaging Pin
26-Jun-02 1:24
suss26-Jun-02 1:24 
Generalterminate thread Pin
zecodela26-Jun-02 0:10
zecodela26-Jun-02 0:10 
GeneralRe: terminate thread Pin
Rage26-Jun-02 0:42
professionalRage26-Jun-02 0:42 
GeneralRe: terminate thread Pin
zecodela26-Jun-02 15:59
zecodela26-Jun-02 15:59 
GeneralRe: terminate thread Pin
Nish Nishant26-Jun-02 0:47
sitebuilderNish Nishant26-Jun-02 0:47 
GeneralRe: terminate thread Pin
Ramu Pulipati26-Jun-02 17:39
Ramu Pulipati26-Jun-02 17:39 
GeneralRe: terminate thread Pin
zecodela26-Jun-02 17:55
zecodela26-Jun-02 17:55 
GeneralCBitmapButton Pin
turbo19526-Jun-02 0:05
turbo19526-Jun-02 0:05 
GeneralRe: CBitmapButton Pin
Bill Wilson27-Jun-02 10:41
Bill Wilson27-Jun-02 10:41 
QuestionHow to avoid CControlBar show out of a Frame? Pin
Saii Jiang25-Jun-02 23:37
Saii Jiang25-Jun-02 23:37 
GeneralStarting exe in MDI program Pin
JK25-Jun-02 23:23
JK25-Jun-02 23:23 
GeneralRe: Starting exe in MDI program Pin
Nish Nishant26-Jun-02 0:44
sitebuilderNish Nishant26-Jun-02 0:44 
GeneralInstallShield Pin
rrrado25-Jun-02 23:04
rrrado25-Jun-02 23: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.