PC Review


Reply
Thread Tools Rate Thread

ApplicationEx & modal dialog

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      18th Mar 2004
I have "modal" dialog in my application.

IN fact as I had problem with ShowDialog() they are not dialog but simple
top level control with a loop calling DoEvent() in their showing method.

I'm using ApplicationEx and I would like to improve that.
When I show the control I could find it's HWND.
later on I want to filter all message whose HWND are not the dialog's HWND
or a child, or sub child, or sub sub sub... child control.

is there any way (simple if possible) to do that ?


 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      18th Mar 2004
The new dialog simply needs it's own, new message pump. I'd have to look at
the code, but my guess is that you need to use another ApplicationEx.Run for
the "modal" dialog. Maybe we at OpenNETCF should consider a replacement
ShowDialog() method that implements this. You're welcome to try it and let
us know how you fare.

-Chris


"Lloyd Dupont" <net.galador@ld> wrote in message
news:(E-Mail Removed)...
> I have "modal" dialog in my application.
>
> IN fact as I had problem with ShowDialog() they are not dialog but simple
> top level control with a loop calling DoEvent() in their showing method.
>
> I'm using ApplicationEx and I would like to improve that.
> When I show the control I could find it's HWND.
> later on I want to filter all message whose HWND are not the dialog's HWND
> or a child, or sub child, or sub sub sub... child control.
>
> is there any way (simple if possible) to do that ?
>
>



 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      18th Mar 2004
yep, I understood.
my problem is my little dialog could have a few child controls.
therefore in my message pump the MSG.HWnd could have multiple value, (right
?)

my concern is how could I know if a give msg.HWnd is the handle of a child
control of some other control with a given handle ?

a way to walk the handles of the control hierarchy with some win32 calls ..
anyway that becaome a bit clearer .. I have to look at the win32 API, I
think I could manage ...

"Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message
news:(E-Mail Removed)...
> The new dialog simply needs it's own, new message pump. I'd have to look

at
> the code, but my guess is that you need to use another ApplicationEx.Run

for
> the "modal" dialog. Maybe we at OpenNETCF should consider a replacement
> ShowDialog() method that implements this. You're welcome to try it and

let
> us know how you fare.
>
> -Chris
>
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:(E-Mail Removed)...
> > I have "modal" dialog in my application.
> >
> > IN fact as I had problem with ShowDialog() they are not dialog but

simple
> > top level control with a loop calling DoEvent() in their showing method.
> >
> > I'm using ApplicationEx and I would like to improve that.
> > When I show the control I could find it's HWND.
> > later on I want to filter all message whose HWND are not the dialog's

HWND
> > or a child, or sub child, or sub sub sub... child control.
> >
> > is there any way (simple if possible) to do that ?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modeless dialog as owner of a modal dialog hagarwal@tamaleresearch.com Microsoft C# .NET 3 27th Mar 2006 09:22 PM
Modeless Dialog calls Modal Dialog. Hide causes application to lose focus. Tom Clement Microsoft Dot NET Framework Forms 3 27th Jun 2005 09:44 AM
How-to exit button click event of ( C#) modal dialog without exiting dialog? Lew Barnesson Microsoft Dot NET Framework Forms 3 2nd Jun 2005 11:03 PM
Modal Dialog box - but only modal for the owner Haim Microsoft Dot NET Framework Forms 0 11th Aug 2004 01:33 PM
Modal dialog mac Microsoft ASP .NET 2 22nd Jun 2004 12:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 PM.