Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: const int * Pin
zakkas248324-Sep-07 19:35
zakkas248324-Sep-07 19:35 
QuestionIs it possible to communicate vc++.net and SQL server Pin
Exelioindia24-Sep-07 2:23
Exelioindia24-Sep-07 2:23 
AnswerRe: Is it possible to communicate vc++.net and SQL server Pin
KarstenK24-Sep-07 2:42
mveKarstenK24-Sep-07 2:42 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
Exelioindia24-Sep-07 4:19
Exelioindia24-Sep-07 4:19 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
KarstenK24-Sep-07 4:37
mveKarstenK24-Sep-07 4:37 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
led mike24-Sep-07 4:52
led mike24-Sep-07 4:52 
AnswerRe: Is it possible to communicate vc++.net and SQL server Pin
Mark Salsbery24-Sep-07 7:11
Mark Salsbery24-Sep-07 7:11 
QuestionHow to separate "Print" from menu/toolbar and Preview-Button Pin
Nelek24-Sep-07 1:58
protectorNelek24-Sep-07 1:58 
Hi all,

is there any way to know if the user is calling the print command from the menu/toolbar or from the button "print" that appears in the preview?

I am interested in, because in one of my views, printing is limited to a certain number of elements. The user must choose 8 from (up to) 24 to be shown in the preview / printed in paper.

At the moment, it is needed to choose the elements both times, by preview start and by print start (before choosing the printer and number of copies).

But as the selection has already been made by selecting preview. I would like to send to the printer the same elements that are shown in the preview, so I need to know where the print command is being selected.

I have tried:
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
CParamRegView *pView = (CParamRegView *) pChild->GetActiveView();
if (pView->IsKindOf(RUNTIME_CLASS(CMyView)))
	AfxMessageBox ("CFormView");
else
	AfxMessageBox ("Another");

But I alway get the same message, so it does not separate D'Oh! | :doh:

What should I use to do it?

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

AnswerBad solution, but solved Pin
Nelek26-Sep-07 21:46
protectorNelek26-Sep-07 21:46 
QuestionUsing vector over index? Pin
bosfan24-Sep-07 0:44
bosfan24-Sep-07 0:44 
AnswerRe: Using vector over index? Pin
Cedric Moonen24-Sep-07 0:52
Cedric Moonen24-Sep-07 0:52 
GeneralRe: Using vector over index? Pin
bosfan24-Sep-07 2:27
bosfan24-Sep-07 2:27 
AnswerRe: Using vector over index? Pin
nbugalia24-Sep-07 0:58
nbugalia24-Sep-07 0:58 
GeneralThats much slower Pin
jhwurmbach24-Sep-07 1:23
jhwurmbach24-Sep-07 1:23 
GeneralRe: Thats much slower Pin
bosfan24-Sep-07 3:37
bosfan24-Sep-07 3:37 
AnswerRe: Using vector over index? Pin
Signal-926-Sep-07 15:10
Signal-926-Sep-07 15:10 
QuestionTlsSetValue Pin
nitin324-Sep-07 0:38
nitin324-Sep-07 0:38 
AnswerRe: TlsSetValue Pin
David Crow24-Sep-07 3:04
David Crow24-Sep-07 3:04 
AnswerRe: TlsSetValue Pin
DevMentor.org24-Sep-07 7:04
DevMentor.org24-Sep-07 7:04 
QuestionHow to copy Directory in VC++/MFC Pin
Atul2323-Sep-07 23:49
Atul2323-Sep-07 23:49 
AnswerRe: How to copy Directory in VC++/MFC Pin
nbugalia23-Sep-07 23:59
nbugalia23-Sep-07 23:59 
AnswerRe: How to copy Directory in VC++/MFC Pin
Hamid_RT24-Sep-07 0:36
Hamid_RT24-Sep-07 0:36 
QuestionPlease help Pin
rajeevktripathi23-Sep-07 23:34
rajeevktripathi23-Sep-07 23:34 
AnswerRe: Please help Pin
nbugalia23-Sep-07 23:44
nbugalia23-Sep-07 23:44 
AnswerRe: Please help Pin
baerten23-Sep-07 23:45
baerten23-Sep-07 23:45 

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.