Click here to Skip to main content
15,898,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding a number to a Pointer Pin
Naveen24-Aug-08 21:57
Naveen24-Aug-08 21:57 
GeneralRe: Adding a number to a Pointer Pin
ForNow24-Aug-08 22:01
ForNow24-Aug-08 22:01 
GeneralRe: Adding a number to a Pointer Pin
Naveen24-Aug-08 22:06
Naveen24-Aug-08 22:06 
GeneralRe: Adding a number to a Pointer Pin
ForNow24-Aug-08 22:16
ForNow24-Aug-08 22:16 
GeneralRe: Adding a number to a Pointer Pin
Mark Salsbery25-Aug-08 6:18
Mark Salsbery25-Aug-08 6:18 
QuestionWhen a non modal windows is closed ? Pin
DSPCottage23-Aug-08 22:24
DSPCottage23-Aug-08 22:24 
AnswerRe: When a non modal windows is closed ? Pin
Ștefan-Mihai MOGA23-Aug-08 23:11
professionalȘtefan-Mihai MOGA23-Aug-08 23:11 
AnswerRe: When a non modal windows is closed ? Pin
Jijo.Raj24-Aug-08 0:14
Jijo.Raj24-Aug-08 0:14 
Gut Mikh Tappe wrote:
Then I set a timer , which I want to monitor the "sheet" windows when closed.


What I understood is that - you want to check whether the sheet window is closed from your timer routine? A few suggestions are below,

1) You could call IsWindow() by passing the handle of dialog. If the window specified by handle doesn't exist, the api will return failure. The first question that comes to mind will be - What happen if the handle will be resued by any other window created in between? Not a real concern. Read this[^].

2) You could send a WM_NULL message to the window. If the send function failed, then your window is RIP!

3) But the best method is - instead of polling, let the sheet window notify you when it closes. Handle the WM_DESTROY message in your sheet dialog and send a message to your parent window.

Did i explained too much details? Roll eyes | :rolleyes:

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: When a non modal windows is closed ? Pin
DSPCottage24-Aug-08 1:45
DSPCottage24-Aug-08 1:45 
GeneralRe: When a non modal windows is closed ? Pin
ThatsAlok24-Aug-08 21:58
ThatsAlok24-Aug-08 21:58 
AnswerRe: When a non modal windows is closed ? Pin
ThatsAlok24-Aug-08 21:55
ThatsAlok24-Aug-08 21:55 
QuestionQuick way to detect RTL at a given moment Pin
yakobom23-Aug-08 18:52
yakobom23-Aug-08 18:52 
AnswerRe: Quick way to detect RTL at a given moment Pin
Sarath C24-Aug-08 1:25
Sarath C24-Aug-08 1:25 
QuestionSubstring for char Pin
luisgrimaldo23-Aug-08 16:21
luisgrimaldo23-Aug-08 16:21 
AnswerRe: Substring for char Pin
Paul Conrad23-Aug-08 18:23
professionalPaul Conrad23-Aug-08 18:23 
GeneralRe: Substring for char Pin
luisgrimaldo23-Aug-08 19:31
luisgrimaldo23-Aug-08 19:31 
GeneralRe: Substring for char Pin
Paul Conrad23-Aug-08 19:34
professionalPaul Conrad23-Aug-08 19:34 
GeneralRe: Substring for char Pin
luisgrimaldo23-Aug-08 19:36
luisgrimaldo23-Aug-08 19:36 
GeneralRe: Substring for char Pin
Paul Conrad23-Aug-08 19:39
professionalPaul Conrad23-Aug-08 19:39 
GeneralRe: Substring for char Pin
Paul Conrad23-Aug-08 19:46
professionalPaul Conrad23-Aug-08 19:46 
GeneralRe: Substring for char Pin
luisgrimaldo23-Aug-08 20:15
luisgrimaldo23-Aug-08 20:15 
GeneralRe: Substring for char Pin
David Crow24-Aug-08 16:42
David Crow24-Aug-08 16:42 
AnswerRe: Substring for char Pin
Green Fuze23-Aug-08 20:06
Green Fuze23-Aug-08 20:06 
GeneralRe: Substring for char Pin
Green Fuze23-Aug-08 20:07
Green Fuze23-Aug-08 20:07 
AnswerRe: Substring for char Pin
Jijo.Raj23-Aug-08 23:26
Jijo.Raj23-Aug-08 23:26 

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.