Re: WTL dialogs in MFC application

"sagymz" <[email protected]> Mon, 21 Feb 2011 08:10:57 -0000
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Thanks for your answer!

I have compared my classes to a few examples found on the internet and found out that PreTranslateMessage() and some other stuff were missing.


--- In [email protected], "Michael Stephenson" <domehead100@...> wrote:
>
> Does m_Second have a PreTranslateMessage() member function that returns the
> result of IsDialogMessage?  This is needed for non-modal dialogs to hook
> them into the app's message loop.
> 
>  
> 
> From: [email protected] [mailto:[email protected]] On Behalf Of sagymz
> Sent: Sunday, February 20, 2011 9:21 AM
> To: [email protected]
> Subject: [wtl] WTL dialogs in MFC application
> 
>  
> 
>   
> 
> Hi,
> I have a MFC application project. I've added a new dialog to the project
> and, using WTL wizard, added the header and the source files
> (automatically generated). Then I created another dialog in the same
> way.
> To the first dialog I have added a CSplitterWindow member, and in the
> OnInitDialog I have written the following:
> CRect rect;GetClientRect(&rect);m_ctlSplitter1.Create(m_hWnd, rect,
> NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS |
> WS_CLIPCHILDREN);m_Second.Create(m_ctlSplitter1);m_ctlSplitter1.SetSplit\
> terPanes(m_Second, ::GetDlgItem(m_hWnd, IDCANCEL),
> false);m_ctlSplitter1.SetSplitterPos( rect.right/2 );
> Where m_Second is the second dialog that I have mentioned before.
> What I see after running it is that the second dialog is not presenting
> the controls that it has on it. When running DoModal() on the second
> dialog when it is not in the splitter, the dialog is shown fine, but
> when it is inside the splitter, something is wrong.
> Do you have any idea what might have gone wrong?
> Thanks.
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/