Click here to Skip to main content
15,918,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UI design question ( presenting preferences ) Pin
Henry miller14-Jun-04 3:10
Henry miller14-Jun-04 3:10 
Questionhow to enable the "ok" button after 8 second in MFC Dialog box Pin
shiva shankar11-Jun-04 8:38
shiva shankar11-Jun-04 8:38 
AnswerRe: how to enable the "ok" button after 8 second in MFC Dialog box Pin
Ravi Bhavnani11-Jun-04 8:49
professionalRavi Bhavnani11-Jun-04 8:49 
AnswerRe: how to enable the "ok" button after 8 second in MFC Dialog box Pin
toxcct13-Jun-04 3:23
toxcct13-Jun-04 3:23 
Generalimage sequence in a window Pin
nyquisttt11-Jun-04 8:13
nyquisttt11-Jun-04 8:13 
GeneralRe: image sequence in a window Pin
David Crow11-Jun-04 9:40
David Crow11-Jun-04 9:40 
QuestionFindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 6:55
Wes Jones11-Jun-04 6:55 
AnswerRe: FindWindow is hanging.... help? Pin
David Crow11-Jun-04 7:24
David Crow11-Jun-04 7:24 
Wes Jones wrote:
have an app that uses FindWindow to find the window handle to another app's window, and it looks like it is hanging.

You are correct about FindWindow()'s use of SendMessage() and the deadlock that can occur.

Wes Jones wrote:
My question is: What's a good alternative to using FindWindow ?

That all depends on what you are wanting to do.

Wes Jones wrote:
Last question:
Is using FindWindow(_T("dialog"), )
better than using FindWindow("dialog", ) ?


"Better" depends on if you are using Unicode or not. The _T() macro will work in either case as the preprocessor will resolve it accordingly.

Wes Jones wrote:
Does specifying the class name prevent it from using the sendmessage call internally for those cases where the window is obviously not a dialog?

What if two windows have the same class? FindWindow() is still no help.


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 7:52
Wes Jones11-Jun-04 7:52 
AnswerRe: FindWindow is hanging.... help? Pin
Navin11-Jun-04 7:48
Navin11-Jun-04 7:48 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 8:00
Wes Jones11-Jun-04 8:00 
GeneralRe: FindWindow is hanging.... help? Pin
Navin11-Jun-04 8:04
Navin11-Jun-04 8:04 
AnswerRe: FindWindow is hanging.... help? Pin
Neville Franks11-Jun-04 11:40
Neville Franks11-Jun-04 11:40 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 14:17
Wes Jones11-Jun-04 14:17 
GeneralRe: FindWindow is hanging.... help? Pin
Neville Franks11-Jun-04 15:17
Neville Franks11-Jun-04 15:17 
GeneralMicrosoft !!! Q's Pin
suiram4011-Jun-04 6:49
suiram4011-Jun-04 6:49 
GeneralRe: Microsoft !!! Q's Pin
Maximilien11-Jun-04 6:55
Maximilien11-Jun-04 6:55 
GeneralRe: Microsoft !!! Q's Pin
David Crow11-Jun-04 7:28
David Crow11-Jun-04 7:28 
GeneralRe: Microsoft !!! Q's Pin
Maximilien11-Jun-04 7:29
Maximilien11-Jun-04 7:29 
GeneralRe: Microsoft !!! Q's Pin
suiram4011-Jun-04 7:39
suiram4011-Jun-04 7:39 
GeneralRe: Microsoft !!! Q's Pin
David Crow11-Jun-04 8:06
David Crow11-Jun-04 8:06 
GeneralRe: Microsoft !!! Q's Pin
Henry miller11-Jun-04 8:03
Henry miller11-Jun-04 8:03 
GeneralRe: Microsoft !!! Q's Pin
jj3pa11-Jun-04 14:21
jj3pa11-Jun-04 14:21 
GeneralRe: Microsoft !!! Q's Pin
toxcct13-Jun-04 3:28
toxcct13-Jun-04 3:28 
Generalreading and writing to a file outside of my programming Pin
kyleiscool200411-Jun-04 6:40
kyleiscool200411-Jun-04 6: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.