Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is mfc still popular now? Pin
jhwurmbach24-Sep-07 3:44
jhwurmbach24-Sep-07 3:44 
QuestionRe: Is mfc still popular now? Pin
David Crow24-Sep-07 4:04
David Crow24-Sep-07 4:04 
GeneralRe: Is mfc still popular now? Pin
led mike24-Sep-07 4:48
led mike24-Sep-07 4:48 
AnswerRe: Is mfc still popular now? Pin
Nishad S24-Sep-07 3:15
Nishad S24-Sep-07 3:15 
GeneralRe: Is mfc still popular now? Pin
bornunique24-Sep-07 3:24
bornunique24-Sep-07 3:24 
AnswerRe: Is mfc still popular now? Pin
Hamid_RT24-Sep-07 3:36
Hamid_RT24-Sep-07 3:36 
GeneralRe: Is mfc still popular now? Pin
Cedric Moonen24-Sep-07 3:53
Cedric Moonen24-Sep-07 3:53 
GeneralRe: Is mfc still popular now? Pin
Hamid_RT24-Sep-07 4:15
Hamid_RT24-Sep-07 4:15 
GeneralRe: Is mfc still popular now? Pin
jhwurmbach24-Sep-07 4:32
jhwurmbach24-Sep-07 4:32 
AnswerRe: Is mfc still popular now? Pin
bob1697224-Sep-07 6:01
bob1697224-Sep-07 6:01 
AnswerRe: Is mfc still popular now? Pin
Mark Salsbery24-Sep-07 7:04
Mark Salsbery24-Sep-07 7:04 
AnswerRe: Is mfc still popular now? Pin
Signal-926-Sep-07 15:07
Signal-926-Sep-07 15:07 
Questionconst int * Pin
Shraddha Gautam24-Sep-07 2:27
Shraddha Gautam24-Sep-07 2:27 
AnswerRe: const int * Pin
James R. Twine24-Sep-07 2:36
James R. Twine24-Sep-07 2:36 
AnswerRe: const int * Pin
KarstenK24-Sep-07 2:39
mveKarstenK24-Sep-07 2:39 
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 

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.