Click here to Skip to main content
15,902,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in getting a field value of a dialog Pin
jhwurmbach19-Aug-02 21:36
jhwurmbach19-Aug-02 21:36 
QuestionHow to create CListCtrl ?? Pin
tulc_kris19-Aug-02 19:11
tulc_kris19-Aug-02 19:11 
AnswerRe: How to create CListCtrl ?? Pin
Shog919-Aug-02 19:24
sitebuilderShog919-Aug-02 19:24 
GeneralRe: How to create CListCtrl ?? Pin
tulc_kris19-Aug-02 20:14
tulc_kris19-Aug-02 20:14 
GeneralRe: How to create CListCtrl ?? Pin
Shog920-Aug-02 2:31
sitebuilderShog920-Aug-02 2:31 
GeneralDDE Pin
udayGovekar19-Aug-02 18:46
udayGovekar19-Aug-02 18:46 
GeneralRe: DDE Pin
Paul M Watt19-Aug-02 19:07
mentorPaul M Watt19-Aug-02 19:07 
GeneralClose a view, Urgent!!! Pin
JamesYang19-Aug-02 17:23
JamesYang19-Aug-02 17:23 
How to automatically close the view after clicking print button on (file print)preview window?

After calling OnEndPrinting(), the frame will call OnDraw() automatically so that I write pChild->PostMessage(WM_CLOSE) in it.

When printing job is little(a few pages) is OK, but if printing hundreds pages, the problems occur (MFC42D.dll violation). The problem I suppose is because CDC* pDC of OnPrint(CDC* pDC, CPrintInfo* pInfo) is sent to printer very slowly(I can read page number from print dialog), when OnDraw() is executed, view is destroyed, so that pDC is no more existed.

if I delete pChild->PostMessage(WM_CLOSE) from OnDraw(),
no problem at all but blank view will show(no code in OnDraw()).I can close view by clicking close button(upper right corner of window) but this is not allowed.

I also try to hide this view but it doesn't work if program run dozens time(memory leak).

I try to solve this problem for weeks but ...
Please give me your advice. Thanks a lot



YJ
GeneralRe: Close a view, Urgent!!! Pin
Michael Dunn19-Aug-02 17:54
sitebuilderMichael Dunn19-Aug-02 17:54 
QuestionHow to put a pic as output? Pin
Masta G19-Aug-02 16:35
Masta G19-Aug-02 16:35 
AnswerRe: How to put a pic as output? Pin
Christian Graus19-Aug-02 16:56
protectorChristian Graus19-Aug-02 16:56 
GeneralRe: How to put a pic as output? Pin
Anonymous26-Aug-02 13:53
Anonymous26-Aug-02 13:53 
GeneralRe: How to put a pic as output? Pin
Masta G26-Aug-02 14:03
Masta G26-Aug-02 14:03 
GeneralRe: How to put a pic as output? Pin
Christian Graus26-Aug-02 17:10
protectorChristian Graus26-Aug-02 17:10 
GeneralSendInput() compiler still report "undeclared identifier" Pin
mmlxl19-Aug-02 15:04
mmlxl19-Aug-02 15:04 
GeneralRe: SendInput() compiler still report "undeclared identifier" Pin
Paul M Watt19-Aug-02 18:21
mentorPaul M Watt19-Aug-02 18:21 
GeneralMultiple calls to WaitForSingleObject within the same thread Pin
Le centriste19-Aug-02 15:02
Le centriste19-Aug-02 15:02 
GeneralRe: Multiple calls to WaitForSingleObject within the same thread Pin
Michael Dunn19-Aug-02 17:05
sitebuilderMichael Dunn19-Aug-02 17:05 
Generaltemplate question Pin
Ancient Dragon19-Aug-02 14:53
Ancient Dragon19-Aug-02 14:53 
GeneralRe: template question Pin
Chris Losinger19-Aug-02 16:53
professionalChris Losinger19-Aug-02 16:53 
GeneralCommand Message Handlers Pin
Stew19-Aug-02 14:34
Stew19-Aug-02 14:34 
GeneralRe: Command Message Handlers Pin
567890123419-Aug-02 20:46
567890123419-Aug-02 20:46 
Generalhtml documentation template Pin
Wes Jones19-Aug-02 12:54
Wes Jones19-Aug-02 12:54 
QuestionWhen to use "inline"? Pin
User 665819-Aug-02 12:16
User 665819-Aug-02 12:16 
AnswerRe: When to use "inline"? Pin
Christian Graus19-Aug-02 12:33
protectorChristian Graus19-Aug-02 12:33 

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.