Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Recomended books Pin
User 5838525-Feb-08 18:41
User 5838525-Feb-08 18:41 
GeneralRe: Recomended books Pin
Hamid_RT5-Feb-08 19:38
Hamid_RT5-Feb-08 19:38 
Questiondevice context problem Pin
trioum5-Feb-08 17:56
trioum5-Feb-08 17:56 
QuestionRe: device context problem Pin
Hamid_RT5-Feb-08 19:40
Hamid_RT5-Feb-08 19:40 
GeneralRe: device context problem Pin
Iain Clarke, Warrior Programmer5-Feb-08 21:58
Iain Clarke, Warrior Programmer5-Feb-08 21:58 
GeneralRe: device context problem Pin
Rajkumar R5-Feb-08 22:16
Rajkumar R5-Feb-08 22:16 
Generalstl trickery [modified] Pin
User 5838525-Feb-08 16:49
User 5838525-Feb-08 16:49 
GeneralA child window with a title bar higlighted. Pin
junjuanillo5-Feb-08 16:14
junjuanillo5-Feb-08 16:14 
GeneralRe: A child window with a title bar higlighted. Pin
Mark Salsbery6-Feb-08 6:26
Mark Salsbery6-Feb-08 6:26 
GeneralRe: A child window with a title bar higlighted. Pin
junjuanillo6-Feb-08 15:10
junjuanillo6-Feb-08 15:10 
GeneralDetermining whether input is string or integer Pin
Klazen5-Feb-08 10:56
Klazen5-Feb-08 10:56 
GeneralRe: Determining whether input is string or integer Pin
led mike5-Feb-08 12:23
led mike5-Feb-08 12:23 
GeneralRe: Determining whether input is string or integer Pin
Klazen5-Feb-08 13:36
Klazen5-Feb-08 13:36 
GeneralRe: Determining whether input is string or integer Pin
led mike6-Feb-08 5:27
led mike6-Feb-08 5:27 
GeneralRe: Determining whether input is string or integer Pin
David Crow5-Feb-08 13:47
David Crow5-Feb-08 13:47 
GeneralRe: Determining whether input is string or integer Pin
Klazen5-Feb-08 13:52
Klazen5-Feb-08 13:52 
QuestionRe: Determining whether input is string or integer Pin
David Crow5-Feb-08 17:06
David Crow5-Feb-08 17:06 
GeneralRe: Determining whether input is string or integer Pin
cp98765-Feb-08 16:10
cp98765-Feb-08 16:10 
GeneralRe: Determining whether input is string or integer Pin
User 5838525-Feb-08 17:08
User 5838525-Feb-08 17:08 
GeneralRe: Determining whether input is string or integer Pin
Gregory Bryant5-Feb-08 18:20
Gregory Bryant5-Feb-08 18:20 
GeneralRe: Determining whether input is string or integer Pin
Cedric Moonen5-Feb-08 20:59
Cedric Moonen5-Feb-08 20:59 
GeneralRe: Determining whether input is string or integer Pin
Christian Graus7-Mar-08 23:26
protectorChristian Graus7-Mar-08 23:26 
GeneralA Problem with Doc-View SDI App Pin
Member 4431375-Feb-08 6:34
Member 4431375-Feb-08 6:34 
Hi,

I am just once again posting the question which I have posted a couple of days back. Of course, it hasn't attracted any member attention, but I am just posting again now with a hope that some members may respond. I assure you all that I don't bother and abuse this forum again by repeating the same question. Kindly understand.

Shanmukha

Hi,

I have 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
GeneralCTreeCtrl lables help please Pin
sarat5-Feb-08 3:31
sarat5-Feb-08 3:31 
NewsRe: CTreeCtrl lables help please Pin
Iain Clarke, Warrior Programmer5-Feb-08 6:19
Iain Clarke, Warrior Programmer5-Feb-08 6:19 

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.