Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problems entering numbers into an Array & doing Bubble Sort & Selection Sort Pin
CPallini3-Feb-08 2:39
mveCPallini3-Feb-08 2:39 
GeneralHelp with a simple Paint clone in Win32 Pin
Lord Kixdemp2-Feb-08 9:59
Lord Kixdemp2-Feb-08 9:59 
GeneralRe: Help with a simple Paint clone in Win32 Pin
CPallini2-Feb-08 11:11
mveCPallini2-Feb-08 11:11 
GeneralRe: Help with a simple Paint clone in Win32 Pin
Lord Kixdemp2-Feb-08 14:16
Lord Kixdemp2-Feb-08 14:16 
QuestionSVG window Pin
neilsolent2-Feb-08 8:27
neilsolent2-Feb-08 8:27 
GeneralRe: SVG window Pin
Gary R. Wheeler3-Feb-08 0:51
Gary R. Wheeler3-Feb-08 0:51 
GeneralRe: SVG window Pin
neilsolent3-Feb-08 6:29
neilsolent3-Feb-08 6:29 
QuestionProblem with Doc-View Application Pin
Member 4431372-Feb-08 7:30
Member 4431372-Feb-08 7:30 
Hi,

I ahve a problem with one of my Doc-View Application. In fact, I am novice in doc-view apps. I have a CFormView based SDI app coded in Visual C++ 6.0 environment. The user interface has three modeless dialogs embedded in a CTabCtrl, One ChartCtrl and CListCtrl. I observed a funny behaviour while opening a stored document (not Word document) by double clicking on it. The view is not getting updated correctly. But if I open the the file by File-> Open command, every thing working fine.
Let me explain a bit about how I coded the app for better comprehension.
1. The document has a user defined class which handles the serialization on its own (based on Ravi Bhavnani code).

2. The List control paints its contents using NMCustomDraw feature.

3. By digging into the code I could find that OnNewDocument() function is not getting called while opening tha App from Shell (i.e. by double clicking on the file), instead the OnOpenDocument() is called. And all other Doc->DeleteContents() and Serailization, View->IntialUpdate() and View->OnUpdate() working OK but the List Control not getting updated.

4. But if you open the file by File ->Open command, since the SDI app gets started with a new document every thing looks OK.

5. Same is the case by opening with command line Start-> Run-> MyApp xyz.tnf .

6. I found even the OnCustomDraw() function getting called.

7. I then tried to get into the undocumented DocManager classes etc. but I couldn't get much help. Even opening file from the Shell, I find App gets one empty document. This I got confirmed with DocManager class other functions.

Finally what I could find is that, the View and Document connection in the low level framework is at fault.

I would be grateful for any help in this regard.

I remain,
Shanmukha
GeneralWell in debug version, but not in release version [Updated] [modified] Pin
followait2-Feb-08 6:50
followait2-Feb-08 6:50 
GeneralRe: Well in debug version, but not in release version [Updated] Pin
Mr. Surprise2-Feb-08 7:11
Mr. Surprise2-Feb-08 7:11 
GeneralRe: Well in debug version, but not in release version [Updated] Pin
followait2-Feb-08 21:52
followait2-Feb-08 21:52 
GeneralRe: Well in debug version, but not in release version [Updated] Pin
followait2-Feb-08 22:14
followait2-Feb-08 22:14 
GeneralRe: Well in debug version, but not in release version [Updated] Pin
Mr. Surprise3-Feb-08 1:42
Mr. Surprise3-Feb-08 1:42 
GeneralRe: Well in debug version, but not in release version [Updated] Pin
followait3-Feb-08 2:09
followait3-Feb-08 2:09 
GeneralHelp - need download location for Visual studio 6 Pin
rajas2-Feb-08 4:29
rajas2-Feb-08 4:29 
JokeRe: Help - need download location for Visual studio 6 Pin
Johpoke2-Feb-08 7:28
Johpoke2-Feb-08 7:28 
GeneralRe: Help - need download location for Visual studio 6 Pin
Mark Salsbery2-Feb-08 7:46
Mark Salsbery2-Feb-08 7:46 
GeneralRe: Help - need download location for Visual studio 6 Pin
Johpoke2-Feb-08 7:48
Johpoke2-Feb-08 7:48 
GeneralRe: Help - need download location for Visual studio 6 Pin
Mark Salsbery2-Feb-08 7:49
Mark Salsbery2-Feb-08 7:49 
GeneralRe: Help - need download location for Visual studio 6 Pin
Mark Salsbery2-Feb-08 7:47
Mark Salsbery2-Feb-08 7:47 
GeneralRe: Help - need download location for Visual studio 6 Pin
Gary R. Wheeler3-Feb-08 0:59
Gary R. Wheeler3-Feb-08 0:59 
GeneralRe: Help - need download location for Visual studio 6 Pin
Mark Salsbery3-Feb-08 6:20
Mark Salsbery3-Feb-08 6:20 
GeneralRe: Help - need download location for Visual studio 6 Pin
Gary R. Wheeler4-Feb-08 23:57
Gary R. Wheeler4-Feb-08 23:57 
GeneralRe: Help - need download location for Visual studio 6 Pin
Mark Salsbery5-Feb-08 5:26
Mark Salsbery5-Feb-08 5:26 
GeneralRe: Help - need download location for Visual studio 6 Pin
Gary R. Wheeler5-Feb-08 13:04
Gary R. Wheeler5-Feb-08 13: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.