Click here to Skip to main content
15,915,501 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Slider Ctrl Pin
Mark Salsbery28-Jun-07 6:09
Mark Salsbery28-Jun-07 6:09 
AnswerRe: Slider Ctrl Pin
drexel17183-Jul-07 20:59
drexel17183-Jul-07 20:59 
QuestionWrite a string find and replace program Pin
Nacho Chip27-Jun-07 11:31
Nacho Chip27-Jun-07 11:31 
AnswerRe: Write a string find and replace program Pin
Naveen27-Jun-07 14:58
Naveen27-Jun-07 14:58 
AnswerRe: Write a string find and replace program Pin
zhang80060527-Jun-07 16:28
zhang80060527-Jun-07 16:28 
AnswerRe: Write a string find and replace program Pin
Arris7427-Jun-07 19:50
Arris7427-Jun-07 19:50 
Questionproblem with closing window Pin
Giorgi Dalakishvili27-Jun-07 9:37
mentorGiorgi Dalakishvili27-Jun-07 9:37 
AnswerRe: problem with closing window Pin
Mark Salsbery27-Jun-07 10:15
Mark Salsbery27-Jun-07 10:15 
Giorgi Dalakishvili wrote:
When the program is launched second time hwnd of the window that was closed is the same


There's no guarantee the HWND will be the same the next time you run an application, so comparing
the HWND to the one in a previous instance is irrelevant.

If you meant "When the window is launched second time ..." then -

If the default window proc for the window handled the WM_CLOSE message then DestroyWindow() has
been called on the HWND so it's no longer valid. In that case, you need to create a new window,
which possibly will have a different HWND.

It's up to you to keep track of the HWND Smile | :)

Mark


"Go that way, really fast. If something gets in your way, turn."

GeneralRe: problem with closing window Pin
Giorgi Dalakishvili27-Jun-07 10:28
mentorGiorgi Dalakishvili27-Jun-07 10:28 
QuestionRe: problem with closing window Pin
Mark Salsbery27-Jun-07 10:38
Mark Salsbery27-Jun-07 10:38 
AnswerRe: problem with closing window Pin
led mike27-Jun-07 10:42
led mike27-Jun-07 10:42 
GeneralRe: problem with closing window Pin
Mark Salsbery27-Jun-07 11:14
Mark Salsbery27-Jun-07 11:14 
AnswerRe: problem with closing window Pin
Giorgi Dalakishvili27-Jun-07 10:43
mentorGiorgi Dalakishvili27-Jun-07 10:43 
GeneralRe: problem with closing window Pin
Mark Salsbery27-Jun-07 11:18
Mark Salsbery27-Jun-07 11:18 
GeneralRe: problem with closing window Pin
Giorgi Dalakishvili27-Jun-07 22:00
mentorGiorgi Dalakishvili27-Jun-07 22:00 
QuestionRe: problem with closing window Pin
Mark Salsbery28-Jun-07 5:23
Mark Salsbery28-Jun-07 5:23 
AnswerRe: problem with closing window Pin
Giorgi Dalakishvili28-Jun-07 6:17
mentorGiorgi Dalakishvili28-Jun-07 6:17 
QuestionFire Fox Toobar in C++/C# Pin
_tasleem27-Jun-07 8:37
_tasleem27-Jun-07 8:37 
AnswerRe: Fire Fox Toobar in C++/C# Pin
led mike27-Jun-07 10:07
led mike27-Jun-07 10:07 
GeneralRe: Fire Fox Toobar in C++/C# Pin
Rajesh R Subramanian27-Jun-07 21:43
professionalRajesh R Subramanian27-Jun-07 21:43 
AnswerRe: Fire Fox Toobar in C++/C# Pin
Nuxser27-Jun-07 20:42
Nuxser27-Jun-07 20:42 
QuestionCalling a function AFTER OnInitDialog completes. Pin
aquawicket27-Jun-07 8:22
aquawicket27-Jun-07 8:22 
AnswerRe: Calling a function AFTER OnInitDialog completes. Pin
rgordon9927-Jun-07 8:31
rgordon9927-Jun-07 8:31 
AnswerRe: Calling a function AFTER OnInitDialog completes. Pin
Michael Dunn27-Jun-07 15:00
sitebuilderMichael Dunn27-Jun-07 15:00 
AnswerRe: Calling a function AFTER OnInitDialog completes. Pin
Naveen27-Jun-07 15:04
Naveen27-Jun-07 15:04 

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.