473,484 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WM_DESTROY and EndDialog

How come I don't get WM_DESTROY message when I call CDialog::OnOK()?
CDialog::OnOK() calls EndModalLoop() and EndDialog();

But there is no WM_DESTROY, which I need to end thread.
BTW I dont want to post quit message at two places when I could post it on
one place.

Thx, Rajko.
Nov 17 '05 #1
0 1732

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4640
by: Xzyx987X | last post by:
Sorry if this is off topic for this group, but I couln't find any place better for directing question on Windows API programming. Here's the problem, I am calling the SetDlgItemText() function to...
4
2325
by: Morten Aune Lyrstad | last post by:
Ok, now I'm officially confused. I have a large project going, which uses a win32 ui library I am developing myself. And I'm getting weird memory leaks. I don't know if I can explain what is going...
2
6886
by: Cantankerous Old Git | last post by:
I am trying to write a program that I hope to get working as a command-line app to start with, and then eventually use a windows service wrapper to call it as a service. Its purpose is to attach...
3
1222
by: Nils | last post by:
Hi, sometime the following line produces an exception: ((CMessageDialog*)vec->at(0))->EndDialog(1); Now I want to catch this Exception, tried it with c++ and mfc exception handling, like: C++ in...
4
2108
by: Bonj | last post by:
Hi I am having an issue with a window I am creating - in its wndproc, if I call PostMessage(hWnd, WM_QUIT, 0, 0) in response to WM_DESTROY, then GetMessage returns a non-zero value and the loop...
1
1637
by: Ziggy | last post by:
Please excuse this elementary question...but I am just dumb.... I have taken a simplistic Dialog Box and added a Progress Control. When I did that, my Dialog Box was no longer able to intialize...
2
4589
by: dever | last post by:
I checked my color printers's Printersettings.SupportsColor, which all showed false. What is wrong that I could not use this property. Also, what other way to detect if a printer is color...
1
2154
by: tmarkovski | last post by:
Hello, I found this little code which basicly writes any keystroke to the app window, however, it only works for the app window. I wanted to modify it to work when any window is focused, just...
5
1858
by: drexlin | last post by:
We have an application that is supposed to run as a service. When someone shuts down the computer, the app is supposed to save the contents of the screen into a file so it can be loaded back up when...
0
7103
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7194
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5403
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4838
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
587
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.