Click here to Skip to main content
15,881,898 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Boodt to the recsue! Pin
Stephen Hewitt13-Mar-06 22:41
Stephen Hewitt13-Mar-06 22:41 
QuestionPassing information to propretypage Pin
shaohao10-Mar-06 3:20
shaohao10-Mar-06 3:20 
AnswerRe: Passing information to propretypage Pin
Michael Dunn10-Mar-06 6:44
sitebuilderMichael Dunn10-Mar-06 6:44 
QuestionImplementing MDI in an ActiveX control Pin
zulat10-Mar-06 0:02
zulat10-Mar-06 0:02 
Question[Message Deleted] Pin
Igor Mihailov9-Mar-06 10:02
Igor Mihailov9-Mar-06 10:02 
AnswerRe: WTL: Unresolved externals Pin
Jörgen Sigvardsson9-Mar-06 10:33
Jörgen Sigvardsson9-Mar-06 10:33 
GeneralRe: WTL: Unresolved externals Pin
Igor Mihailov9-Mar-06 10:54
Igor Mihailov9-Mar-06 10:54 
QuestionHow to delete/destroy modeless dlg/sheet Pin
shaohao9-Mar-06 4:33
shaohao9-Mar-06 4:33 
Does any one know how to make modeless dlgs/propertysheets destroy by themself?

my code:
<br />
pdlg = new CMyDlg;<br />
if(pdlg && pdlg->Create(hwndParent))<br />
  pdlg->ShowWindow(SW_SHOW);<br />
<br />
// int CMyDlg class<br />
// I try to let CMyDlg destoy itself by process WM_NCDESTROY msg:<br />
void OnClose(UINT uCode, int nID, HWND hwndCtrl) // press close button<br />
{<br />
  DestroyWindow();<br />
}<br />
void OnNcDestory(void)<br />
{<br />
  m_hWnd = NULL;<br />
  delete this; // ERROR on trying to delete myself!!Crash!<br />
}<br />


But it works fine in MFC
http://www.codeproject.com/dialog/gettingmodeless.asp[^]
any idea?

-- modified at 10:34 Thursday 9th March, 2006
AnswerRe: How to delete/destroy modeless dlg/sheet Pin
Justin Tay9-Mar-06 7:28
Justin Tay9-Mar-06 7:28 
GeneralRe: How to delete/destroy modeless dlg/sheet Pin
shaohao10-Mar-06 1:35
shaohao10-Mar-06 1:35 
GeneralRe: How to delete/destroy modeless dlg/sheet Pin
Justin Tay10-Mar-06 1:51
Justin Tay10-Mar-06 1:51 
GeneralPart of ATL not WTL Pin
Justin Tay10-Mar-06 2:04
Justin Tay10-Mar-06 2:04 
GeneralRe: Part of ATL not WTL Pin
shaohao10-Mar-06 2:48
shaohao10-Mar-06 2:48 
AnswerRe: How to delete/destroy modeless dlg/sheet Pin
Michael Dunn9-Mar-06 12:48
sitebuilderMichael Dunn9-Mar-06 12:48 
QuestionIDispEventImpl Pin
QuickDeveloper7-Mar-06 21:32
QuickDeveloper7-Mar-06 21:32 
AnswerRe: IDispEventImpl Pin
Stuart Dootson8-Mar-06 20:53
professionalStuart Dootson8-Mar-06 20:53 
NewsLooking for Freelance ATL Programmers Pin
Ajay Chadha7-Mar-06 19:28
Ajay Chadha7-Mar-06 19:28 
GeneralRe: Looking for Freelance ATL Programmers Pin
toxcct7-Mar-06 22:11
toxcct7-Mar-06 22:11 
QuestionUsing VC7.1 compiler under VC6 IDE.... woes.... :S Pin
kevingpo6-Mar-06 23:52
kevingpo6-Mar-06 23:52 
AnswerRe: Using VC7.1 compiler under VC6 IDE.... woes.... :S Pin
Stuart Dootson7-Mar-06 20:38
professionalStuart Dootson7-Mar-06 20:38 
QuestionAdding vectors Pin
Anil_vvs5-Mar-06 18:21
Anil_vvs5-Mar-06 18:21 
AnswerRe: Adding vectors Pin
toxcct5-Mar-06 22:07
toxcct5-Mar-06 22:07 
GeneralRe: Adding vectors Pin
Anil_vvs5-Mar-06 22:13
Anil_vvs5-Mar-06 22:13 
GeneralRe: Adding vectors Pin
Stephen Hewitt5-Mar-06 23:29
Stephen Hewitt5-Mar-06 23:29 
AnswerRe: Adding vectors Pin
Stephen Hewitt5-Mar-06 22:40
Stephen Hewitt5-Mar-06 22:40 

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.