Click here to Skip to main content
15,920,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 7:52
Wes Jones11-Jun-04 7:52 
Hi, thanks for the reply.

DavidCrow wrote:
That all depends on what you are wanting to do.
What I'm trying to do is...

I am writing an app on A CE device, and it uses a wireless modem to connect to the internet so that it can communicate w/ a server....

My code is trying to make it easy for the user by starting/stopping the modem software at the apprpriate times.

Before starting the modem, I look for the window titles for the various versions of the modem software that we support, and if it's already thereI won't start the modem software,
If I'm trying to close the modem, I try to get the handle to the window so that I can post the WM_CLOSE or appropriate messages to get the modem software to exit.
I support doing this for the Sierra Wireless AirCard 300, 555, 710, and 750 modems.

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


Oops, meant to put the _T() macro on that last one there...

I guess my hope there is that I'd be cutting out of the equation any windows that aren't "dialog", even though it's not 100%.


I've found w/ Spy++ that some versions of the modem software creates two top level windows w/ the same title.... not ideal, but I've been getting around it.
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 
GeneralRe: reading and writing to a file outside of my programming Pin
jmkhael11-Jun-04 6:47
jmkhael11-Jun-04 6:47 

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.