Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CAsynSocket CWinthread Question Pin
ForNow7-Aug-09 12:10
ForNow7-Aug-09 12:10 
GeneralRe: CAsynSocket CWinthread Question Pin
ForNow7-Aug-09 12:18
ForNow7-Aug-09 12:18 
GeneralRe: CAsynSocket CWinthread Question Pin
sashoalm8-Aug-09 1:15
sashoalm8-Aug-09 1:15 
GeneralRe: CAsynSocket CWinthread Question Pin
ForNow9-Aug-09 2:35
ForNow9-Aug-09 2:35 
GeneralRe: CAsynSocket CWinthread Question Pin
sashoalm9-Aug-09 23:01
sashoalm9-Aug-09 23:01 
GeneralRe: CAsynSocket CWinthread Question Pin
ForNow10-Aug-09 2:50
ForNow10-Aug-09 2:50 
GeneralRe: CAsynSocket CWinthread Question Pin
sashoalm10-Aug-09 4:31
sashoalm10-Aug-09 4:31 
GeneralRe: CAsynSocket CWinthread Question Pin
ForNow10-Aug-09 12:34
ForNow10-Aug-09 12:34 
Questionpointer Pin
kumarashoka6-Aug-09 2:31
kumarashoka6-Aug-09 2:31 
AnswerRe: pointer Pin
CPallini6-Aug-09 2:35
mveCPallini6-Aug-09 2:35 
AnswerRe: pointer Pin
sam_psycho6-Aug-09 10:26
sam_psycho6-Aug-09 10:26 
AnswerRe: pointer Pin
David Crow6-Aug-09 10:36
David Crow6-Aug-09 10:36 
Questionhow to disconnect from internet? Pin
Joseph Marzbani6-Aug-09 2:11
Joseph Marzbani6-Aug-09 2:11 
AnswerRe: how to disconnect from internet? [modified] Pin
Adam Roderick J6-Aug-09 17:58
Adam Roderick J6-Aug-09 17:58 
QuestionPrint Preview on Main frame in MDI Application Pin
Harsh Shankar6-Aug-09 2:01
Harsh Shankar6-Aug-09 2:01 
AnswerRe: Print Preview on Main frame in MDI Application Pin
sashoalm6-Aug-09 22:19
sashoalm6-Aug-09 22:19 
GeneralRe: Print Preview on Main frame in MDI Application Pin
Harsh Shankar6-Aug-09 22:42
Harsh Shankar6-Aug-09 22:42 
GeneralRe: Print Preview on Main frame in MDI Application Pin
sashoalm6-Aug-09 23:08
sashoalm6-Aug-09 23:08 
GeneralRe: Print Preview on Main frame in MDI Application Pin
Harsh Shankar6-Aug-09 23:26
Harsh Shankar6-Aug-09 23:26 
Hi,
Thanks for quick reply.

sashoalm wrote:
try to place the code I posted in CMainFrame::OnFilePrintPreview


There is an issue in doing as you are saying but there is no such function "DoPrintPreview" in class CMDIFrameWndEx from which the CmainFrame Class is derived..
However, i already have tried:
CView *pView = GetActiveFrame()->GetActiveView();
if(pView == NULL)
{
	return;
}
CPrintPreviewState* pState = new CPrintPreviewState;
    
if (!pView->DoPrintPreview(AFX_IDD_PREVIEW_TOOLBAR, pView,
	RUNTIME_CLASS(CPreviewView), pState))
{
	delete pState; // Preview failed to initialize, delete State now.
	pState = NULL;
}

But it prepares the preview in the same document only and not capturing the frame.
And this not what i wanted Frown | :(

Please suggess something else.

HARSH

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

GeneralRe: Print Preview on Main frame in MDI Application Pin
sashoalm7-Aug-09 0:17
sashoalm7-Aug-09 0:17 
GeneralRe: Print Preview on Main frame in MDI Application Pin
Harsh Shankar7-Aug-09 0:47
Harsh Shankar7-Aug-09 0:47 
GeneralRe: Print Preview on Main frame in MDI Application Pin
sashoalm7-Aug-09 1:57
sashoalm7-Aug-09 1:57 
GeneralRe: Print Preview on Main frame in MDI Application Pin
Harsh Shankar7-Aug-09 3:26
Harsh Shankar7-Aug-09 3:26 
GeneralRe: Print Preview on Main frame in MDI Application Pin
sashoalm7-Aug-09 4:29
sashoalm7-Aug-09 4:29 
GeneralRe: Print Preview on Main frame in MDI Application Pin
sashoalm7-Aug-09 4:36
sashoalm7-Aug-09 4:36 

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.