Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Richard MacCutchan27-Jun-11 22:17
mveRichard MacCutchan27-Jun-11 22:17 
You seem to be confused about both C++ and Windows here; you cannot cast a CDocument object to an HWND since the one is not derived from, or the same 'shape' as, the other. A CDocument object is an instance of a class and an HWND is a Windows handle. There is also no mechanism within the CDocument class to receive windows messages. You could create a special command that will be handled by your CDocument class, and then send that command to your main or view window. Alternatively you could call the method of your document directly after your dialog has completed by checking some value within your CDialog class. If you really want to understand command and message handling in MFC then read this excellent paper[^] which Iain Clarke[^] pointed me at only yesterday.
The best things in life are not things.

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 
GeneralRe: MoveWindow dynamically - how to determine the destination? Pin
Albert Holguin27-Jun-11 8:19
professionalAlbert Holguin27-Jun-11 8:19 

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.