Re: CWnd::GetDlgItem
From: Jeff Partch (jeffp_at_mvps.org)
Date: 05/25/04
- Next message: Dave: "Re: Is it possible to place a control in NC area?"
- Previous message: Jaime Stuardo: "Is it possible to place a control in NC area?"
- In reply to: Spacen Jasset: "CWnd::GetDlgItem"
- Next in thread: Scott McPhillips [MVP]: "Re: CWnd::GetDlgItem"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 May 2004 17:15:58 -0500
"Spacen Jasset" <spacenjasset@yahoo.co.uk> wrote in message
news:c90f75$lml$1@news7.svr.pol.co.uk...
> It says in the docs that you shouldn't keep a copy of the pointer that
this
> method returns. Why is that since the windows API function GetDlgItem
> doesn't seem to say this.
Because the framework calls the API version to obtain the HWND, and then --
if it does not exist in the permanent handle map, it will instantiate a
CTempWnd and attach the HWND to it and add it to the temporary handle map.
Objects in the temporary handle map will be deleted at some point if and
when the framework gets around to it.
-- Jeff Partch [VC++ MVP]
- Next message: Dave: "Re: Is it possible to place a control in NC area?"
- Previous message: Jaime Stuardo: "Is it possible to place a control in NC area?"
- In reply to: Spacen Jasset: "CWnd::GetDlgItem"
- Next in thread: Scott McPhillips [MVP]: "Re: CWnd::GetDlgItem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|