Click here to Skip to main content
15,925,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 16Bit -> 8 Bit Warning Loss of Data Pin
MarkPQ1-Apr-02 18:23
MarkPQ1-Apr-02 18:23 
GeneralRe: 16Bit -> 8 Bit Warning Loss of Data Pin
Shog91-Apr-02 18:26
sitebuilderShog91-Apr-02 18:26 
GeneralListCtrl Pin
1-Apr-02 17:42
suss1-Apr-02 17:42 
GeneralRe: ListCtrl Pin
Michael Dunn1-Apr-02 21:06
sitebuilderMichael Dunn1-Apr-02 21:06 
QuestionWM_AFXFIRST ??? Pin
Neville Franks1-Apr-02 17:36
Neville Franks1-Apr-02 17:36 
AnswerRe: WM_AFXFIRST ??? Pin
Shog91-Apr-02 18:39
sitebuilderShog91-Apr-02 18:39 
GeneralRe: WM_AFXFIRST ??? Pin
Neville Franks1-Apr-02 19:00
Neville Franks1-Apr-02 19:00 
GeneralCalling a Dialog from another Dialog Pin
Sayan Mukherjee1-Apr-02 17:08
Sayan Mukherjee1-Apr-02 17:08 
Hi,

I have an MFC executable (.EXE) that is a dialog with some controls.
On double-clicking a particular control, I want a second dialog to
popup and some information to be passed from the calling dialog
to the called dialog.

For this I was trying to use a user-defined windows message
(WM_POPDLG) and passing the information in a malloc-ed pointer
using SendMessage(). The information will be packed into the WPARAM
parameter. Before sending the message, I will create the called
dialog using Create(). I will retrieve the information in the
PreTranslateMessage() function of the called dialog.

WM_POPDLG has been defined as:
#define WM_POPDLG ((WM_APP) + 100)

When I implemented this idea, I found that the PreTranslateMessage()
is not getting called at all. Create() worked fine.

My question:
What do I need to do so that the message sent by SendMessage() hits the
right place and gets processed correctly. Am I missing out something?

Note:
I do not want the called window to become visible before processing
the message in PreTranslateMessage().

With best regards,
Sayan
Email:sayanmukherjee@indiatimes.com

GeneralRe: Calling a Dialog from another Dialog Pin
Prem Kumar1-Apr-02 17:16
Prem Kumar1-Apr-02 17:16 
GeneralRe: Calling a Dialog from another Dialog Pin
Sayan Mukherjee2-Apr-02 0:11
Sayan Mukherjee2-Apr-02 0:11 
GeneralRe: Calling a Dialog from another Dialog Pin
Paul M Watt1-Apr-02 17:46
mentorPaul M Watt1-Apr-02 17:46 
Generalvolume control Pin
1-Apr-02 16:23
suss1-Apr-02 16:23 
GeneralRe: volume control Pin
Prem Kumar1-Apr-02 16:56
Prem Kumar1-Apr-02 16:56 
GeneralCHtmlView Question Pin
1-Apr-02 15:53
suss1-Apr-02 15:53 
GeneralRe: CHtmlView Question Pin
Paul M Watt1-Apr-02 16:55
mentorPaul M Watt1-Apr-02 16:55 
GeneralRe: CHtmlView Question Pin
1-Apr-02 17:57
suss1-Apr-02 17:57 
Generalblinking cursor position Pin
bracoute1-Apr-02 13:19
bracoute1-Apr-02 13:19 
GeneralRe: blinking cursor position Pin
Prem Kumar1-Apr-02 16:55
Prem Kumar1-Apr-02 16:55 
GeneralRe: blinking cursor position Pin
bracoute1-Apr-02 19:14
bracoute1-Apr-02 19:14 
GeneralClipboard Copy - multiple formats Pin
Aaron Schaefer1-Apr-02 13:02
Aaron Schaefer1-Apr-02 13:02 
GeneralMessage Reflection Pin
1-Apr-02 13:01
suss1-Apr-02 13:01 
GeneralMessage Relfection Pin
1-Apr-02 13:01
suss1-Apr-02 13:01 
GeneralRe: Message Relfection Pin
Shog91-Apr-02 13:08
sitebuilderShog91-Apr-02 13:08 
GeneralRe: Message Relfection Pin
1-Apr-02 13:11
suss1-Apr-02 13:11 
GeneralRe: Message Relfection Pin
Shog91-Apr-02 13:25
sitebuilderShog91-Apr-02 13:25 

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.