C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

closing/hiding custom modeless dialogs?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Rikkert
Guest





PostPosted: Mon Jun 28, 2004 8:57 am    Post subject: closing/hiding custom modeless dialogs? Reply with quote



I can't get my custom-made modeless dialog box (Visual C++.net Win32)
to respond to clicking the close button or pressing Alt-F4.

I am using the IsDialogMessage to check if messages are for my dialog.
However, my dialog procedure doesn't seem to get a WM_DESTROY message
when I click the close button. Also, pressing Alt-F4 does not close my
application when the dialog has focus (it does terminate when my main
window or another child of the main window has focus).

Btw I am not using any MFC.

Anyone knows the solution to this problem?
Any help is greatly appreciated!

Rikkert

(PS: could it have something to do with the WS_EX_NOPARENTNOTIFY style
set when using dialog box templates?)
Back to top
Thomas Matthews
Guest





PostPosted: Mon Jun 28, 2004 1:19 pm    Post subject: Re: closing/hiding custom modeless dialogs? Reply with quote



Rikkert wrote:
Quote:
I can't get my custom-made modeless dialog box (Visual C++.net Win32)
to respond to clicking the close button or pressing Alt-F4.
[snip]


Quote:
Rikkert

(PS: could it have something to do with the WS_EX_NOPARENTNOTIFY style
set when using dialog box templates?)

It has nothing to do with WS_EX_NOPARENTNOTIFY, but it has all
to do with asking in the proper newsgroup. Try a microsoft
newsgroup (many are listed in the Welcome.txt below).

This newsgroup, news:comp.lang.c++, discusses the _standard_ C++
language which has no facilities for windows nor dialog boxes.
Please read the FAQ below.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book


Back to top
Prateek R Karandikar
Guest





PostPosted: Mon Jun 28, 2004 6:03 pm    Post subject: Re: closing/hiding custom modeless dialogs? Reply with quote



[email]r_zoun (AT) hotmail (DOT) com[/email] (Rikkert) wrote in message news:<27cedf92.0406280057.7b653caf (AT) posting (DOT) google.com>...
Quote:
I can't get my custom-made modeless dialog box (Visual C++.net Win32)
to respond to clicking the close button or pressing Alt-F4.

I am using the IsDialogMessage to check if messages are for my dialog.
However, my dialog procedure doesn't seem to get a WM_DESTROY message
when I click the close button. Also, pressing Alt-F4 does not close my
application when the dialog has focus (it does terminate when my main
window or another child of the main window has focus).

Btw I am not using any MFC.

Anyone knows the solution to this problem?
Any help is greatly appreciated!

Rikkert

(PS: could it have something to do with the WS_EX_NOPARENTNOTIFY style
set when using dialog box templates?)

The following make no sense in Standard C++:
custom-made modeless dialog box
Visual C++.net Win32
clicking
close button
pressing Alt-F4
IsDialogMessage
dialog
dialog procedure
WM_DESTROY message
close my application
dialog has focus
main window
child
MFC

(This list is not meant to be exhaustive)

So your post makes no sense in the context of Standard C++.

-- --
Abstraction is selective ignorance.
-Andrew Koenig
-- --

Back to top
Rikkert
Guest





PostPosted: Mon Jun 28, 2004 9:23 pm    Post subject: Re: closing/hiding custom modeless dialogs? Reply with quote

sorry about that guys.. I am new to this Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.