Click here to Skip to main content
15,887,328 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Windows Vista not allowed to write file on C:\Users folder Pin
Randor 1-Jun-10 8:38
professional Randor 1-Jun-10 8:38 
GeneralRe: Windows Vista not allowed to write file on C:\Users folder Pin
am 20092-Jun-10 4:27
am 20092-Jun-10 4:27 
QuestionRe: Windows Vista not allowed to write file on C:\Users folder Pin
Randor 2-Jun-10 7:46
professional Randor 2-Jun-10 7:46 
AnswerRe: Windows Vista not allowed to write file on C:\Users folder Pin
am 20093-Jun-10 4:21
am 20093-Jun-10 4:21 
QuestionProblem with Activex control property pages Pin
Sreenivas00328-May-10 2:17
Sreenivas00328-May-10 2:17 
QuestionAbout the remove() behavior of container list on MAC [modified] Pin
szh12113-May-10 15:47
szh12113-May-10 15:47 
AnswerRe: About the remove() behavior of container list on MAC Pin
szh12113-May-10 22:55
szh12113-May-10 22:55 
QuestionChild windows of non-modal dialog not receiving WM_DESTROY (at least not when expected) Pin
mjxy9-May-10 4:49
mjxy9-May-10 4:49 
Hey all,

I'm using the ATL on Windows Mobile 5/6. I have a non-modal dialog which derives from CStdDialogImpl and CMessageFilter (to call IsDialogMessage in PreTranslateMessage). In the OnFinalMessage handler i do a "delete this;" So far so good.

Once my dialog is up and the user decides to exit the application, my non-modal dialog eventually receives a WM_DESTROY, as expected. The child windows of that dialog are also supposed to get the WM_DESTROY msg. However, this fails since the OnFinalMessage handler has already been called (which in turn did a "delete this;") without the DialogProc in CDialogImplBase ever returning from WM_DESTROY (which would have triggered the WM_DESTROY msg being sent to my child windows?). So I end up with an assert saying that "Object deleted before window was destroyed". Which is true since "delete this;" has already been performed.

Am I overlooking something? It seems to me as there is no way to get this properly working on Windows CE, ever. (In the ATL sources a WM_NCDESTROY is simulated since Windows CE does not support that, but it's just a call to SendMessage, which results in a nested msg that won't trigger anything useful) A delete this; in OnFinalMessage just isn't going to work on Windows CE. Anybody else experiencing the same problem? Or perhaps a solution?

Edit:
I can see how this works on non-CE versions of Windows since on those versions the WM_NCDESTROY msg is not simulated by a call to SendMessage in ATL. So the child windows have time to process their WM_DESTROY msgs before the objects are being destructed by "delete this;" But not on CE, wM_NCDESTROY is just going to be a nested message that isn't going to be of any value to me.
QuestionHowto put a TrackBar in a Menu ? Pin
yarp27-Apr-10 1:07
yarp27-Apr-10 1:07 
QuestionCreating a borderless MDI child window Pin
Member 381982124-Apr-10 0:00
Member 381982124-Apr-10 0:00 
AnswerRe: Creating a borderless MDI child window Pin
Jonathan Davies24-Apr-10 1:06
Jonathan Davies24-Apr-10 1:06 
QuestionProblems while adding custom header with IWebBrowser2 [modified] Pin
arbittorr21-Apr-10 12:14
arbittorr21-Apr-10 12:14 
AnswerRe: Problems while adding custom header with IWebBrowser2 Pin
Stephen Hewitt22-Apr-10 14:09
Stephen Hewitt22-Apr-10 14:09 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
arbittorr23-Apr-10 0:18
arbittorr23-Apr-10 0:18 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
Jonathan Davies23-Apr-10 1:57
Jonathan Davies23-Apr-10 1:57 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
arbittorr23-Apr-10 22:01
arbittorr23-Apr-10 22:01 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
Jonathan Davies24-Apr-10 1:26
Jonathan Davies24-Apr-10 1:26 
QuestionIs it possible to make an activex by WTL Pin
Shuang. Wu15-Apr-10 20:31
Shuang. Wu15-Apr-10 20:31 
AnswerRe: Is it possible to make an activex by WTL Pin
Jonathan Davies15-Apr-10 23:47
Jonathan Davies15-Apr-10 23:47 
GeneralRe: Is it possible to make an activex by WTL Pin
Shuang. Wu16-Apr-10 0:20
Shuang. Wu16-Apr-10 0:20 
GeneralRe: Is it possible to make an activex by WTL Pin
Jonathan Davies16-Apr-10 0:40
Jonathan Davies16-Apr-10 0:40 
AnswerRe: Is it possible to make an activex by WTL Pin
«_Superman_»16-Apr-10 8:02
professional«_Superman_»16-Apr-10 8:02 
GeneralRe: Is it possible to make an activex by WTL Pin
Shuang. Wu18-Apr-10 6:00
Shuang. Wu18-Apr-10 6:00 
GeneralRe: Is it possible to make an activex by WTL Pin
Jonathan Davies24-Apr-10 1:33
Jonathan Davies24-Apr-10 1:33 
AnswerRe: Is it possible to make an activex by WTL Pin
XTL_FANS13-May-10 14:30
XTL_FANS13-May-10 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.