| View previous topic :: View next topic |
| Author |
Message |
Rikkert Guest
|
Posted: Mon Jun 28, 2004 8:57 am Post subject: closing/hiding custom modeless dialogs? |
|
|
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
|
Posted: Mon Jun 28, 2004 1:19 pm Post subject: Re: closing/hiding custom modeless dialogs? |
|
|
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
|
Posted: Mon Jun 28, 2004 6:03 pm Post subject: Re: closing/hiding custom modeless dialogs? |
|
|
[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
|
Posted: Mon Jun 28, 2004 9:23 pm Post subject: Re: closing/hiding custom modeless dialogs? |
|
|
sorry about that guys.. I am new to this
|
|
| Back to top |
|
 |
|