Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 8:44
Dansveen28-Jun-11 8:44 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 9:31
professionalAlbert Holguin28-Jun-11 9:31 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 15:17
Dansveen28-Jun-11 15:17 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin29-Jun-11 4:30
professionalAlbert Holguin29-Jun-11 4:30 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Peter_in_278028-Jun-11 15:00
professionalPeter_in_278028-Jun-11 15:00 
QuestionHow to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:25
Odysseas Z27-Jun-11 10:25 
QuestionRe: How to Send/Post Message to a CDocument object? Pin
David Crow27-Jun-11 10:44
David Crow27-Jun-11 10:44 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:59
Odysseas Z27-Jun-11 10:59 
I just had to call some specific functions of my CDocument derived but I managed to by-pass it..
Anyway I solved my problem but academically speaking I still pose the same question. If someone wants to "trigger" with WM_COMMAND message a CDocument how does he references to it and what does he puts in the first parameter (HWND) of the Send/Post Message function?

The referencing part is easy... http://support.microsoft.com/kb/108587[^]

But the cast from CDocument to HWND SendMessage((HWND)CMyDoc::GetDoc(),...) of course fails... So what does someone do?

Cheers!
O.

GeneralRe: How to Send/Post Message to a CDocument object? Pin
Richard MacCutchan27-Jun-11 22:17
mveRichard MacCutchan27-Jun-11 22:17 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Albert Holguin27-Jun-11 11:41
professionalAlbert Holguin27-Jun-11 11:41 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Vaclav_27-Jun-11 13:44
Vaclav_27-Jun-11 13:44 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Albert Holguin27-Jun-11 15:15
professionalAlbert Holguin27-Jun-11 15:15 
Questionstandard way to parse command line from a string Pin
Ribhi Kamal27-Jun-11 8:59
professionalRibhi Kamal27-Jun-11 8:59 
AnswerRe: standard way to parse command line from a string [modified] Pin
CPallini27-Jun-11 9:48
mveCPallini27-Jun-11 9:48 
AnswerRe: standard way to parse command line from a string Pin
David Crow27-Jun-11 10:05
David Crow27-Jun-11 10:05 
AnswerRe: standard way to parse command line from a string Pin
Richard MacCutchan27-Jun-11 22:07
mveRichard MacCutchan27-Jun-11 22:07 
QuestionIO Completion Ports and windows sockets Pin
csrss27-Jun-11 7:19
csrss27-Jun-11 7:19 
AnswerRe: IO Completion Ports and windows sockets Pin
jschell27-Jun-11 8:14
jschell27-Jun-11 8:14 
GeneralRe: IO Completion Ports and windows sockets Pin
csrss27-Jun-11 8:44
csrss27-Jun-11 8:44 
AnswerRe: IO Completion Ports and windows sockets [modified] Pin
Mark Salsbery27-Jun-11 13:18
Mark Salsbery27-Jun-11 13:18 
GeneralRe: IO Completion Ports and windows sockets Pin
csrss27-Jun-11 14:04
csrss27-Jun-11 14:04 
GeneralRe: IO Completion Ports and windows sockets Pin
Mark Salsbery27-Jun-11 14:13
Mark Salsbery27-Jun-11 14:13 
GeneralRe: IO Completion Ports and windows sockets Pin
csrss27-Jun-11 14:31
csrss27-Jun-11 14:31 
QuestionSOLVED MoveWindow dynamically - how to determine the destination? Pin
Vaclav_27-Jun-11 6:35
Vaclav_27-Jun-11 6:35 
AnswerRe: MoveWindow dynamically - how to determine the destination? Pin
Richard MacCutchan27-Jun-11 7:30
mveRichard MacCutchan27-Jun-11 7:30 

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.