Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan I call OnItemChanged by force? Pin
nss25-Jul-02 10:47
nss25-Jul-02 10:47 
AnswerLVN_ITEMCHANGED, but whats the way to send this message? Pin
nss25-Jul-02 11:20
nss25-Jul-02 11:20 
AnswerRe: Can I call OnItemChanged by force? Pin
Shog925-Jul-02 11:57
sitebuilderShog925-Jul-02 11:57 
GeneralOverriding Context Help button Pin
esapp42025-Jul-02 10:30
esapp42025-Jul-02 10:30 
Generalprintpreview Pin
Anthony988725-Jul-02 8:44
Anthony988725-Jul-02 8:44 
GeneralRe: printpreview Pin
Chris Losinger25-Jul-02 8:56
professionalChris Losinger25-Jul-02 8:56 
General<code>delete this;</code> Pin
Le centriste25-Jul-02 8:10
Le centriste25-Jul-02 8:10 
GeneralRe: <code>delete this;</code> Pin
Joaquín M López Muñoz25-Jul-02 8:20
Joaquín M López Muñoz25-Jul-02 8:20 
Is it OK to use it?

Yes, though it is not common.

When is the object actually destroyed?

At the very moment delete this is executed. This has an important implication, namely that after this line the member function can no longer reference the object or any of its members.
The most common use of this idiom is for cleaning up modeless dialog boxes in PostNcDestroy.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: <code>delete this;</code> Pin
Len Holgate25-Jul-02 12:25
Len Holgate25-Jul-02 12:25 
GeneralPrinting lists Pin
hyakugei25-Jul-02 8:02
hyakugei25-Jul-02 8:02 
Generalclass drop down...function completion Pin
jimNLX25-Jul-02 7:52
jimNLX25-Jul-02 7:52 
GeneralRe: class drop down...function completion Pin
Chris Losinger25-Jul-02 8:38
professionalChris Losinger25-Jul-02 8:38 
GeneralCComboBox question Pin
JennyP25-Jul-02 7:10
JennyP25-Jul-02 7:10 
GeneralRe: CComboBox question Pin
Joaquín M López Muñoz25-Jul-02 8:08
Joaquín M López Muñoz25-Jul-02 8:08 
GeneralKnock My Socks Off Pin
Ken Mazaika25-Jul-02 7:03
Ken Mazaika25-Jul-02 7:03 
GeneralRe: Knock My Socks Off Pin
Joaquín M López Muñoz25-Jul-02 7:15
Joaquín M López Muñoz25-Jul-02 7:15 
GeneralRe: Knock My Socks Off Pin
includeh1025-Jul-02 7:25
includeh1025-Jul-02 7:25 
GeneralRe: Knock My Socks Off Pin
Len Holgate25-Jul-02 12:27
Len Holgate25-Jul-02 12:27 
GeneralChanging font for CStatic and Others Pin
hongheo7625-Jul-02 6:49
hongheo7625-Jul-02 6:49 
GeneralRe: Changing font for CStatic and Others Pin
Joaquín M López Muñoz25-Jul-02 6:55
Joaquín M López Muñoz25-Jul-02 6:55 
GeneralA book or website for Learning Thread process Pin
youssef25-Jul-02 6:37
youssef25-Jul-02 6:37 
GeneralRe: A book or website for Learning Thread process Pin
includeh1025-Jul-02 7:06
includeh1025-Jul-02 7:06 
GeneralRe: A book or website for Learning Thread process Pin
Daniel Lohmann25-Jul-02 9:57
Daniel Lohmann25-Jul-02 9:57 
GeneralRe: A book or website for Learning Thread process Pin
-Dy26-Jul-02 0:01
-Dy26-Jul-02 0:01 
GeneralPropertySheets :: MFC Pin
valikac25-Jul-02 6:25
valikac25-Jul-02 6:25 

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.