Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Terminating a thread from a different thread Pin
Blake Miller28-Sep-04 6:36
Blake Miller28-Sep-04 6:36 
GeneralHow about this? Pin
BlackDice28-Sep-04 6:57
BlackDice28-Sep-04 6:57 
GeneralRe: How about this? Pin
Blake Miller28-Sep-04 7:09
Blake Miller28-Sep-04 7:09 
GeneralRe: How about this? Pin
BlackDice28-Sep-04 7:42
BlackDice28-Sep-04 7:42 
GeneralRe: How about this? Pin
Blake Miller28-Sep-04 7:52
Blake Miller28-Sep-04 7:52 
GeneralRe: How about this? Pin
BlackDice28-Sep-04 11:02
BlackDice28-Sep-04 11:02 
GeneralRe: Terminating a thread from a different thread Pin
Neville Franks28-Sep-04 10:35
Neville Franks28-Sep-04 10:35 
GeneralMessage lost when sending to split windows Pin
mike-o28-Sep-04 6:03
mike-o28-Sep-04 6:03 
Hi all,

I'm having a problem with my CSplitterWnd SDI app ...

It's split into 2 frames, with a CEditView on the left side, and a CDialog panel on the right with some button controls on it. After I click a button on the right panel, then do a menu->file->print, I catch a ID_FILE_PRINT message in CMainFrame. I'd like to send this to my view.

Here's my code to do this:
<br />
	MainFrm.cpp -- OnFilePrint(....)<br />
<br />
	CMYEDITView  *pView = (CMYEDITView *)m_wndSplitter.GetPane(0,0);<br />
	pView->SendMessage(ID_FILE_PRINT_PREVIEW);<br />

The message is never received by the CEditView's message map.

My question is this: Do I need to do anything special to set focus to this view before sending the Message? or is something else wrong here?


Thanks a million,

Mike

"I bet Einstein turned himself all sorts of colors before he invented the light bulb." -- Homer J.
GeneralRe: Message lost when sending to split windows Pin
Sujan Christo28-Sep-04 19:40
Sujan Christo28-Sep-04 19:40 
GeneralCustom Shell handler Pin
Jim Crafton28-Sep-04 6:00
Jim Crafton28-Sep-04 6:00 
GeneralRe: Custom Shell handler Pin
David Crow28-Sep-04 9:54
David Crow28-Sep-04 9:54 
QuestionHow to change menu item propeties ? Pin
zakarias28-Sep-04 5:22
zakarias28-Sep-04 5:22 
AnswerRe: How to change menu item propeties ? Pin
Antony M Kancidrowski28-Sep-04 6:10
Antony M Kancidrowski28-Sep-04 6:10 
GeneralTerminating a Thread Pin
sweep12328-Sep-04 4:34
sweep12328-Sep-04 4:34 
GeneralRe: Terminating a Thread Pin
Blake Miller28-Sep-04 4:49
Blake Miller28-Sep-04 4:49 
GeneralRe: Terminating a Thread Pin
sweep12328-Sep-04 6:11
sweep12328-Sep-04 6:11 
GeneralRe: Terminating a Thread Pin
Blake Miller28-Sep-04 6:28
Blake Miller28-Sep-04 6:28 
Questiondoc/view ??? Pin
Plons28-Sep-04 4:08
Plons28-Sep-04 4:08 
AnswerRe: doc/view ??? Pin
HENDRIK R28-Sep-04 4:55
HENDRIK R28-Sep-04 4:55 
AnswerRe: doc/view ??? Pin
David Crow28-Sep-04 5:43
David Crow28-Sep-04 5:43 
GeneralHandle of the View Pin
Neelesh K J Jain28-Sep-04 4:06
Neelesh K J Jain28-Sep-04 4:06 
GeneralRe: Handle of the View Pin
David Crow28-Sep-04 5:51
David Crow28-Sep-04 5:51 
GeneralRe: Handle of the View Pin
Sujan Christo28-Sep-04 8:57
Sujan Christo28-Sep-04 8:57 
GeneralPrinting help! Pin
Larsson28-Sep-04 3:37
Larsson28-Sep-04 3:37 
GeneralRe: Printing help! Pin
Andrzej Markowski3-Oct-04 14:23
Andrzej Markowski3-Oct-04 14:23 

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.